mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 15:52:00 -08:00
(Fkill_buffer, Fkill_all_local_variables):
Don't call Vrun_hooks if it is nil.
This commit is contained in:
parent
8746da9580
commit
fd186f07f1
1 changed files with 4 additions and 2 deletions
|
|
@ -753,7 +753,8 @@ with `delete-process'.")
|
|||
}
|
||||
|
||||
/* Then run the hooks. */
|
||||
call1 (Vrun_hooks, Qkill_buffer_hook);
|
||||
if (!NILP (Vrun_hooks))
|
||||
call1 (Vrun_hooks, Qkill_buffer_hook);
|
||||
unbind_to (count, Qnil);
|
||||
}
|
||||
|
||||
|
|
@ -1211,7 +1212,8 @@ a non-nil `permanent-local' property are not eliminated by this function.")
|
|||
register Lisp_Object alist, sym, tem;
|
||||
Lisp_Object oalist;
|
||||
|
||||
call1 (Vrun_hooks, intern ("change-major-mode-hook"));
|
||||
if (!NILP (Vrun_hooks))
|
||||
call1 (Vrun_hooks, intern ("change-major-mode-hook"));
|
||||
oalist = current_buffer->local_var_alist;
|
||||
|
||||
/* Make sure no local variables remain set up with this buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue