aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorStefan Monnier2011-03-28 16:26:35 -0400
committerStefan Monnier2011-03-28 16:26:35 -0400
commitf6d6298639ae43539581c2079666d76a54f1557e (patch)
tree851ead8f971b04dc30905d465e305e3d9efdf49d /src/ChangeLog
parent947b656632a76ebb01eda0550c34b1ac43684a98 (diff)
downloademacs-f6d6298639ae43539581c2079666d76a54f1557e.tar.gz
emacs-f6d6298639ae43539581c2079666d76a54f1557e.zip
Don't reset post-command-hook to nil upon error.
* src/eval.c (enum run_hooks_condition): Remove. (funcall_nil, funcall_not): New functions. (run_hook_with_args): Call each function through a `funcall' argument. Remove `cond' argument, now redundant. (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success) (Frun_hook_with_args_until_failure): Adjust accordingly. (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions. * src/keyboard.c (safe_run_hook_funcall): New function. (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error, don't set the hook to nil, but remove the offending function instead. (Qcommand_hook_internal): Remove, unused. (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define Vcommand_hook_internal. * doc/lispref/commands.texi (Command Overview): post-command-hook is not reset to nil any more.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 75b75ab522c..be55ef369b3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * keyboard.c (safe_run_hook_funcall): New function.
4 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
5 don't set the hook to nil, but remove the offending function instead.
6 (Qcommand_hook_internal): Remove, unused.
7 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
8 Vcommand_hook_internal.
9
10 * eval.c (enum run_hooks_condition): Remove.
11 (funcall_nil, funcall_not): New functions.
12 (run_hook_with_args): Call each function through a `funcall' argument.
13 Remove `cond' argument, now redundant.
14 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
15 (Frun_hook_with_args_until_failure): Adjust accordingly.
16 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
17
12011-03-28 Juanma Barranquero <lekktu@gmail.com> 182011-03-28 Juanma Barranquero <lekktu@gmail.com>
2 19
3 * dispextern.h (string_buffer_position): Remove declaration. 20 * dispextern.h (string_buffer_position): Remove declaration.