GNU bug report logs -
#9532
24.0.50; `special-display-regexps' is no longer respected
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sat, 17 Sep 2011 15:01:01 UTC
Severity: normal
Found in version 24.0.50
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 9532 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> M-: (setq special-display-regexps '("foo")) RET
>> M-: (get-buffer-create "foo") RET
>> M-x switch-to-buffer RET foo RET
>>
>> In Emacs 23, this switches to the "foo" buffer in the selected window.
>> With the proposed change, the direct switch-to-buffer call opens it in a
>> special window (just like the switch-to-buffer call in `info').
>
>> So we would be swapping on backward incompatibility for another.
>
> M-x switch-to-buffer should never call display-buffer.
> Only non-interactive calls should do that.
So, you agree to the incompatibility for the non-interactive case? That
is to say, a non-interactive call to switch-to-buffer (and ONLY a
non-interactive call) will now trigger special display. Previously, in
Emacs 23, it would use the selected window.
If you agree, I'd implement the behavior by adding a new value for
s-t-b's FORCE-SAME-WINDOW argument, `try', which would be the default
for interactive calls. That would mean to first try displaying in the
current selected window directly instead of going through p-t-b.
It would be quite unfortunate to have interactive and non-interactive
calls to s-t-b do slightly different things; but maybe it can't be
helped.
This bug report was last modified 13 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.