all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: buffer local part of a hook
Date: Tue, 08 Mar 2016 09:49:46 -0500	[thread overview]
Message-ID: <jwvoaapowlp.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: b2ae123e-3e48-a2c3-e8e9-c7b8031aa80a@yandex.ru

>> 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	other threads:[~2016-03-08 14:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-07 12:52 buffer local part of a hook Matthias Pfeifer
2016-03-07 12:54 ` Dmitry Gutov
2016-03-07 14:36   ` Stefan Monnier
2016-03-07 15:41     ` Dmitry Gutov
2016-03-07 17:31       ` Stefan Monnier
2016-03-08 13:08         ` Dmitry Gutov
2016-03-08 14:49           ` Stefan Monnier [this message]
2016-03-09  3:50             ` Dmitry Gutov
2016-03-09  4:01               ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvoaapowlp.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.