Ensure hack-local-variables is run in a fundamental mode buffer.
commitb120fbd6a40de657673bea7c3a630cf514b59310
authorAlan Mackenzie <acm@muc.de>
Fri, 24 Jun 2016 16:03:29 +0000 (24 16:03 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 24 Jun 2016 16:03:29 +0000 (24 16:03 +0000)
tree05f39dadd395a34e52f2b6a62718771046dae60b
parent974a53bfbe5a19326d2473012996ffd81ec91630
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.
src/buffer.c