emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59662: closed (29.0.50; [PATCH] Add treesit--indent-defun)


From: GNU bug Tracking System
Subject: bug#59662: closed (29.0.50; [PATCH] Add treesit--indent-defun)
Date: Sat, 07 Jan 2023 23:02:02 +0000

Your message dated Sat, 7 Jan 2023 15:01:03 -0800
with message-id <8A98A12D-13D8-42E1-8597-46BF90C0670A@gmail.com>
and subject line Re: bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun
has caused the debbugs.gnu.org bug report #59662,
regarding 29.0.50; [PATCH] Add treesit--indent-defun
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59662: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59662
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.50; [PATCH] Add treesit--indent-defun Date: Mon, 28 Nov 2022 20:32:01 +0100
Hi Eli and Yuan!

I've added a function to treesit.el, for use in
treesit-major-mode-setup.  Because the treesit-defun-type-regexp gives
us "defuns" for free, we can set fill-paragraph-function to this new
function, thus enabling quick formatting, and some sensible default for
fill-paragraph.  It aims to mirror c-indent-defun.

I think this is a nice way to get this functionality for free, but I'm
not 100% whether this is considered ok or not.

An alternative could be to add a 'treesit-mode-map' where we can
auto-enable such constructs.


Feel free to apply if it looks ok.

Theo


Attachment: 0001-Add-treesit-indent-defun.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun Date: Sat, 7 Jan 2023 15:01:03 -0800
Theodor Thornhill <theo@thornhill.no> writes:

> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>> On 11/12/2022 16:13, Theodor Thornhill via Bug reports for GNU Emacs, 
>> the Swiss army knife of text editors wrote:
>>> Nice. Will you or Dmitry install?
>>
>> Pushed to master, thank you.
>
> Thanks!
>
> Theo

Closing this :-)

Yuan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]