mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 17:10:51 -08:00
Ensure hack-local-variables is run in a fundamental mode buffer.
This fixes bug #23827. * src/buffer.c (set-buffer-major-mode): Run `fundamental-mode' when the buffer gets set to that mode, so that `run-mode-hooks', and thus `hack-local-variables' get run.
This commit is contained in:
parent
974a53bfbe
commit
b120fbd6a4
1 changed files with 3 additions and 1 deletions
|
|
@ -1984,7 +1984,9 @@ the current buffer's major mode. */)
|
|||
function = BVAR (current_buffer, major_mode);
|
||||
}
|
||||
|
||||
if (NILP (function) || EQ (function, Qfundamental_mode))
|
||||
if (NILP (function)) /* If function is `fundamental-mode', allow it to run
|
||||
so that `run-mode-hooks' and thus
|
||||
`hack-local-variables' get run. */
|
||||
return Qnil;
|
||||
|
||||
count = SPECPDL_INDEX ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue