diff options
author | Julien Danjou <julien@danjou.info> | 2011-03-23 11:06:57 +0100 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2011-03-23 11:06:57 +0100 |
commit | dee091a37f6486dbbcf7bf00f6ee54d77033f997 (patch) | |
tree | 922b3490e04f512f9664ca350102d57a18296680 /src/insdel.c | |
parent | 904a432cf44c176fa3c88a975f046d0cf2992023 (diff) | |
download | emacs-dee091a37f6486dbbcf7bf00f6ee54d77033f997.tar.gz |
Use Frun_hooks rather than calling Vrun_hooks manually
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c index ad3460f9a64..1cbe3de20d2 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -2137,14 +2137,14 @@ signal_before_change (EMACS_INT start_int, EMACS_INT end_int, specbind (Qinhibit_modification_hooks, Qt); - /* If buffer is unmodified, run a special hook for that case. */ + /* If buffer is unmodified, run a special hook for that case. The + check for Vfirst_change_hook is just a minor optimization. */ if (SAVE_MODIFF >= MODIFF - && !NILP (Vfirst_change_hook) - && !NILP (Vrun_hooks)) + && !NILP (Vfirst_change_hook)) { PRESERVE_VALUE; PRESERVE_START_END; - call1 (Vrun_hooks, Qfirst_change_hook); + Frun_hooks (1, &Qfirst_change_hook); } /* Now run the before-change-functions if any. */ |