[Top][All Lists]

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

Re: display-buffer-alist simplifications

From: Juri Linkov
Subject: Re: display-buffer-alist simplifications
Date: Mon, 01 Aug 2011 11:03:08 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

> A pure condition/rule analogy is hard to achieve.  IIUC, for example,
> `even-window-sizes' would be a rule.  This rule works on the conditions
> that the window used and the selected window are adjacent, one of them
> is higher, ...  Would these be conditions?

These are not conditions.  They are post-actions, i.e. the final actions
to be called after performing base actions, so merging should take care
of putting `even-window-sizes' after window splitting, etc.

Moreover, I suspect that `even-window-sizes' is unnecessary.
Using `balance-windows' at the end of the action part of the rule
should do the same.  Their functionalities are conceptually similar,
so I think they should be joined to `balance-windows'.

> I'm not sure what you mean by "merging actions".  How would you "merge
> in" the Emacs 23 default behavior of evening window heights?

In Emacs 23, `display-buffer' called `window--even-window-heights'
unconditionally.  So calling it from the action part of the rule
should be equivalent.

reply via email to

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