diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 15ed613efd0..007b095a9a8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -753,7 +753,8 @@ with `delete-process'.") | |||
| 753 | } | 753 | } |
| 754 | 754 | ||
| 755 | /* Then run the hooks. */ | 755 | /* Then run the hooks. */ |
| 756 | call1 (Vrun_hooks, Qkill_buffer_hook); | 756 | if (!NILP (Vrun_hooks)) |
| 757 | call1 (Vrun_hooks, Qkill_buffer_hook); | ||
| 757 | unbind_to (count, Qnil); | 758 | unbind_to (count, Qnil); |
| 758 | } | 759 | } |
| 759 | 760 | ||
| @@ -1211,7 +1212,8 @@ a non-nil `permanent-local' property are not eliminated by this function.") | |||
| 1211 | register Lisp_Object alist, sym, tem; | 1212 | register Lisp_Object alist, sym, tem; |
| 1212 | Lisp_Object oalist; | 1213 | Lisp_Object oalist; |
| 1213 | 1214 | ||
| 1214 | call1 (Vrun_hooks, intern ("change-major-mode-hook")); | 1215 | if (!NILP (Vrun_hooks)) |
| 1216 | call1 (Vrun_hooks, intern ("change-major-mode-hook")); | ||
| 1215 | oalist = current_buffer->local_var_alist; | 1217 | oalist = current_buffer->local_var_alist; |
| 1216 | 1218 | ||
| 1217 | /* Make sure no local variables remain set up with this buffer | 1219 | /* Make sure no local variables remain set up with this buffer |