[Top][All Lists]

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

Re: display-buffer-overriding-action

From: Stefan Monnier
Subject: Re: display-buffer-overriding-action
Date: Tue, 13 Sep 2011 16:48:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> As far as I can see, every Lisp caller falls into one of two cases:
> - "Generic" calls to display-buffer or pop-to-buffer, which don't intend
>    to second guess Emacs defaults and/or user settings.

That's the easy case.

> - Commands like `C-x 5 b' or `info-other-window', which fall under the
>   "explicit command" criterion and should override the defaults.

This case depends:
- historically, it has obeyed special-display-*, which would mean it
  should obey d-b-alist as well.  Hence the ACTION argument.
- even if/when we want to change C-x 5 b to override the d-b-alist (and
  special-display-* as well, of course), there are several other
  `other-window' cases where it's not nearly as clear cut that the
  user really meant to override d-b-alist (e.g. because it's the only
  command that has a convenient key binding).

Also you forgot the switch-to-buffer case, which uses the
ACTION argument.


reply via email to

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