[Top][All Lists]

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

Re: Inconsistent behaviour of display-buffer, pop-to-buffer

From: Chong Yidong
Subject: Re: Inconsistent behaviour of display-buffer, pop-to-buffer
Date: Wed, 05 Mar 2008 16:05:53 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux)

"Otto Maddox" <ottomaddox@fastmail.fm> writes:

> When running Emacs on either X or Mac OS X:
> ;; Similar to display-buffer-other-frame, but without all the
> ;; raise-frame, make-frame-{in,}visible stuff.  The point is to
> ;; illustrate annoyingly inconsistent behaviour of display-buffer.
> (defun my-display-buffer (buf)
>   (let ((pop-up-frames t)
>         same-window-buffer-names
>         same-window-regexps)
>     (display-buffer buf t)))
> Create but don't display a buffer named "foo":
> (get-buffer-create "foo")
> Pop up a new frame, selected and WITH focus:
> (my-display-buffer "foo")
> Go back to the original frame with C-x 5 o
> Pop up the "foo" frame, selected but WITHOUT focus this time:
> (my-display-buffer "foo")

I'll take a look at this, but my feeling is that this is a window
manager issue.  The window manager automatically selects any new frame
that Emacs creates, and this is not necessarily something we can (or
should) change.

reply via email to

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