unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kim F. Storm" <storm@cua.dk>
Subject: Weak documentation on buffer-local hooks.
Date: Tue, 19 Feb 2002 09:12:59 +0000 (GMT)	[thread overview]
Message-ID: <20020219091259.EAD017C035@mail.filanet.dk> (raw)


Now that make-local-hook is obsoleted by the LOCAL arg to add-hook,
that function is no longer documented in the Emacs lisp manual.

Consequently, the documentation about buffer-local hooks is pretty
much non-existing in the manual now.  Specifically, the following
information should be included in the descriptive part of the Hooks
section (edited from the doc string of make-local-hook): 

Buffer-local hooks:

When a hook is added as a buffer-local hook, its local and global values
work in concert: running the hook actually runs all the hook
functions listed in *either* the local value *or* the global value
of the hook variable.


This should probably be added to add-hook's documentation:

This works by making t a member of the buffer-local value, which acts
as a flag to run the hook functions in the default value as well.


I'm not sure whether the following is still valid:

This works for all normal hooks, but does not work for most non-normal
hooks yet.  We will be changing the callers of non-normal hooks so
that they can handle localness; this has to be done one by one.


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


             reply	other threads:[~2002-02-19  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19  9:12 Kim F. Storm [this message]
2002-02-20 22:14 ` Weak documentation on buffer-local hooks Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20020219091259.EAD017C035@mail.filanet.dk \
    --to=storm@cua.dk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).