From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: rolf@pointsman.de, 22348@debbugs.gnu.org
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 [thread overview]
Message-ID: <8360yyk8gd.fsf@gnu.org> (raw)
In-Reply-To: <1jio2z7lm9.fsf@fencepost.gnu.org> (message from Glenn Morris on Mon, 11 Jan 2016 18:16:30 -0500)
> 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.
next prev parent reply other threads:[~2016-01-12 17:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 12:43 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 Rolf Ade
2016-01-11 22:27 ` Glenn Morris
2016-01-11 22:56 ` Rolf Ade
2016-01-11 23:16 ` Glenn Morris
2016-01-12 17:34 ` Eli Zaretskii [this message]
2016-01-13 17:52 ` Glenn Morris
2016-01-13 4:05 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8360yyk8gd.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22348@debbugs.gnu.org \
--cc=rgm@gnu.org \
--cc=rolf@pointsman.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.