From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#8865: 24.0.50; `display-buffer' does not respect `pop-up-frames' Date: Wed, 15 Jun 2011 11:24:31 +0200 Message-ID: <4DF87A4F.60704@gmx.at> References: <4DF7B1BB.6050704@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308129930 3463 80.91.229.12 (15 Jun 2011 09:25:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 09:25:30 +0000 (UTC) Cc: 8865@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 15 11:25:26 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 1QWmLm-000097-6p for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 11:25:26 +0200 Original-Received: from localhost ([::1]:40826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWmLk-0007X3-NM for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 05:25:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWmLQ-0007V8-MU for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 05:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWmLO-0004Xc-Pw for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 05:25:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWmLO-0004XX-Le for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 05:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWmLO-0006Ko-7s; Wed, 15 Jun 2011 05:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jun 2011 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8865-submit@debbugs.gnu.org id=B8865.130812988224323 (code B ref 8865); Wed, 15 Jun 2011 09:25:02 +0000 Original-Received: (at 8865) by debbugs.gnu.org; 15 Jun 2011 09:24:42 +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 1QWmL3-0006KG-GX for submit@debbugs.gnu.org; Wed, 15 Jun 2011 05:24:41 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QWmL0-0006K0-S4 for 8865@debbugs.gnu.org; Wed, 15 Jun 2011 05:24:40 -0400 Original-Received: (qmail invoked by alias); 15 Jun 2011 09:24:32 -0000 Original-Received: from 62-47-36-239.adsl.highway.telekom.at (EHLO [62.47.36.239]) [62.47.36.239] by mail.gmx.net (mp011) with SMTP; 15 Jun 2011 11:24:32 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+V6gsfb2KV+gcxPQTJpIg9sLgBO0zy0Sweh9fh7n hSyi6rJMzRSsD9 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Jun 2011 05:25:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47173 Archived-At: > (Non-nil is not the same as non-t, BTW, for both `pop-up-frames' and the > NOT-THIS-WINDOW arg of `display-buffer'. If you were speaking about that arg, > then any non-nil value has always had the same behavior as a value of > t. This is no more the case. That argument is called SPECIFIERS now and certain values (like lists and certain symbols) will be reserved for a different behavior. If you don't like such a change, you will have to talk to someone else; I already mentioned Juri and Stefan as potential addressees. Meanwhile I can offer the below substitute for `display-buffer-normalize-specifiers-1' which should address most of your concerns in this area. martin (defun display-buffer-normalize-specifiers-1 (specifiers) "Subroutine of `display-buffer-normalize-specifiers'. SPECIFIERS is the SPECIFIERS argument of `display-buffer'." (let (normalized entry) (cond ((not specifiers) nil) ((listp specifiers) ;; If SPECIFIERS is a list, we assume it is a list of specifiers. (dolist (specifier specifiers) (cond ((consp specifier) (setq normalized (cons specifier normalized))) ((symbolp specifier) ;; Might be a macro specifier, try to expand it (the cdr is a ;; list and we have to reverse it later, so do it one at a ;; time). (let ((entry (assq specifier display-buffer-macro-specifiers))) (dolist (item (cdr entry)) (setq normalized (cons item normalized))))))) ;; Reverse list. (nreverse normalized)) ((and (not (eq specifiers 'other-window)) (setq entry (assq specifiers display-buffer-macro-specifiers))) ;; A macro specifier. (cdr entry)) ((memq pop-up-frames '(nil unset)) ;; Pop up a new window. (cdr (assq 'other-window display-buffer-macro-specifiers))) (t ;; Pop up a new frame. (cdr (assq 'other-frame display-buffer-macro-specifiers))))))