unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* special-display-popup-frame should have BUFFER current when it calls make-frame
@ 2004-10-01 18:07 Drew Adams
  0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2004-10-01 18:07 UTC (permalink / raw)


This problem existed in Emacs 20. I'm not positive that this change needs to
be made to Emacs 21, but comparing the code to the Emacs 20 code, I believe
the change still needs to be made.

The problem is that, when a new frame is created because no window exists
yet, the call to make-frame does not happen with BUFFER current. This can
have undesirable consequences for, for instance, after-make-frame-functions
that might depend on which buffer is current.

The code should be changed from this:

(make-frame (append args special-display-frame-alist))

to this:

(save-excursion (set-buffer buffer)
                (make-frame (append args special-display-frame-alist)))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-01 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-01 18:07 special-display-popup-frame should have BUFFER current when it calls make-frame Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).