[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature/android a5b74e2ff62: Initialize text conversion hooks for ea
From: |
Po Lu |
Subject: |
Re: feature/android a5b74e2ff62: Initialize text conversion hooks for each C Mode buffer |
Date: |
Sat, 28 Oct 2023 10:19:29 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> Why is this specific to CC-mode?
>>> Is it because other modes handle electricity via the
>>> `post-self-insert-hook` instead?
>> Correct.
>
> Thanks for confirming.
>
>>> And why is the hook function added globally?
>>> Wouldn't it be better to add it buffer-locally instead?
>> It's installed buffer-locally, since the hook variable itself is
>> buffer-local.
>
> Ah, I missed that. I just changed the code to make it explicit.
OK, thanks.