From 7410477aeeb19908f67d629b2b21fe576da4aafa Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 9 Feb 1994 23:47:09 +0000 Subject: [PATCH] (Fkill_all_local_variables): Run change-major-mode-hook. --- src/buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index 9f0d81e7068..46669694863 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1193,6 +1193,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")); oalist = current_buffer->local_var_alist; /* Make sure no local variables remain set up with this buffer -- 2.39.5