emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A programming puzzle with buffer-local hooks


From: Clément Pit-Claudel
Subject: Re: A programming puzzle with buffer-local hooks
Date: Thu, 18 May 2017 14:38:09 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 2017-05-18 12:51, Stefan Monnier wrote:
>> I can think of two other tricks: reference counting (every time the
>> mode is disabled, check whether it's enabled anywhere else), and never
>> removing the hook.
> 
> Before removing the hook, check if there's still a buffer where the mode
> is activated.

That's what the line you quoted meant to say. Sorry if it wasn't clear :/

Clément.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]