[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature/android a5b74e2ff62: Initialize text conversion hooks for ea
From: |
Stefan Monnier |
Subject: |
Re: feature/android a5b74e2ff62: Initialize text conversion hooks for each C Mode buffer |
Date: |
Fri, 27 Oct 2023 21:18:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> 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