diff options
| author | Julien Danjou | 2011-03-23 11:06:57 +0100 |
|---|---|---|
| committer | Julien Danjou | 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.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 | |||
| 2520 | the normal hook `change-major-mode-hook'. */) | 2520 | the normal hook `change-major-mode-hook'. */) |
| 2521 | (void) | 2521 | (void) |
| 2522 | { | 2522 | { |
| 2523 | if (!NILP (Vrun_hooks)) | 2523 | Frun_hooks (1, &Qchange_major_mode_hook); |
| 2524 | call1 (Vrun_hooks, Qchange_major_mode_hook); | ||
| 2525 | 2524 | ||
| 2526 | /* Make sure none of the bindings in local_var_alist | 2525 | /* Make sure none of the bindings in local_var_alist |
| 2527 | remain swapped in, in their symbols. */ | 2526 | remain swapped in, in their symbols. */ |