[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108143: run-hooks-with-args-* do
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108143: run-hooks-with-args-* do fixes (bug#12393) |
Date: |
Mon, 17 Sep 2012 21:07:13 -0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108143
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Mon 2012-09-17 21:07:13 -0400
message:
run-hooks-with-args-* do fixes (bug#12393)
* src/eval.c (Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Doc fixes.
modified:
src/ChangeLog
src/eval.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-09-14 16:35:25 +0000
+++ b/src/ChangeLog 2012-09-18 01:07:13 +0000
@@ -1,3 +1,8 @@
+2012-09-18 Glenn Morris <address@hidden>
+
+ * eval.c (Frun_hook_with_args_until_success)
+ (Frun_hook_with_args_until_failure): Doc fixes. (Bug#12393)
+
2012-09-14 Andreas Schwab <address@hidden>
* fileio.c (Ffile_selinux_context): Only call freecon when
=== modified file 'src/eval.c'
--- a/src/eval.c 2012-08-14 18:43:08 +0000
+++ b/src/eval.c 2012-09-18 01:07:13 +0000
@@ -2579,6 +2579,7 @@
with the given arguments ARGS, until one of them
returns a non-nil value. Then we return that value.
However, if they all return nil, we return nil.
+If the value of HOOK is nil, this function returns nil.
Do not use `make-local-variable' to make a hook variable buffer-local.
Instead, use `add-hook' and specify t for the LOCAL argument.
@@ -2600,10 +2601,12 @@
HOOK should be a symbol, a hook variable. If HOOK has a non-nil
value, that value may be a function or a list of functions to be
called to run the hook. If the value is a function, it is called with
-the given arguments and its return value is returned.
+the given arguments. Then we return nil if the function returns nil,
+and t if it returns non-nil.
If it is a list of functions, those functions are called, in order,
with the given arguments ARGS, until one of them returns nil.
-Then we return nil. However, if they all return non-nil, we return non-nil.
+Then we return nil. However, if they all return non-nil, we return t.
+If the value of HOOK is nil, this function returns t.
Do not use `make-local-variable' to make a hook variable buffer-local.
Instead, use `add-hook' and specify t for the LOCAL argument.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108143: run-hooks-with-args-* do fixes (bug#12393),
Glenn Morris <=