Re: feature/android a5b74e2ff62: Initialize text conversion hooks for each C Mode buffer

Po Lu via CC-Mode-help <[email protected]> Sat, 28 Oct 2023 10:19:29 +0800
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
Stefan Monnier <[email protected]> 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.