aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-13 23:38:56 +0200
committerLars Magne Ingebrigtsen2011-07-13 23:38:56 +0200
commit465c5fc88d4d7f0cbeba1a12852a4be70d6ed28b (patch)
treec1b3b1cf913cd2e0de9bc0ae8b94de656df307c7 /doc
parent5827450416985ed689cfa0ca1843a2ec2b0cd31d (diff)
downloademacs-465c5fc88d4d7f0cbeba1a12852a4be70d6ed28b.tar.gz
emacs-465c5fc88d4d7f0cbeba1a12852a4be70d6ed28b.zip
Clarify manual and `add-hook' doc string about buffer-local hooks
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/custom.texi6
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 0102e028d49..e21a02f700f 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * custom.texi (Hooks): Mention buffer-local hooks (bug#6218).
4
12011-07-13 Glenn Morris <rgm@gnu.org> 52011-07-13 Glenn Morris <rgm@gnu.org>
2 6
3 * dired.texi (Dired Enter): Mention --dired. (Bug#9039) 7 * dired.texi (Dired Enter): Mention --dired. (Bug#9039)
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index 8465dd93519..6a6d465438d 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -820,6 +820,12 @@ the versions you added will remain in the hook variable together. You
820can clear out individual functions by calling @code{remove-hook}, or 820can clear out individual functions by calling @code{remove-hook}, or
821do @code{(setq @var{hook-variable} nil)} to remove everything. 821do @code{(setq @var{hook-variable} nil)} to remove everything.
822 822
823@cindex buffer-local hooks
824 If the hook variable is buffer-local, the buffer-local variable will
825be used instead of the global variable. However, if the buffer-local
826variable contains the element @code{t}, the global hook variable will
827be run as well.
828
823@node Locals 829@node Locals
824@subsection Local Variables 830@subsection Local Variables
825 831