[Top][All Lists]

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

bug#6204: vc-dir always splits the frame

From: Stefan Monnier
Subject: bug#6204: vc-dir always splits the frame
Date: Thu, 20 May 2010 13:14:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> Now after let-binding `pop-up-windows' to nil around the `pop-to-buffer'
>> call, what if someone might want to restore the old behavior.

Indeed.  A good way would be to provide a way to override pop-up-windows
(both nil and t) in special-display-regexps.  We already have
(same-window . t), so we only need to add the other half.

> The intended use is that an application calling `display-buffer'
> or `pop-to-buffer' could bind this as

> (let  ((pop-up-windows
>       (if (eq pop-up-windows t)
>           application-dependent-value
>         pop-up-windows)))

> that is, the default value can be overridden by the application,
> user customizations are respected.

But maybe the user would like to follow the application's special
handling, even tho she modified her pop-up-windows for other reasons.
I think it's much better to use 2 separate variables, where the
user-controlled var is never modified by Elisp code.


reply via email to

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