* bug#15732: 24.3.50; display-buffer-pop-up-frame working poorly
@ 2013-10-27 15:31 Michael Heerdegen
2013-10-27 16:46 ` martin rudalics
0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen @ 2013-10-27 15:31 UTC (permalink / raw)
To: 15732
Hello,
`display-buffer-pop-up-frame' always returns nil, although the doc says
it would return the window of the newly created frame. E.g. just
evaluate from emacs -Q
(display-buffer-pop-up-frame "*Messages*" ())
=> nil
This is the defun:
(defun display-buffer-pop-up-frame (buffer alist)
(let* ((params (cdr (assq 'pop-up-frame-parameters alist)))
(pop-up-frame-alist (append params pop-up-frame-alist))
(fun pop-up-frame-function)
frame window)
(when (and fun
;; Make BUFFER current so `make-frame' will use it as the
;; new frame's buffer (Bug#15133).
(with-current-buffer buffer
(setq frame (funcall fun)))
(setq window (frame-selected-window frame)))
(prog1 (window--display-buffer
buffer window 'frame alist display-buffer-mark-dedicated)
(unless (cdr (assq 'inhibit-switch-frame alist))
(window--maybe-raise-frame frame))))))
The problem seems to be that `window--display-buffer' here always does
nothing and returns nil - because the new frame is not yet displayed,
and the WINDOW is (not yet) living. I guess this was also the cause of
the cited bug Bug#15133.
Note that also all arguments given to `window--display-buffer' are thus
ignored, especially ALIST and `DISPLAY-BUFFER-MARK-DEDICATED'.
Regards,
Michael.
In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4)
of 2013-10-19 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description: Debian GNU/Linux testing (jessie)
Configured using:
`configure --prefix=/usr/local/built/'
Important settings:
value of $LC_ALL: de_DE.utf8
value of $LC_COLLATE: C
value of $LC_TIME: C
value of $LANG: de_DE.utf8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Emacs-Lisp
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15732: 24.3.50; display-buffer-pop-up-frame working poorly
2013-10-27 15:31 bug#15732: 24.3.50; display-buffer-pop-up-frame working poorly Michael Heerdegen
@ 2013-10-27 16:46 ` martin rudalics
2013-10-28 16:32 ` Michael Heerdegen
0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2013-10-27 16:46 UTC (permalink / raw)
To: michael_heerdegen; +Cc: 15732
> `display-buffer-pop-up-frame' always returns nil, although the doc says
> it would return the window of the newly created frame. E.g. just
> evaluate from emacs -Q
>
> (display-buffer-pop-up-frame "*Messages*" ())
>
> => nil
`display-buffer-pop-up-frame' expects a buffer as first argument and not
a buffer name. And `window--display-buffer' returns nil if the BUFFER
argument is not a live buffer. So this is the intended behavior.
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15732: 24.3.50; display-buffer-pop-up-frame working poorly
2013-10-27 16:46 ` martin rudalics
@ 2013-10-28 16:32 ` Michael Heerdegen
0 siblings, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2013-10-28 16:32 UTC (permalink / raw)
To: martin rudalics; +Cc: 15732
martin rudalics <rudalics@gmx.at> writes:
> > `display-buffer-pop-up-frame' always returns nil, although the doc says
> > it would return the window of the newly created frame. E.g. just
> > evaluate from emacs -Q
> >
> > (display-buffer-pop-up-frame "*Messages*" ())
> >
> > => nil
>
> `display-buffer-pop-up-frame' expects a buffer as first argument and not
> a buffer name. And `window--display-buffer' returns nil if the BUFFER
> argument is not a live buffer. So this is the intended behavior.
Oh, I see, that makes sense, thank you. I'll close this report.
Regards,
Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-28 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-27 15:31 bug#15732: 24.3.50; display-buffer-pop-up-frame working poorly Michael Heerdegen
2013-10-27 16:46 ` martin rudalics
2013-10-28 16:32 ` Michael Heerdegen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.