help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: buffer local part of a hook


From: Stefan Monnier
Subject: Re: buffer local part of a hook
Date: Tue, 08 Mar 2016 09:49:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> No.  But we're fine with exposing the concept that a hook as a "local
>> part" and a "global part".
> The original question, how I understood it, was how both parts are stored.

I understood it to just asking for an explanation of those concepts are,
rather than how they're implemented.  As for "exposing the
implementation", while I don't really like it we do already document it
in the Elisp manual:

 -- Function: run-hooks &rest hookvars
     [...]
     If the hook variable is buffer-local, the buffer-local variable
     will be used instead of the global variable.  However, if the
     buffer-local variable contains the element ‘t’, the global hook
     variable will be run as well.


-- Stefan




reply via email to

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