From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9532: 24.0.50; `special-display-regexps' is no longer respected Date: Wed, 21 Sep 2011 13:59:12 -0400 Message-ID: References: <9202F08DB196437E8AD75A3C535E5A7D@us.oracle.com> <87y5xlg9xq.fsf@stupidchicken.com> <1D79C6CD14EE4C76B74C446E04B9CA65@us.oracle.com> <85680E6E160C472FBC47C2FDA86BA171@us.oracle.com> <874o05x4l6.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316628000 14340 80.91.229.12 (21 Sep 2011 18:00:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 18:00:00 +0000 (UTC) Cc: 9532@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 21 19:59:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6R5N-0006bF-AR for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 19:59:53 +0200 Original-Received: from localhost ([::1]:51097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6R5M-0006ij-TC for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 13:59:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6R5J-0006eV-5J for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 13:59:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6R5H-0003ev-QG for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 13:59:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6R5H-0003eq-Lr for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 13:59:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6R5X-0008JG-7t for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 14:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2011 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9532-submit@debbugs.gnu.org id=B9532.131662797131881 (code B ref 9532); Wed, 21 Sep 2011 18:00:03 +0000 Original-Received: (at 9532) by debbugs.gnu.org; 21 Sep 2011 17:59:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6R51-0008IA-9Q for submit@debbugs.gnu.org; Wed, 21 Sep 2011 13:59:31 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6R50-0008I2-38 for 9532@debbugs.gnu.org; Wed, 21 Sep 2011 13:59:30 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p8LHxC0j011742; Wed, 21 Sep 2011 13:59:12 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 674F1B41D0; Wed, 21 Sep 2011 13:59:12 -0400 (EDT) In-Reply-To: <874o05x4l6.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 21 Sep 2011 12:06:29 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3987=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3987> : streams <683831> : uri <965320> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Sep 2011 14:00:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51576 Archived-At: >> I think the problem here is that display-buffer--special should not just >> be in display-buffer-fallback-action but should take precedence over the >> ACTION argument (it's largely equivalent to display-buffer-alist). > The problem with this is that if the "special" buffer is already > displayed in a window, that window is supposed to be used instead of > popping up a special window (at least, according to old behavior). > We could accomodate this by changing display-buffer--special to also > call display-buffer--maybe-same-window and display-buffer-reuse-window > for special-display-p buffers. Yes, that's what I'm suggesting. > Then another problem arises: all direct switch-to-buffer calls will > trigger special display for special buffers, which is not consistent > with old behavior. The key difference here is that in Emacs 23 the > `info' command calls display-buffer (using same-window-regexps to force > it into the same window), whereas currently `info' uses switch-to-buffer > (with the intention of transitioning away from same-window-*). At least both Drew and I would consider it a bug fix if special-display-* applies to *info*, so I'm not sure such a change is a problem. > OTOH, I don't see an easy way to handle all the backward compatibility > exceptions in this case. We'd have to distinguish between a switch-to-buffer which disregard special-display-* (the one that used to use same-window-* instead) and another switch-to-buffer which doesn't. Let's first try without such a distinction, i.e. with a switch-to-buffer which obeys special-display-*. This is similar to reducing the priority of same-window-* from "above special-display-*" to below it. Stefan