emacs-devel
[Top][All Lists]
Advanced

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

Re: display-buffer-alist simplifications


From: martin rudalics
Subject: Re: display-buffer-alist simplifications
Date: Sun, 24 Jul 2011 19:11:18 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> Tell me what's missing in the form
>
> (setq
>  display-buffer-alist
>  '((((regexp . ".*"))
>     (reuse-window other nil 0)
>     (override . t)
>     (reuse-window same))))
>
> for a call like
>
> (display-buffer "*scratch*" 'same-window)

But maybe you rather meant something like

(setq
 display-buffer-alist
 '((((regexp . ".*"))
    ;; Reuse another window on any visible frame showing the buffer
    ;; already, overriding application supplied specifiers.
    (reuse-window other same 0)
    ;; Reuse another window on the same frame showing another buffer,
    ;; overriding application supplied specifiers.
    (reuse-window other other)
    (override . t)
    ;; Reuse the same window.
    (reuse-window same))))

for a call like

(display-buffer "*scratch*" 'same-window)

martin



reply via email to

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