From 6397533b300a31adbc35b3476b58232bf8b32b54 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Wed, 19 May 2004 16:43:41 +0000 Subject: [PATCH] 2004-05-19 Andre Srinivasan * gnus.texi (Group Parameters): Added more on hooks. (Small change.) --- texi/ChangeLog | 5 +++++ texi/gnus.texi | 22 +++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/texi/ChangeLog b/texi/ChangeLog index c0e7edc4d..2118f92c0 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,8 @@ +2004-05-19 Andre Srinivasan + + * gnus.texi (Group Parameters): Added more on hooks. (Small + change.) + 2004-05-19 Reiner Steib * gnus.texi (Oort Gnus): Mention new behavior of `F' and `R' when diff --git a/texi/gnus.texi b/texi/gnus.texi index 5a7d83857..46350cd1e 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -3053,11 +3053,23 @@ tag can be removed from the article subjects in the summary buffer for the group by putting @code{(gnus-list-identifiers "DOCBOOK-APPS:")} into the group parameters for the group. -This can also be used as a group-specific hook function, if you'd like. -If you want to hear a beep when you enter a group, you could put -something like @code{(dummy-variable (ding))} in the parameters of that -group. @code{dummy-variable} will be set to the result of the -@code{(ding)} form, but who cares? +This can also be used as a group-specific hook function. If you want to +hear a beep when you enter a group, you could put something like +@code{(dummy-variable (ding))} in the parameters of that group. +@code{dummy-variable} will be set to the (meaningless) result of the +@code{(ding)} form. + +Alternatively, since the VARIABLE becomes local to the group, this +pattern can be used to temporarily change a hook. For example, if the +following is added to a group parameter + +@lisp +(gnus-summary-prepared-hook + '(lambda nil (local-set-key "d" (local-key-binding "n")))) +@end lisp + +when the group is entered, the 'd' key will not mark the article as +expired. @end table -- 2.25.1