From unknown Fri Aug 15 20:24:41 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#4808 <4808@debbugs.gnu.org> To: bug#4808 <4808@debbugs.gnu.org> Subject: Status: 23.1.50; calc-quit move point to another window Reply-To: bug#4808 <4808@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:24:41 +0000 retitle 4808 23.1.50; calc-quit move point to another window reassign 4808 emacs submitter 4808 Leo severity 4808 normal thanks From sl392@cam.ac.uk Mon Oct 26 06:56:18 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Oct 2009 13:56:18 +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.2 required=4.0 tests=AWL 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 n9QDuGI7011776 for ; Mon, 26 Oct 2009 06:56:17 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45809) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N2Q3T-0001kY-Gh for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 09:56:15 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N2Q3S-0007xe-2T for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 09:56:15 -0400 Received: from ppsw-7.csi.cam.ac.uk ([131.111.8.137]:49131) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2Q3R-0007xG-E3 for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 09:56:13 -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 lapwing-gw-1.csx.cam.ac.uk ([131.111.1.66]:50235 helo=victoria.local) by ppsw-7.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1N2Q3P-0008OH-Oo (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Mon, 26 Oct 2009 13:56:11 +0000 From: Leo To: emacs-pretest-bug@gnu.org Subject: 23.1.50; calc-quit move point to another window Date: Mon, 26 Oct 2009 13:56:10 +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: Lately I have been using a three-window setup for writing in LaTeX and I have found that calc move point to another window, which I am not sure is desirable. My frame setup is as follows with point in window 1. +------------------+----------+ | | | | | 2 | | | | | | | | 1 +----------+ | | | | | 3 | | | | | | | +------------------+----------+ Now `M-x calc' and then quit it with 'q'. You will see point moved to window 2. This is reproducible with Emacs -q. 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 Emacs-Uptime: "34 days, 5 hours, 7 minutes, 6 seconds" From jay.p.belanger@gmail.com Mon Oct 26 19:31:14 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2009 02:31:14 +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=-2.6 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=unavailable 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 n9R2VCbn018044 for ; Mon, 26 Oct 2009 19:31:14 -0700 Received: from mx10.gnu.org ([199.232.76.166]:41834) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N2bq4-0005A5-7K for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 22:31:12 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N2bq2-0002KD-E2 for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 22:31:12 -0400 Received: from s7.cableone.net ([24.116.0.233]:38817) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2bq1-0002Jv-Vv for emacs-pretest-bug@gnu.org; Mon, 26 Oct 2009 22:31:10 -0400 Received: from belanger (unverified [24.116.73.151]) by s7.cableone.net (CableOne SMTP Service s7) with ESMTP id 25379025-1872270 for multiple; Mon, 26 Oct 2009 19:30:59 -0700 From: Jay Belanger To: Leo Cc: 4808@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#4808: 23.1.50; calc-quit move point to another window References: Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Mon, 26 Oct 2009 21:30:57 -0500 In-Reply-To: (Leo's message of "Mon, 26 Oct 2009 13:56:10 +0000") Message-ID: <87iqe17ela.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 1, First 487, in=296, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Leo writes: ... > Lately I have been using a three-window setup for writing in LaTeX and I > have found that calc move point to another window, which I am not sure > is desirable. > > My frame setup is as follows with point in window 1. > > +------------------+----------+ > | | | > | | 2 | > | | | > | | | > | 1 +----------+ > | | | > | | 3 | > | | | > | | | > +------------------+----------+ > > Now `M-x calc' and then quit it with 'q'. You will see point moved to > window 2. This is reproducible with Emacs -q. I'm not sure this is a Calc problem; `calc-quit' will (aside from some bookkeeping) delete the calc window and bury the buffer. If, in the above configuration, you split window 1 +------------------+----------+ | | | | | 2 | | 1 | | | | | |------------------+----------+ | | | | 4 | 3 | | | | | | | +------------------+----------+ (and have 4 a different buffer, of course), move the cursor from window 1 to window 4, then delete window 4, the cursor will end up in window 2. This seems more like a quirk of deleting windows than anything else. Calc could make efforts to avoid this particular situation, but relying on standard Emacs behavior seems like the best choice. Jay From sl392@hermes.cam.ac.uk Tue Oct 27 01:23:30 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2009 08:23:30 +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=-3.4 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable 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 n9R8NSvi011827 for ; Tue, 27 Oct 2009 01:23:30 -0700 Received: from mail.gnu.org ([199.232.76.166]:58565 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N2hKy-0005J6-Am for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:23:28 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N2hKx-0006Pr-8x for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:23:28 -0400 Received: from ppsw-6.csi.cam.ac.uk ([131.111.8.136]:42011) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2hKw-0006PT-8q for emacs-pretest-bug@gnu.org; Tue, 27 Oct 2009 04:23:26 -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 smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:37636) by ppsw-6.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1N2hKu-00034B-M3 (Exim 4.70) (return-path ); Tue, 27 Oct 2009 08:23:24 +0000 From: Leo To: jay.p.belanger@gmail.com Cc: 4808@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#4808: 23.1.50; calc-quit move point to another window References: <87iqe17ela.fsf@gmail.com> Date: Tue, 27 Oct 2009 08:23:24 +0000 In-Reply-To: <87iqe17ela.fsf@gmail.com> (Jay Belanger's message of "Mon, 26 Oct 2009 21:30:57 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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) X-CrossAssassin-Score: 2 On 2009-10-27 02:30 +0000, Jay Belanger wrote: > This seems more like a quirk of deleting windows than anything else. > Calc could make efforts to avoid this particular situation, but relying > on standard Emacs behavior seems like the best choice. I agree it needs to be fixed in delete-window. It is more intuitive for the point to remain in the window that is enlarged by delete-window. Leo From rudalics@gmx.at Tue Oct 27 01:31:21 2009 Received: (at 4808) by emacsbugs.donarmstrong.com; 27 Oct 2009 08:31:21 +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 n9R8VJMg013116 for <4808@emacsbugs.donarmstrong.com>; Tue, 27 Oct 2009 01:31:21 -0700 Received: (qmail invoked by alias); 27 Oct 2009 08:31:13 -0000 Received: from 62-47-59-143.adsl.highway.telekom.at (EHLO [62.47.59.143]) [62.47.59.143] by mail.gmx.net (mp034) with SMTP; 27 Oct 2009 09:31:13 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19I/gknpPJIXrUG3lO7CxyKC6XrYZ/P2UroNwEMja 8CEky8t4e5w3jy Message-ID: <4AE6AFCE.50306@gmx.at> Date: Tue, 27 Oct 2009 09:31:10 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: jay.p.belanger@gmail.com, 4808@debbugs.gnu.org CC: Leo Subject: Re: bug#4808: 23.1.50; calc-quit move point to another window References: <87iqe17ela.fsf@gmail.com> In-Reply-To: <87iqe17ela.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 >> Lately I have been using a three-window setup for writing in LaTeX and I >> have found that calc move point to another window, which I am not sure >> is desirable. >> >> My frame setup is as follows with point in window 1. >> >> +------------------+----------+ >> | | | >> | | 2 | >> | | | >> | | | >> | 1 +----------+ >> | | | >> | | 3 | >> | | | >> | | | >> +------------------+----------+ >> >> Now `M-x calc' and then quit it with 'q'. You will see point moved to >> window 2. This is reproducible with Emacs -q. I can't reproduce your problem but I haven't built from CVS sources for quite a while. The algorithm for selecting a window after deleting the selected one is contrived and I never understood it completely. Conceptually, it should select the window "preceding" the deleted one "in the cyclic ordering of windows". Only if no preceding window exists, the window "following" the deleted one "in the cyclic ordering of windows" should be chosen. However, since a preceding (previous) and following (next) window should invariantly exist for any window, this part of the selection procedure is what I fail to understand. In your case the window returned by `previous-window' when you are in the calc window (which here pops up below window 1) should give you the window that will be selected after the calc window got deleted. On my Emacs window 1 gets selected. Can you tell whether there was a change in behavior over the past weeks or months? > I'm not sure this is a Calc problem; `calc-quit' will (aside from some > bookkeeping) delete the calc window and bury the buffer. If, in the > above configuration, you split window 1 > > +------------------+----------+ > | | | > | | 2 | > | 1 | | > | | | > |------------------+----------+ > | | | > | 4 | 3 | > | | | > | | | > +------------------+----------+ > > (and have 4 a different buffer, of course), The buffer identity should not matter. > move the cursor from window > 1 to window 4, then delete window 4, the cursor will end up in window 2. > This seems more like a quirk of deleting windows than anything else. > Calc could make efforts to avoid this particular situation, but relying > on standard Emacs behavior seems like the best choice. It's difficult to judge your example since I don't know whether your first split was horizontally or vertically. However, iIf window 2 _is_ the window preceding window 4 in the "cyclic ordering of windows" you essentially get the behavior explained above. For some reason here I can never get window 2 selected when deleting window 4 so I'm merely surprised by the behavior of _my_ Emacs ;-) martin From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 04:57:14 2011 Received: (at 4808-done) by debbugs.gnu.org; 5 Sep 2011 08:57:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0UzR-0006ux-H8 for submit@debbugs.gnu.org; Mon, 05 Sep 2011 04:57:14 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R0UzP-0006uq-H1 for 4808-done@debbugs.gnu.org; Mon, 05 Sep 2011 04:57:12 -0400 Received: (qmail invoked by alias); 05 Sep 2011 08:53:29 -0000 Received: from 62-47-37-192.adsl.highway.telekom.at (EHLO [62.47.37.192]) [62.47.37.192] by mail.gmx.net (mp046) with SMTP; 05 Sep 2011 10:53:29 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Q9tAAPDDQxmcRJU/RN5XGxyrlHY9zUEzGVyR/G0 vcHh0IiJsLbcaX Message-ID: <4E648E07.9050502@gmx.at> Date: Mon, 05 Sep 2011 10:53:27 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: 4808-done@debbugs.gnu.org Subject: Re: bug#4808: 23.1.50; calc-quit move point to another 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: 4808-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 (--) > My frame setup is as follows with point in window 1. > > +------------------+----------+ > | | | > | | 2 | > | | | > | | | > | 1 +----------+ > | | | > | | 3 | > | | | > | | | > +------------------+----------+ > > Now `M-x calc' and then quit it with 'q'. You will see point moved to > window 2. This is reproducible with Emacs -q. Should be fixed in current trunk. martin From unknown Fri Aug 15 20:24:41 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, 03 Oct 2011 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