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#11939: 24.1; `save-buffers-kill-emacs' losesminibufferfocuswhenitcalls`list-processes' Date: Sun, 12 Aug 2012 08:03:02 -0700 Message-ID: References: <501540D0.50900@gmx.at><9E8DDE70EE6047779A17AA79E42D0FBA@us.oracle.com><50156DFE.6090807@gmx.at><50165035.409040 1@gmx.at><501BAAB0.1020!807@gmx!.at><6461CCBF2903416 0B48D267E46D6FF0E@us.oracle.com><501D275D.3000701@gmx.at><7E4F337C7F6A4B8281!ABE6C82A8CA70E@us.ora cle.com><501FE2D4.1 050103@gmx.at><559D41024BC44EAC92C09DC14E1B7362@us.oracle.com><5022103E.6060502@gmx.at> <72C02B3C324744308FB2DF605F46CCA3@us.oracle.com> <502378A8.90! 10707@gmx.at> <5026266! 6.2060809@gmx.at> <502! 785DF.1040200@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344783828 31351 80.91.229.3 (12 Aug 2012 15:03:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2012 15:03:48 +0000 (UTC) Cc: 11939@debbugs.gnu.org To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 12 17:03:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T0Zhd-0001Tp-0i for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2012 17:03:41 +0200 Original-Received: from localhost ([::1]:35126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0Zhc-0006pj-4Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Aug 2012 11:03:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0ZhY-0006pJ-Hg for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2012 11:03:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0ZhX-0006kL-CD for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2012 11:03:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0ZhX-0006kC-8y for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2012 11:03:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T0Zph-0004nv-Ue for bug-gnu-emacs@gnu.org; Sun, 12 Aug 2012 11:12:01 -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, 12 Aug 2012 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11939 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11939-submit@debbugs.gnu.org id=B11939.134478430718434 (code B ref 11939); Sun, 12 Aug 2012 15:12:01 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 12 Aug 2012 15:11:47 +0000 Original-Received: from localhost ([127.0.0.1]:51450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0ZpT-0004nG-Cs for submit@debbugs.gnu.org; Sun, 12 Aug 2012 11:11:47 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:48393) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0ZpR-0004n9-6M for 11939@debbugs.gnu.org; Sun, 12 Aug 2012 11:11:46 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q7CF3Fr5029365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 12 Aug 2012 15:03:16 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q7CF3DQv002234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Aug 2012 15:03:15 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q7CF3DdH016842; Sun, 12 Aug 2012 10:03:13 -0500 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 12 Aug 2012 08:03:12 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <502785DF.1040200@gmx.at> Thread-Index: Ac14dZbKrc3Ii7LXRGSoYZzM5j2IyQAH51fg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63073 Archived-At: > >> > I do not especially _like_ redefinining vanilla functions... > >> > >> I don't understand why you insist on using, advising, or > >> redefining `special-display-popup-frame'. Customizing > >> `display-buffer-base-action' should be all you want. > > > > What part of must-work-with-releases-other-than-just-24 > > did you not get? > > Changing `special-display-popup-frame' for >= 24.2 would not > affect its behavior with < 24.2. Fair enough. I could provide a separate solution for >= 24.2. Agreed. And I'd be glad to learn how. Perhaps I will provide a separate 24.2+ solution, once we have 24.2. By that time, based on past experience, it's quite possible that Emacs Dev will have changed things in this area once again - perhaps even radically (again). But I'm certainly open to finding a solution that does not require redefining `special-display-popup-frame'. However: 1. `display-buffer-base-action' is a user option. Users can set it to anything, including things that do not do what my redefinition of `s-d-p-f' does, which is to invoke `fit-frame'. Advising me to customize `display-buffer-base-action' does not speak to providing such functionality in a library for other users. 2. I do not yet understand `display-buffer-base-action' enough to know _how_ it might be changed to DTRT here. [*] 3. Wrt #2, in particular, redefining `s-d-p-f' affects only those places in Emacs that call `s-d-p-f', in particular, special-display stuff. IIUC, `display-buffer-base-action' is general and affects _all_ calls (and only calls) to `display-buffer'. How to make it affect only what `s-d-p-f' affects? 4. Wrt #2 & #3: Please let me know precisely how you think I could, now (e.g., for recent Emacs 24 builds plus your code, which I hope you will merge soon), use `display-buffer-base-action' to get the effect of my redefinition of `s-d-p-f'. I'm open to your suggestion, but so far it is not concrete enough for me to see how `display-buffer-base-action' might replace redefining `s-d-p-f', even for Emacs >= 24.2. What is no doubt obvious to you is not at all clear to me. --- [*] FWIW, the `display-buffer-base-action' doc string is not very helpful: "It should be a cons cell (FUNCTION . ALIST), where FUNCTION is a function or a list of functions. Each function should accept two arguments: a buffer to display and an alist similar to ALIST." What does "similar" to ALIST mean here? Plus, all the doc tells us is the _form_ of the option value, not what the value means or how it is used. Yes, it sends us off to the doc for `display-buffer', but that is a labyrinthine jungle.