From unknown Mon Aug 18 21:17:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16768 <16768@debbugs.gnu.org> To: bug#16768 <16768@debbugs.gnu.org> Subject: Status: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window Reply-To: bug#16768 <16768@debbugs.gnu.org> Date: Tue, 19 Aug 2025 04:17:11 +0000 retitle 16768 24.3.50; `quit-restore-window' with KILL=3Dt replaces special= -display buffer in its dedicated window reassign 16768 emacs submitter 16768 Drew Adams severity 16768 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 17:45:11 2014 Received: (at submit) by debbugs.gnu.org; 15 Feb 2014 22:45:11 +0000 Received: from localhost ([127.0.0.1]:53899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEnyx-0007RY-0A for submit@debbugs.gnu.org; Sat, 15 Feb 2014 17:45:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57245) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEnyt-0007RF-Vz for submit@debbugs.gnu.org; Sat, 15 Feb 2014 17:45:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEnye-0006up-T0 for submit@debbugs.gnu.org; Sat, 15 Feb 2014 17:45:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEnye-0006uk-QA for submit@debbugs.gnu.org; Sat, 15 Feb 2014 17:44:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEnyW-0004m9-7a for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 17:44:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEnyN-0006fa-Hm for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 17:44:44 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:40148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEnyN-0006dS-By for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 17:44:35 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1FMifMs017217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 15 Feb 2014 22:44:42 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1FMifSF008735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 15 Feb 2014 22:44:41 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1FMiWFe004663 for ; Sat, 15 Feb 2014 22:44:32 GMT MIME-Version: 1.0 Message-ID: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> Date: Sat, 15 Feb 2014 14:44:31 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This part of the `quit-restore-window' causes a special-display buffer, whose window is dedicated to it, to be replaced in that window by another buffer: (t ;; Show some other buffer in WINDOW and reset the quit-restore ;; parameter. (set-window-parameter window 'quit-restore nil) ;; Make sure that WINDOW is no more dedicated. (set-window-dedicated-p window nil) (switch-to-prev-buffer window bury-or-kill)) If BURY-OR-KILL is `kill' then the window/frame should simply be deleted. A window dedicated to a particular buffer should not be reused for another buffer. Consider, for example, a `special-display-frame-alist' that specifies certain frame attributes - e.g., a particular background color. You do not want to reuse such a frame for another buffer, especially for a non special-display buffer. The frame should be deleted when its buffer is killed. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2014-02-11 on ODIEONE Bzr revision: 116410 lekktu@gmail.com-20140211204823-l9l2s6tktfitq266 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include' From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 17:56:56 2014 Received: (at 16768) by debbugs.gnu.org; 15 Feb 2014 22:56:56 +0000 Received: from localhost ([127.0.0.1]:53908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEoAJ-0007kM-QF for submit@debbugs.gnu.org; Sat, 15 Feb 2014 17:56:56 -0500 Received: from mail-yk0-f177.google.com ([209.85.160.177]:36081) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEoAH-0007k9-S2 for 16768@debbugs.gnu.org; Sat, 15 Feb 2014 17:56:54 -0500 Received: by mail-yk0-f177.google.com with SMTP id q200so27287346ykb.8 for <16768@debbugs.gnu.org>; Sat, 15 Feb 2014 14:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5Ueg6zajRAfVE2sYKt41phbyTSvWVgYauxpDdcM2Y0Y=; b=efd3GZIzf9TibWyMfsUjWWSuRazSdtQUsijh/VHBA8bZunTt+oUC1/Xyx6vA3a67sT Tn2Cc3LHtIaB5cDuDmdzzP5Frp2Z1wQBoRxNiN7Lwag6plmgPNQLho8zS/GiZ4W/Yvwt 2pBtAvzIKKVrYI/ojgxWq4h4j46qYMEE3cpfUL0fRYQjHbSFMcqErl7ysUmUpsVXjpY4 YzRYpdf2vN9O4Nxz7ZjjajzG3FMFQT15U6NETURLZ28ZBUGh9/DWldMLLavZJylclrUJ kxhltzRdF3wybcDPusH2V5ae8cWSa4N4GwbrP5L+qop+wIxn287eeF93UTlEQkXD3Lbl JwNw== X-Received: by 10.236.92.137 with SMTP id j9mr553208yhf.126.1392505008264; Sat, 15 Feb 2014 14:56:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.84.65 with HTTP; Sat, 15 Feb 2014 14:56:08 -0800 (PST) In-Reply-To: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> From: Juanma Barranquero Date: Sat, 15 Feb 2014 23:56:08 +0100 Message-ID: Subject: Re: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window To: Drew Adams Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, Feb 15, 2014 at 11:44 PM, Drew Adams wrote: > This part of the `quit-restore-window' causes a special-display buffer, > whose window is dedicated to it, to be replaced in that window by > another buffer: Martin will surely remember, but I think that was done because of a bug report. > You do > not want to reuse such a frame for another buffer, especially for a non > special-display buffer. The frame should be deleted when its buffer > is killed. What if you have just one frame, and it's dedicated and you kill the buffer? J From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 21:41:44 2014 Received: (at 16768) by debbugs.gnu.org; 16 Feb 2014 02:41:44 +0000 Received: from localhost ([127.0.0.1]:54072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WErfs-0005a6-BV for submit@debbugs.gnu.org; Sat, 15 Feb 2014 21:41:44 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:21467) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WErfq-0005Zm-Is for 16768@debbugs.gnu.org; Sat, 15 Feb 2014 21:41:43 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1G2fZFs005545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Feb 2014 02:41:36 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1G2fgVj012272 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Feb 2014 02:41:43 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s1G2fXpd011876; Sun, 16 Feb 2014 02:41:33 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 15 Feb 2014 18:41:32 -0800 (PST) From: Drew Adams To: Juanma Barranquero Subject: RE: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > > You do not want to reuse such a frame for another buffer, > > especially for a non special-display buffer. The frame > > should be deleted when its buffer is killed. >=20 > What if you have just one frame, and it's dedicated and you > kill the buffer? I figured someone might immediately focus on that. It's a corner case. Choose something appropriate. Not worth arguing about at the outset. One possibility: Kill the buffer, then call `delete-frame'. The latter attempt raises an error, and you end up, at worst, in the situation that arises today: another buffer in the special-display frame. Not appropriate, but a more minor bug than doing that systematically. Another possibility: Make killing the buffer and deleting the frame transactional, i.e., acting together like an atomic action. Raise an error before killing the buffer if deleting the frame afterward would raise an error. Another possibility: Do like we do for `buffer-quit-function' or `frame-auto-hide-function': provide an option to let the user decide. Propose another possibility, if you like. And another. But this should be the last thing to worry about. Debate it at the end if there is interest. It should not sidetrack fixing the bug, taking it down a rabbit hole to never-never land. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 23:34:13 2014 Received: (at 16768) by debbugs.gnu.org; 16 Feb 2014 04:34:13 +0000 Received: from localhost ([127.0.0.1]:54138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEtQj-0002st-DL for submit@debbugs.gnu.org; Sat, 15 Feb 2014 23:34:13 -0500 Received: from mail-yk0-f176.google.com ([209.85.160.176]:35165) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEtQh-0002sX-Gt for 16768@debbugs.gnu.org; Sat, 15 Feb 2014 23:34:12 -0500 Received: by mail-yk0-f176.google.com with SMTP id 19so27888324ykq.7 for <16768@debbugs.gnu.org>; Sat, 15 Feb 2014 20:34:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=T+cogplktvihWu4kzqg6cUbFplHDjFKBu0mGzSsWM2M=; b=GEZozAb33wWL28owitGfaagmLligtwDl9u/jHlroXemAi2EySJNDq+MTZWmNgk8Zcb 0MhpU/YHp7gVofu42wIvWAnlADE3W2aO8rxKIDzH2eDuRhAt7K2iGI7xsK/imrpgRqgX SVZBvUrJFMbU/w3MRxnQIQF5e4HiL08iXWShzdXtHx+ZZkZStViF1P1WtTTMdnfk8cKf v0r/g6MJGVLNn7v46MIhhY8ekZvb6BQjL2jyEw/XQDrN+kLWPvCEfKTmDT8ssIatKpOJ CTufwSxpmN5v0kbmyLRqKEm9LpTZyl8K6lf3Bc0A9Bk8KrvJIJHEihZzFK2XPhJf3GSb eWLQ== X-Received: by 10.236.87.1 with SMTP id x1mr8032279yhe.51.1392525245944; Sat, 15 Feb 2014 20:34:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.84.65 with HTTP; Sat, 15 Feb 2014 20:33:25 -0800 (PST) In-Reply-To: References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> From: Juanma Barranquero Date: Sun, 16 Feb 2014 05:33:25 +0100 Message-ID: Subject: Re: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window To: Drew Adams Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Feb 16, 2014 at 3:41 AM, Drew Adams wrote: > I figured someone might immediately focus on that. It's a > corner case. Choose something appropriate. Not worth > arguing about at the outset. It's not a corner case. Having just one frame, with one dedicated window, and killing the buffer has happened to me, and the result (Emacs iconifying the frame) was the wrongest of wrong choices, though killing it would've been even worse. > But this should be the last thing to worry about. Debate it > at the end if there is interest. It should not sidetrack > fixing the bug, taking it down a rabbit hole to never-never > land. Sorry, I just don't believe it's a bug. I don't think killing a frame because a buffer was deleted and its window was dedicated is the right thing to do. At least, as a default behavior. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 01:37:47 2014 Received: (at 16768) by debbugs.gnu.org; 16 Feb 2014 06:37:47 +0000 Received: from localhost ([127.0.0.1]:54174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEvMI-0006W7-Lj for submit@debbugs.gnu.org; Sun, 16 Feb 2014 01:37:46 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:35562) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEvMG-0006Vq-ST for 16768@debbugs.gnu.org; Sun, 16 Feb 2014 01:37:45 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1G6bk0S022087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Feb 2014 06:37:47 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1G6bbZW019085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 16 Feb 2014 06:37:37 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1G6ba3h019081; Sun, 16 Feb 2014 06:37:37 GMT MIME-Version: 1.0 Message-ID: <8c9b96fb-a87b-4922-8ebb-517c1d09e34a@default> Date: Sat, 15 Feb 2014 22:37:36 -0800 (PST) From: Drew Adams To: Juanma Barranquero Subject: RE: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > I just don't believe it's a bug. A dedicated window is dedicated to a single buffer. Placing a different buffer in a dedicated window is a bug. You need not agree, of course. > I don't think killing a frame because a buffer was deleted and > its window was dedicated is the right thing to do. At least, > as a default behavior. Let the user pick the behavior. With choices that include that behavior you don't like: delete the dedicated window (and frame if alone in the frame) if the buffer the window is dedicated to is killed. And hopefully with the other user choices also fixing the bug, one way or another: not allowing a different buffer to be shown in a dedicated window. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 05:33:34 2014 Received: (at 16768) by debbugs.gnu.org; 16 Feb 2014 10:33:34 +0000 Received: from localhost ([127.0.0.1]:54302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEz2T-0004wp-Kc for submit@debbugs.gnu.org; Sun, 16 Feb 2014 05:33:33 -0500 Received: from mout.gmx.net ([212.227.15.19]:53763) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEz2R-0004wc-3G for 16768@debbugs.gnu.org; Sun, 16 Feb 2014 05:33:31 -0500 Received: from [62.47.47.61] ([62.47.47.61]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MCcOw-1WOMgo2JG6-009PsV for <16768@debbugs.gnu.org>; Sun, 16 Feb 2014 11:33:24 +0100 Message-ID: <530093F0.9060409@gmx.at> Date: Sun, 16 Feb 2014 11:33:20 +0100 From: martin rudalics MIME-Version: 1.0 To: Drew Adams Subject: Re: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> In-Reply-To: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:oJlpSFQtQgYZXfVfq75MCosP7q7reQHqtnU1dqLDgkF9llBToIE hsikRwa1BRWDXKe2vSbOJsLM0PPIQjBEI0trZH0Gf9MxERJqH1YC7x+g30mwgiWOAJiCT8w c3VQwyq0cRU70yo2JUTKSz89JhrQb/XDz3txJskL9Kxgd5UfqXQhz2Vn4fXFH6l0pDkIMdH TqTIqi9SPH5k4hjCmjstw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > This part of the `quit-restore-window' causes a special-display buffer, > whose window is dedicated to it, to be replaced in that window by > another buffer: > > (t > ;; Show some other buffer in WINDOW and reset the quit-restore > ;; parameter. > (set-window-parameter window 'quit-restore nil) > ;; Make sure that WINDOW is no more dedicated. > (set-window-dedicated-p window nil) > (switch-to-prev-buffer window bury-or-kill)) > > If BURY-OR-KILL is `kill' then the window/frame should simply be > deleted. A window dedicated to a particular buffer should not be reused > for another buffer. Optional second argument BURY-OR-KILL tells how to proceed with the buffer of WINDOW. so this is not related to whether the window or frame should be deleted. > Consider, for example, a `special-display-frame-alist' that specifies > certain frame attributes - e.g., a particular background color. You do > not want to reuse such a frame for another buffer, especially for a non > special-display buffer. The frame should be deleted when its buffer > is killed. IIUC a dedicated window is not deleted only if it was used before by another buffer or it's the last window on the last frame. Can you give a scenario with emacs -Q where such a window is not deleted? martin From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 11:54:10 2014 Received: (at 16768) by debbugs.gnu.org; 16 Feb 2014 16:54:10 +0000 Received: from localhost ([127.0.0.1]:54936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF4yn-0000CY-O0 for submit@debbugs.gnu.org; Sun, 16 Feb 2014 11:54:10 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:22553) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF4yl-0000CF-FR for 16768@debbugs.gnu.org; Sun, 16 Feb 2014 11:54:08 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1GGs0Ow014945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Feb 2014 16:54:01 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GGrxYX028224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Feb 2014 16:54:00 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GGrq5t000813; Sun, 16 Feb 2014 16:53:52 GMT MIME-Version: 1.0 Message-ID: <400c6acc-63d7-475c-af7f-97417e3905a3@default> Date: Sun, 16 Feb 2014 08:53:59 -0800 (PST) From: Drew Adams To: martin rudalics Subject: RE: bug#16768: 24.3.50; `quit-restore-window' with KILL=t replaces special-display buffer in its dedicated window References: <70a2be30-e94c-44f6-8601-ce43b64bb123@default> <530093F0.9060409@gmx.at> In-Reply-To: <530093F0.9060409@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 16768 Cc: 16768@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) I debugged this more and found that the problem came from my version of `special-display-popup-frame', whose only difference from the vanilla version should be that it calls `fit-frame' with the buffer's window selected and it inhibits calling `fit-frame' (e.g. from hooks) before then. My version had not been updated to reflect the latest vanilla version, which correctly (a) calls `display-buffer-record-window' first, and then calls `set-window-buffer' only if BUFFER is not the buffer of `frame-selected-window'. With that update, the bug is fixed. The problem was that the Dired buffer was getting recorded as being used for the new frame that pops up with the list of marked files. I've closed this bug. Thx. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 11:55:51 2014 Received: (at control) by debbugs.gnu.org; 16 Feb 2014 16:55:51 +0000 Received: from localhost ([127.0.0.1]:54940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF50R-0000FJ-8z for submit@debbugs.gnu.org; Sun, 16 Feb 2014 11:55:51 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:40777) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF50O-0000F2-79 for control@debbugs.gnu.org; Sun, 16 Feb 2014 11:55:48 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1GGto9C027809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 16 Feb 2014 16:55:50 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GGtXA1011997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 16 Feb 2014 16:55:34 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GGtXxA001815 for ; Sun, 16 Feb 2014 16:55:33 GMT MIME-Version: 1.0 Message-ID: <44f22e01-aaf6-4896-a048-b1a561661981@default> Date: Sun, 16 Feb 2014 08:55:40 -0800 (PST) From: Drew Adams To: control@debbugs.gnu.org Subject: close 16768 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) close 16768 thanks From unknown Mon Aug 18 21:17:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Mar 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator