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/buffer.c | |
parent | 904a432cf44c176fa3c88a975f046d0cf2992023 (diff) | |
download | emacs-dee091a37f6486dbbcf7bf00f6ee54d77033f997.tar.gz emacs-dee091a37f6486dbbcf7bf00f6ee54d77033f997.tar.bz2 emacs-dee091a37f6486dbbcf7bf00f6ee54d77033f997.zip |
Use Frun_hooks rather than calling Vrun_hooks manually
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index c0e6866dee1..da2cc1573c8 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. */ |