[Top][All Lists]
[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: |
Tue, 09 Aug 2011 14:54:35 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> So display-buffer-alist would be a list of (MATCHER . THINGS) where
> THINGS are lists of (DISPLAY-SPECIFIERS . SOMETHING-ELSE)? What are the
> SOMETHING-ELSE and what do they do?
What the doc-string of `display-buffer-alist' individually describes for
each specifier. For the reuse-window specifier it's a <window, buffer,
frame> triple, for the pop-up-window specifier it's a list of <window,
side> tuples, and for many other specifiers it's a boolean.
>> would then become
>
>> (defun message-mail-other-window (&optional to subject)
>> "Like `message-mail' command, but display mail buffer in another window."
>> (interactive)
>> (unless (message-mail-user-agent)
>> (let ((pop-up-windows t)
>> (special-display-buffer-names nil)
>> (special-display-regexps nil)
>> (same-window-buffer-names nil)
>> (same-window-regexps nil))
>> (message-pop-to-buffer (message-buffer-name "mail" to) 'other-window)))
>
> No, because the RULE takes precedence over the
> display-buffer-default-rule which is the one that obeys pop-up-frames
> and stuff. At least, that's what my idealized design does.
> Of course, such paper designs tend to behave unrealistically well.
I'm lost here. Do you mean that users who prefer the old
`display-buffer' behavior get overridden by the application whenever it
passes an argument but do get the old behavior when the application does
not pass an argument?
martin
- Re: display-buffer-alist simplifications, (continued)
- Re: display-buffer-alist simplifications, Chong Yidong, 2011/08/31
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/31
- Re: display-buffer-alist simplifications, Chong Yidong, 2011/08/31
- RE: display-buffer-alist simplifications, Drew Adams, 2011/08/31
- RE: display-buffer-alist simplifications, Stephen J. Turnbull, 2011/08/31
- Re: display-buffer-alist simplifications, John Yates, 2011/08/09
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/08
- Re: display-buffer-alist simplifications, Stephen J. Turnbull, 2011/08/08
- Re: display-buffer-alist simplifications,
martin rudalics <=
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/09
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/10
- Re: display-buffer-alist simplifications, Štěpán Němec, 2011/08/10
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/10
- RE: display-buffer-alist simplifications, Drew Adams, 2011/08/10
- Re: display-buffer-alist simplifications, Juri Linkov, 2011/08/10
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/10
- Re: display-buffer-alist simplifications, Juri Linkov, 2011/08/08
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/08
- Re: display-buffer-alist simplifications, Juri Linkov, 2011/08/07