summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5eace5b96e3..84fdd35a2de 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1292,8 +1292,7 @@ with SIGHUP. */)
}
/* Then run the hooks. */
- if (!NILP (Vrun_hooks))
- call1 (Vrun_hooks, Qkill_buffer_hook);
+ Frun_hooks (1, &Qkill_buffer_hook);
unbind_to (count, Qnil);
}