[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambd
From: |
Mickey Petersen |
Subject: |
bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar |
Date: |
Mon, 09 Jan 2023 08:47:32 +0000 |
User-agent: |
mu4e @VERSION@; emacs 30.0.50 |
Theodor Thornhill <theo@thornhill.no> writes:
> Theodor Thornhill <theo@thornhill.no> writes:
>
>> On 9 January 2023 04:39:34 CET, Yuan Fu <casouri@gmail.com> wrote:
>>>
>>>Mickey Petersen <mickey@masteringemacs.org> writes:
>>>
>>>> The defvar `transpose-sexps-function' holds on to a lambda function.
>>>> Would it be possible to make it an actual function? Its purpose is
>>>> rather important as it is the default transposition function that was
>>>> moved out of `transpose-sexps'. Being able to reliably access it when
>>>> `transpose-sexps-function' is overriden is useful.
>>>
>>>CC’d Theo.
>>>
>>>Yuan
>>
>> Thanks yuan.
>>
>> Yeah I'll make this change and call the new function
>> transpose-sexps-default-function.
>>
>> Apologies for any inconvenience :)
>>
>> Theo
>
>
> How about this, Mickey. Is this something you can work with?
>
Looks perfect. Nice one, Theo.
Kind regards,
Mickey.
> Theo
>
> [2. text/x-patch;
> 0001-Add-named-defun-for-transpose-sexps-default-function.patch]...
bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar, Yuan Fu, 2023/01/09