From unknown Fri Aug 15 19:33:12 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4812: 23.1.50; delete-window move point to the wrong window Reply-To: Leo , 4812@debbugs.gnu.org Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 27 Oct 2009 08:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4812 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125663216512480 (code B ref -1); Tue, 27 Oct 2009 08:35:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2009 08:29:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9R8TNK4012477 for ; Tue, 27 Oct 2009 01:29:25 -0700 Received: from mail.gnu.org ([199.232.76.166]:58812 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N2hQg-0004yO-Uk for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N2hQf-0007Dk-OQ for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:22 -0400 Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:51525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2hQf-0007Dg-Fe for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:21 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust936.cmbg.cable.ntl.com ([86.9.123.169]:51118 helo=victoria.local) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1N2hQe-0000OC-2Q (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Tue, 27 Oct 2009 08:29:21 +0000 From: Leo To: emacs-pretest-bug@gnu.org Date: Tue, 27 Oct 2009 08:29:18 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please describe exactly what actions triggered the bug and the precise symptoms of the bug: A frame is setup as follows with point in window 1. +------------------+----------+ | | | | 1 | 2 | | | | | | | |------------------+----------+ | | | | 4 | 3 | | | | | | | +------------------+----------+ Assume each window is displaying different buffers. If I move point to window 4 and `M-x delete-window', the point is moved to window 2. It seems to me it is more intuitive if the point is remained in the window that is enlarged due to delete-window, in this case, window 1. In GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-22 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Leo From unknown Fri Aug 15 19:33:12 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4812: 23.1.50; delete-window move point to the wrong window Reply-To: martin rudalics , 4812@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 27 Oct 2009 09:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4812 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4812-submit@emacsbugs.donarmstrong.com id=B4812.125663680923602 (code B ref 4812); Tue, 27 Oct 2009 09:55:05 +0000 Received: (at 4812) by emacsbugs.donarmstrong.com; 27 Oct 2009 09:46:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n9R9kluC023599 for <4812@emacsbugs.donarmstrong.com>; Tue, 27 Oct 2009 02:46:48 -0700 Received: (qmail invoked by alias); 27 Oct 2009 09:46:40 -0000 Received: from 62-47-59-143.adsl.highway.telekom.at (EHLO [62.47.59.143]) [62.47.59.143] by mail.gmx.net (mp011) with SMTP; 27 Oct 2009 10:46:40 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/EoV9DX/fEjYJUg8B0gTLTtuszv+niZdkygtPp7G nLQtgbCm8vwAhu Message-ID: <4AE6C17F.80604@gmx.at> Date: Tue, 27 Oct 2009 10:46:39 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Leo , 4812@debbugs.gnu.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 > A frame is setup as follows with point in window 1. > > +------------------+----------+ > | | | > | 1 | 2 | > | | | > | | | > |------------------+----------+ > | | | > | 4 | 3 | > | | | > | | | > +------------------+----------+ > > > Assume each window is displaying different buffers. If I move point to > window 4 and `M-x delete-window', the point is moved to window 2. When describing window-layouts please alway describe the sequence of events that got you there. In the layout above it's not clear whether the initial split was a horizontal one or a vertical one. > It seems to me it is more intuitive if the point is remained in the > window that is enlarged due to delete-window, in this case, window 1. I suppose you refer to the case where window 4 is selected at the time you delete it and want window 1 get selected thereafter. `point' is never changed by deleting windows. The situation is not that simple, unfortunately. In your first bug report you talked about quitting the calc window. In that case, I suppose, you'd rather want to select the window that was selected at the time you invoked calc (unless another window got selected in between). So suppose you're in window 1, invoke calc which splits window 4, and quit calc, you'd rather go back to window 1 instead of window 4. But you might have, in between, selected window 3 so quitting calc should get you back to window 3. Handling all possible scenarios (including those that create/delete other windows in between) is tricky. Also, note that in a configuration like ----------- | 1 | 2 | |-----------| | 3 | ----------- deleting window 3 will enlarge windows 1 and 2 so you still need another strategy to decide which window should get selected. martin From unknown Fri Aug 15 19:33:12 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Leo Subject: bug#4812: closed (Re: bug#4812: 23.1.50; delete-window move point to the wrong window) Message-ID: References: <4E648E12.2030303@gmx.at> X-Gnu-PR-Message: they-closed 4812 X-Gnu-PR-Package: emacs Reply-To: 4812@debbugs.gnu.org Date: Mon, 05 Sep 2011 08:58:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1315213083-26679-1" This is a multi-part message in MIME format... ------------=_1315213083-26679-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #4812: 23.1.50; delete-window move point to the wrong window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4812@debbugs.gnu.org. --=20 4812: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4812 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1315213083-26679-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4812-done) by debbugs.gnu.org; 5 Sep 2011 08:57:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0Uzc-0006vJ-Fq for submit@debbugs.gnu.org; Mon, 05 Sep 2011 04:57:24 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R0Uza-0006vC-LR for 4812-done@debbugs.gnu.org; Mon, 05 Sep 2011 04:57:23 -0400 Received: (qmail invoked by alias); 05 Sep 2011 08:53:40 -0000 Received: from 62-47-37-192.adsl.highway.telekom.at (EHLO [62.47.37.192]) [62.47.37.192] by mail.gmx.net (mp039) with SMTP; 05 Sep 2011 10:53:40 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1836CQ5A0w3TMT3d+rX4V+jt8t69x4mkDye44hYwM JNaEtf7yIiZSop Message-ID: <4E648E12.2030303@gmx.at> Date: Mon, 05 Sep 2011 10:53:38 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: 4812-done@debbugs.gnu.org Subject: Re: bug#4812: 23.1.50; delete-window move point to the wrong window References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 4812-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > A frame is setup as follows with point in window 1. > > +------------------+----------+ > | | | > | 1 | 2 | > | | | > | | | > |------------------+----------+ > | | | > | 4 | 3 | > | | | > | | | > +------------------+----------+ > > > Assume each window is displaying different buffers. If I move point to > window 4 and `M-x delete-window', the point is moved to window 2. > > It seems to me it is more intuitive if the point is remained in the > window that is enlarged due to delete-window, in this case, window 1. Point now moves to the most recently selected window. Closed, martin. ------------=_1315213083-26679-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2009 08:29:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9R8TNK4012477 for ; Tue, 27 Oct 2009 01:29:25 -0700 Received: from mail.gnu.org ([199.232.76.166]:58812 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N2hQg-0004yO-Uk for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N2hQf-0007Dk-OQ for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:22 -0400 Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:51525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2hQf-0007Dg-Fe for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:29:21 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc1-cmbg13-0-0-cust936.cmbg.cable.ntl.com ([86.9.123.169]:51118 helo=victoria.local) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1N2hQe-0000OC-2Q (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Tue, 27 Oct 2009 08:29:21 +0000 From: Leo To: emacs-pretest-bug@gnu.org Subject: 23.1.50; delete-window move point to the wrong window Date: Tue, 27 Oct 2009 08:29:18 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please describe exactly what actions triggered the bug and the precise symptoms of the bug: A frame is setup as follows with point in window 1. +------------------+----------+ | | | | 1 | 2 | | | | | | | |------------------+----------+ | | | | 4 | 3 | | | | | | | +------------------+----------+ Assume each window is displaying different buffers. If I move point to window 4 and `M-x delete-window', the point is moved to window 2. It seems to me it is more intuitive if the point is remained in the window that is enlarged due to delete-window, in this case, window 1. In GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-22 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Leo ------------=_1315213083-26679-1--