bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Tue, 25 May 2010 13:00:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> How would you proceed?
>> 1- fix all the Emacs code that modifies those vars.
> IMHO the only way to do that is to (1) provide a new set of variables
> Elisp code _is_ allowed to change and (2) have `display-buffer' use
> these iff the respective buffer has no corresponding entry in the
> special-display-... options.

Rather than let-binding some Lisp-manipulated "config" var, I was
thinking of passing special parameters to display-buffer (I'd rather
avoid dynamic scoping whenever possible).  Other than that, yes that's
the idea.

> If I do that and a buffer is now in the (same-window . t) group of
> `special-display-regexps', how should
> `Buffer-menu-switch-other-window' proceed with that buffer?
> Bind `special-display-regexps'?  Call `switch-to-buffer-other-window'?
> So far the special-display-... options had an excuse: If this variable
> appears \"not to work\", ...

You mean how could the calling code till display-buffer whether to
"prefer <foo> unless overridden by the user's config" or to "obey <foo>
regardless of the user's config"?
I guess the special parameters passed to display-buffer would have to be
different for the two different cases.


        Stefan





reply via email to

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