GNU bug report logs -
#7368
display-buffer may not respect pop-up-frames value
Previous Next
Full log
View this message in rfc822 format
> 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.