* Can display-buffer-reuse-window support "(inhibit-same-frame . t)"?
@ 2015-09-13 16:02 张海君
2015-09-13 19:52 ` Stephen Leake
0 siblings, 1 reply; 3+ messages in thread
From: 张海君 @ 2015-09-13 16:02 UTC (permalink / raw)
To: emacs-devel
I' like display-buffer-reuse-window to reuse windows only in other frames,
so switch-to-buffer-other-frame will display buffer in other frame unconditionally.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can display-buffer-reuse-window support "(inhibit-same-frame . t)"?
2015-09-13 16:02 Can display-buffer-reuse-window support "(inhibit-same-frame . t)"? 张海君
@ 2015-09-13 19:52 ` Stephen Leake
2015-09-14 8:31 ` martin rudalics
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Leake @ 2015-09-13 19:52 UTC (permalink / raw)
To: emacs-devel
张海君 <netjune@icloud.com> writes:
> I' like display-buffer-reuse-window to reuse windows only in other frames,
> so switch-to-buffer-other-frame will display buffer in other frame unconditionally.
Supporting (inhibit-same-frame . t) is a good idea, although I don't see
how to easily implement that in display-buffer-reuse-window.
You could also replace display-buffer-reuse-window with the new
display-buffer-use-some-frame in display-buffer--other-frame-action.
Also see the Gnu ELPA package "other-frame-window".
--
-- Stephe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can display-buffer-reuse-window support "(inhibit-same-frame . t)"?
2015-09-13 19:52 ` Stephen Leake
@ 2015-09-14 8:31 ` martin rudalics
0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2015-09-14 8:31 UTC (permalink / raw)
To: Stephen Leake, emacs-devel
> Supporting (inhibit-same-frame . t) is a good idea, although I don't see
> how to easily implement that in display-buffer-reuse-window.
>
> You could also replace display-buffer-reuse-window with the new
> display-buffer-use-some-frame in display-buffer--other-frame-action.
IIUC ‘display-buffer-use-some-frame’ should handle this case already.
So maybe all we need is to add an appropriate link in the documentation
of ‘display-buffer-reuse-window’.
BTW the doc-string of ‘display-buffer-use-some-frame’ must be fixed:
(defun display-buffer-use-some-frame (buffer alist)
"Display BUFFER in an existing frame that meets a predicate
\(by default any frame other than the current frame). If
successful, return the window used; otherwise return nil.
See section D.6 Tips for Documentation Strings of the Elisp manual on
how to do that.
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-14 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-13 16:02 Can display-buffer-reuse-window support "(inhibit-same-frame . t)"? 张海君
2015-09-13 19:52 ` Stephen Leake
2015-09-14 8:31 ` martin rudalics
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.