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

Stefan Monnier via CC-Mode-help <[email protected]> Fri, 27 Oct 2023 21:18:55 -0400
Newsgroups gmane.emacs.cc-mode.general,gmane.emacs.devel
Message-ID <[email protected]>
>> 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.


        Stefan