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 21:16:40 -0400 Message-ID: References: <9202F08DB196437E8AD75A3C535E5A7D@us.oracle.com> <87y5xlg9xq.fsf@stupidchicken.com> <1D79C6CD14EE4C76B74C446E04B9CA65@us.oracle.com> <85680E6E160C472FBC47C2FDA86BA171@us.oracle.com> <874o05x4l6.fsf@stupidchicken.com> <87obydeoj7.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316654275 22730 80.91.229.12 (22 Sep 2011 01:17:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 01:17:55 +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 Thu Sep 22 03:17:49 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 1R6XvB-0007Ib-5S for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 03:17:49 +0200 Original-Received: from localhost ([::1]:44693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6XvA-0004Gq-Ni for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 21:17:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Xv7-0004GV-1d for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 21:17:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6Xv6-0001AV-2W for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 21:17:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Xv5-0001AR-UT for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 21:17:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6XvN-0006wb-Kd for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 21:18:01 -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: Thu, 22 Sep 2011 01:18:01 +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.131665422226630 (code B ref 9532); Thu, 22 Sep 2011 01:18:01 +0000 Original-Received: (at 9532) by debbugs.gnu.org; 22 Sep 2011 01:17:02 +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 1R6XuP-0006vJ-Q3 for submit@debbugs.gnu.org; Wed, 21 Sep 2011 21:17:02 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6XuN-0006uy-Bs for 9532@debbugs.gnu.org; Wed, 21 Sep 2011 21:17:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAAiMek5FpZ7x/2dsb2JhbABCp215gVMBAQQBViMFCwsOJhIUGA0kiAq0doZ9BKBVhEM X-IronPort-AV: E=Sophos;i="4.68,420,1312171200"; d="scan'208";a="137790952" Original-Received: from 69-165-158-241.dsl.teksavvy.com (HELO ceviche.home) ([69.165.158.241]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Sep 2011 21:16:40 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 2053D660B6; Wed, 21 Sep 2011 21:16:40 -0400 (EDT) In-Reply-To: <87obydeoj7.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 21 Sep 2011 14:30:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Sep 2011 21:18:01 -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:51635 Archived-At: >>> 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. > I think you misunderstand. Consider this: > 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. Stefan