GNU bug report logs - #7368
display-buffer may not respect pop-up-frames value

Previous Next

Package: emacs;

Reported by: Andrey Paramonov <cmr.aparamon <at> gmail.com>

Date: Wed, 10 Nov 2010 21:55:01 UTC

Severity: normal

Found in version 23.2

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Андрей Парамонов <cmr.pent <at> gmail.com>
Cc: 7368 <at> debbugs.gnu.org
Subject: bug#7368: Testcase
Date: Sat, 13 Nov 2010 09:32:45 +0100
> C-h v pop-up-frames RET says:
>
> pop-up-frames's value is nil
>
> Documentation:
> Whether `display-buffer' should make a separate frame.
> If nil, never make a separate frame.
>
> However, a new frame *does* pop up for me after running the following code:
>
> (let ((foo (get-buffer-create "foo.el"))
>       (bar (get-buffer-create "bar.el")))
>   (switch-to-buffer foo)
>   (delete-other-windows)
>   (completion-at-point)
>   (display-buffer bar t))

On my trunk Emacs your code produces a new window on the selected frame.
Apparently, some of your settings prevent it from splitting the selected
window and the second argument t means `display-buffer' must not reuse
the selected window.  So `display-buffer' simply has no other choice but
making a new frame.

BTW, the snippet

(progn
  (delete-other-windows)
  (display-buffer (other-buffer) t))

should be sufficient for exhibiting the behavior you observe.

martin




This bug report was last modified 10 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.