bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22348: 24.5; Mode hooks doesn't run as expected if the major mode of


From: Eli Zaretskii
Subject: bug#22348: 24.5; Mode hooks doesn't run as expected if the major mode of a new buffer is determined by the default major mode
Date: Tue, 12 Jan 2016 19:34:42 +0200

> From: Glenn Morris <rgm@gnu.org>
> Date: Mon, 11 Jan 2016 18:16:30 -0500
> Cc: 22348@debbugs.gnu.org
> 
> 
> I'm saying the solution is probably as simple as:
> 
> --- a/src/buffer.c
> +++ b/src/buffer.c
> @@ -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);

I think we should do this on master.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]