[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-buffer-alist simplifications
From: |
Stefan Monnier |
Subject: |
Re: display-buffer-alist simplifications |
Date: |
Tue, 09 Aug 2011 14:19:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> My current idea is to redefine RULEs from (FUNCTION . ARGS) to
>> (FUNCTION . ALIST), and then FUNCTION called is the one from the highest
>> precedence, and the ALIST passed to it is the concatenation of all the
>> ALISTs (the one from display-buffer-default-rule, plus the one from the
>> caller, plus the one from display-buffer-alist, plus the one from
>> display-buffer-override-rule), and `not-this-window' would be one of the
>> possible ALIST keys. So if it's provided by the caller it will appear
>> as arg to FUNCTION, unless it's explicitly overridden by
>> a (not-this-window . nil) element in the display-buffer-alist.
> I begin to wonder how this differs from the current handling of
> `display-buffer-alist'.
Here are the difference I see:
- use functions rather than a finite set of symbols.
- handle the FUNCTION or FUNCTIONS (i.e. the list of methods to use/try)
separately from the other arguments, i.e. separate the part which is
tried in sequence from the part that's handled as an alist.
> So when an application sets the argument, people who want the old
> behavior are overridden. This means that such people can use
> `message-mail' as before but any of their customizations affecting
> `message-mail-other-window' or `message-mail-other-frame' are lost.
Yes (unless message-mail-other-window keeps using the old let-binding
horror, of course).
Stefan
- Re: display-buffer-alist simplifications, (continued)
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/04
- Re: display-buffer-alist simplifications, Chong Yidong, 2011/08/05
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/06
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/07
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/08
- Re: display-buffer-alist simplifications, Andreas Röhler, 2011/08/08
- Re: display-buffer-alist simplifications, Juri Linkov, 2011/08/08
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/08
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/08
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/09
- Re: display-buffer-alist simplifications,
Stefan Monnier <=
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/10
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/10
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/11
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/11
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/12
- Re: display-buffer-alist simplifications, Chong Yidong, 2011/08/12
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/12
- Re: display-buffer-alist simplifications, martin rudalics, 2011/08/13
- Re: display-buffer-alist simplifications, Stefan Monnier, 2011/08/13
- Re: display-buffer-alist simplifications, Juri Linkov, 2011/08/16