aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJulien Danjou <[email protected]>2011-03-23 11:06:57 +0100
committerJulien Danjou <[email protected]>2011-03-23 11:06:57 +0100
commitdee091a37f6486dbbcf7bf00f6ee54d77033f997 (patch)
tree922b3490e04f512f9664ca350102d57a18296680 /src/buffer.c
parent904a432cf44c176fa3c88a975f046d0cf2992023 (diff)
Use Frun_hooks rather than calling Vrun_hooks manually
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c0e6866dee..da2cc1573c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2520,8 +2520,7 @@ The first thing this function does is run
the normal hook `change-major-mode-hook'. */)
(void)
{
- if (!NILP (Vrun_hooks))
- call1 (Vrun_hooks, Qchange_major_mode_hook);
+ Frun_hooks (1, &Qchange_major_mode_hook);
/* Make sure none of the bindings in local_var_alist
remain swapped in, in their symbols. */