* etc/NEWS: Related edit.
2012-02-06 Glenn Morris <rgm@gnu.org>
+ * modes.texi (Running Hooks): Mention run-hook-wrapped.
+
* control.texi (Handling Errors):
Mention condition-case-no-debug and with-demoted-errors.
default definition (by not calling @var{fun}).
@end defmac
+@defun run-hook-wrapped hook wrap-function &rest args
+This function is similar to @code{run-hook-with-args-until-success}.
+Like that function, it runs the functions on the abnormal hook
+@code{hook}, stopping at the first one that returns non-@code{nil}.
+Instead of calling the hook functions directly, though, it actually
+calls @code{wrap-function} with arguments @code{fun} and @code{args}.
+@end defun
+
@node Setting Hooks
@subsection Setting Hooks
** New hook types
++++
*** New function `run-hook-wrapped' for running an abnormal hook by
passing the hook functions as arguments to a "wrapping" function.
+Like `run-hook-with-args-until-success', it stops at the first
+non-nil retun value.
+
+++
*** New macro `with-wrapper-hook' for running an abnormal hook as a
set of "wrapping" filters, similar to around advice.