From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9532: 24.0.50; `special-display-regexps' is no longer respected Date: Sun, 18 Sep 2011 10:33:18 -0700 Message-ID: <1D79C6CD14EE4C76B74C446E04B9CA65@us.oracle.com> References: <9202F08DB196437E8AD75A3C535E5A7D@us.oracle.com> <87y5xlg9xq.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316367256 26899 80.91.229.12 (18 Sep 2011 17:34:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2011 17:34:16 +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 Sun Sep 18 19:34:12 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 1R5LFr-0000Sr-Gx for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 19:34:11 +0200 Original-Received: from localhost ([::1]:47803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5LFq-0003fg-Mq for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 13:34:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5LFn-0003fK-F9 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 13:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5LFm-0007le-Ck for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 13:34:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5LFm-0007lP-B6 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 13:34:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R5LKY-0002lu-66 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2011 17:39:02 +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.131636751310618 (code B ref 9532); Sun, 18 Sep 2011 17:39:02 +0000 Original-Received: (at 9532) by debbugs.gnu.org; 18 Sep 2011 17:38:33 +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 1R5LK5-0002lD-Eh for submit@debbugs.gnu.org; Sun, 18 Sep 2011 13:38:33 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5LK2-0002l5-85 for 9532@debbugs.gnu.org; Sun, 18 Sep 2011 13:38:31 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p8IHXUct026424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 Sep 2011 17:33:32 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p8IHXTjI006322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Sep 2011 17:33:30 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p8IHXNqf030859; Sun, 18 Sep 2011 12:33:23 -0500 Original-Received: from dradamslap1 (/10.159.36.189) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Sep 2011 10:33:23 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87y5xlg9xq.fsf@stupidchicken.com> Thread-Index: Acx2FZouDn5TgyOmQriuiR9nBP1J5gADrN7w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090203.4E762B6C.010F,ss=1,re=0.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Sep 2011 13:39:02 -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:51425 Archived-At: > I have this as `special-display-regexps': > ("[ ]?[*][^*]+[*]") > > And both `*info*' and `*unsent mail to bug-gnu-emacs@gnu.org*', > which match that option value, are _not_ displayed as > special-display buffers. I see this difference from the previous week's build (and all previous builds and releases): `same-window-regexps' and `same-window-buffer-names' are now nil. In the past they were not. I do not want the buffer names/patterns in question to be treated differently wrt `special-display-regexps' - I want such buffers, which match that special-display pattern, to be treated as, well, special-display. So I do not want these names/patterns on `same-window-regexps' or `same-window-buffer-names'. So in the past I jumped through a little hoop (see `cond' below) to remove them from those vars. But now apparently those variables are not even used (or perhaps not used in the same way), so it no longer does any good to simply _remove_ a match for such buffer names from these lists in order to restore its special-display-ness. These names are apparently being matched somewhere else now (?), in spite of `special-display-regexps', and I want to prevent such a match. I want to prevent such buffers from using the same window. IOW, I want `special-display-regexps' to be respected for such buffers too. Previously (e.g. the build of 2001/9/05), `same-window-regexps' value in emacs -Q was this (even though `C-h v' said its "original" value was nil, "original" here apparently being something prior to emacs -Q!): ("\\*rsh-[^-]*\\*\\(\\|<[0-9]*>\\)" "\\*telnet-.*\\*\\(\\|<[0-9]+>\\)" "^\\*rlogin-.*\\*\\(\\|<[0-9]+>\\)" "\\*info\\*\\(\\|<[0-9]+>\\)" "\\*gud-.*\\*\\(\\|<[0-9]+>\\)" "\\`\\*Customiz.*\\*\\'") Now the value in emacs -Q is nil. So these variables are apparently no longer the culprits that are overriding/disrespecting `special-display-regexps'. Previously it was enough to do this, to make *info* and *Customize* buffers respect `special-display-regexps', letting them be special-display frames: (cond ((> emacs-major-version 21) (remove-hook 'same-window-regexps "\\*info\\*\\(\\|<[0-9]+>\\)") (remove-hook 'same-window-regexps "\\`\\*Customiz.*\\*\\'")) ((< emacs-major-version 21) (remove-hook 'same-window-buffer-names "*info*")) (t (remove-hook 'same-window-buffer-names "*info*") (remove-hook 'same-window-regexps "\\`\\*Customiz.*\\*\\'"))) Now that has no effect. These vars remain nil, so they are apparently no longer the places where the "same-window" override of `special-display-regexps' is coming from. What hoops must we jump through now, to let such buffers respect `special-display-regexps'? Note too that previously I never had to remove `*unsent mail to bug-gnu-emacs@gnu.org*' from these "same-window" vars: such a buffer always respected `special-display-regexps' in the past. I generally want Emacs to display a buffer in a separate frame, which is why I use non-nil `pop-up-frames'. I generally want buffers that match `special-display-regexps' to be popped up in a separate, special-display frame. I do not want Emacs deciding that more and more buffers should be exceptions to this customized behavior.