Commit ee83b77f authored by Glenn Morris's avatar Glenn Morris
Browse files

* src/buffer.c (Fset_buffer_major_mode): Allow default major-mode,

or its hook, to move point.  (Bug#22348)
parent efa968e9
......@@ -1999,7 +1999,7 @@ the current buffer's major mode. */)
/* To select a nonfundamental mode,
select the buffer temporarily and then call the mode function. */
record_unwind_protect (save_excursion_restore, save_excursion_save ());
record_unwind_current_buffer ();
Fset_buffer (buffer);
call0 (function);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment