[Top][All Lists]

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

[Emacs-bug-tracker] bug#8865: closed (24.0.50; `display-buffer' does not

From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#8865: closed (24.0.50; `display-buffer' does not respect `pop-up-frames')
Date: Thu, 16 Jun 2011 08:46:02 +0000

Your message dated Thu, 16 Jun 2011 10:45:13 +0200
with message-id <address@hidden>
and subject line Re: bug#8865: 24.0.50; `display-buffer' does not respect 
has caused the GNU bug report #8865,
regarding 24.0.50; `display-buffer' does not respect `pop-up-frames'
to be marked as done.

(If you believe you have received this mail in error, please contact

8865: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8865
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.0.50; `display-buffer' does not respect `pop-up-frames' Date: Tue, 14 Jun 2011 11:14:07 -0700
My setup, not emacs -Q.

Summary: A non-interactive call to `display-buffer' with non-nil arg
NOT-THIS-WINDOW does not show the buffer in a separate frame, even though
`pop-up-frames' is non-nil.
I have non-nil `pop-up-frames'.  I use the following function via `M-x
find-library-other-window frame.el'.  It should find the library in a
separate frame.  Instead, it finds it in another window of the current
frame - i.e., it splits the current window and puts it in one of those
two windows.
(defun find-library-other-window (library)
  "Find the Emacs-Lisp source of LIBRARY in another window."
   (let* ((path (cons (or find-function-source-path load-path)
   (def (if (eq (function-called-at-point) 'require)
     (save-excursion (backward-up-list)
                                   (backward-sexp -2)
                                   (thing-at-point 'symbol))
   (thing-at-point 'symbol))))
     (when def (setq def (and (locate-file-completion def path 'test) def)))
     (list (completing-read "Library name: " 'locate-file-completion
                            path nil nil nil def))))
  (let ((buf (find-file-noselect (find-library-name library))))
    (pop-to-buffer buf 'other-window)))
Invoking `M-x find-library-other-window frame.el' leads to the following
call chain (from the debugger):
(display-buffer #<buffer frame.el> other-window nil)
(display-buffer-normalize-specifiers "frame.el" other-window nil)
returns the following sexp, which I'll call FOO below:
((reuse-window other same visible)
 (pop-up-window (largest) (lru))
 (reuse-window other other visible)
 (reuse-window nil same 0)
 (reuse-window-even-sizes . t)
 (pop-up-frame t)
 (pop-up-frame-function lambda nil (make-frame pop-up-frame-alist))
 (reuse-window nil same visible)
 (pop-up-window (largest) (lru))
 (reuse-window nil other visible)
 (reuse-window-even-sizes . t)
 (reuse-window nil same visible)
 (pop-up-window (largest) (lru))
 (pop-up-frame-alist (height . 24) (width . 80) (unsplittable . t))
 (reuse-window nil other visible)
 (reuse-window-even-sizes . t))
Then, * display-buffer-reuse-window(
#<buffer frame.el> 
(other same visible)
returns: nil
Then, * display-buffer-pop-up-window(
#<buffer frame.el>
((largest) (lru))
calls * display-buffer-split-window(
#<window 8 on drews-lisp-20> 
which calls * display-buffer-split-window-1(
#<window 8 on drews-lisp-20> below 4)
which calls * split-window(
#<window 8 on drews-lisp-20> nil below)
which calls * resize-this-window(
#<window 8 on drews-lisp-20> -29 nil)
which calls * split-window-internal(
#<window 8 on drews-lisp-20> 29 below 0.5)
which splits the window and then throws, putting the frame.el buffer in
the second window (instead of its own frame).

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2011-06-13 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags

--- End Message ---
--- Begin Message --- Subject: Re: bug#8865: 24.0.50; `display-buffer' does not respect `pop-up-frames' Date: Thu, 16 Jun 2011 10:45:13 +0200 User-agent: Thunderbird (Windows/20090302)
Fixed on trunk in revision 104603.


--- End Message ---

reply via email to

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