From stephen.berman@gmx.net Sun Oct 4 15:07:12 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Oct 2009 22:07:12 +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=-1.9 required=4.0 tests=AWL,FOURLA autolearn=no 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 n94M7AU2005061 for ; Sun, 4 Oct 2009 15:07:12 -0700 Received: from mail.gnu.org ([199.232.76.166]:49905 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MuZEU-000680-1z for emacs-pretest-bug@gnu.org; Sun, 04 Oct 2009 18:07:10 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MuZES-0002VJ-4L for emacs-pretest-bug@gnu.org; Sun, 04 Oct 2009 18:07:09 -0400 Received: from mail.gmx.net ([213.165.64.20]:40699) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MuZER-0002Uj-Dh for emacs-pretest-bug@gnu.org; Sun, 04 Oct 2009 18:07:07 -0400 Received: (qmail invoked by alias); 04 Oct 2009 22:07:04 -0000 Received: from i59F56463.versanet.de (EHLO escher.local.home) [89.245.100.99] by mail.gmx.net (mp011) with SMTP; 05 Oct 2009 00:07:04 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+RSiZ4BzSRJkYEemQyBok0WYsuxl/FsRw7UfTpJJ ZIS2ef2K9MQdCb Received: by escher.local.home (Postfix, from userid 1000) id 0EFB11D194A; Mon, 5 Oct 2009 00:07:02 +0200 (CEST) From: Stephen Berman To: emacs-pretest-bug@gnu.org Subject: 23.1.50; term-previous-input and split windows Sender: steve@escher.local.home Date: Mon, 05 Oct 2009 00:07:02 +0200 Message-ID: <87vdiuyfsp.fsf@escher.local.home> 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-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 1. emacs -Q 2. Type M-x term RET to bring up the *terminal* buffer in term-mode (/bin/bash here, if that's significant). 3. Type RET to put point on line 2 of the *terminal* buffer. 4. Type C-c 2 to make split windows (or any other command that makes split windows, e.g. C-c 3, C-c C-b, etc.). 5. Type M-p to insert previous input. => The cursor in the selected *terminal* buffer jumps to the beginning of the buffer instead of staying at the end of the inserted input. This only happens if the *terminal* buffer has at least two displayed lines (step 3). Any further term-* command restores the cursor to the correct position. The cursor displacement also happens if the frame is unsplit after step 5, i.e. C-c 1 followed by M-p (but not if the frame is unsplit between steps 4 and 5). This problem also happens with Emacs 22. In GNU Emacs 23.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-10-03 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10502000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t From stephen.berman@gmx.net Thu Nov 19 13:56:07 2009 Received: (at 4635) by emacsbugs.donarmstrong.com; 19 Nov 2009 21:56:07 +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.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 nAJLu4K2018319 for <4635@emacsbugs.donarmstrong.com>; Thu, 19 Nov 2009 13:56:06 -0800 Received: (qmail invoked by alias); 19 Nov 2009 21:55:58 -0000 Received: from i59F546B2.versanet.de (EHLO escher.local.home) [89.245.70.178] by mail.gmx.net (mp069) with SMTP; 19 Nov 2009 22:55:58 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+AuCI7Je6AJGIqNQdSA0QzXSAGJUT1Oo6Uc/rP5b CTTm+hSrmYKzIV Received: by escher.local.home (Postfix, from userid 1000) id A7DA91D19B2; Thu, 19 Nov 2009 22:55:57 +0100 (CET) From: Stephen Berman To: 4635@debbugs.gnu.org Subject: Re: bug#4635: 23.1.50; term-previous-input and split windows References: <87vdiuyfsp.fsf@escher.local.home> Sender: steve@escher.local.home Date: Thu, 19 Nov 2009 22:55:57 +0100 In-Reply-To: <87vdiuyfsp.fsf@escher.local.home> (Stephen Berman's message of "Mon, 05 Oct 2009 00:07:02 +0200") Message-ID: <87einuji1e.fsf@escher.local.home> 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-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 ping The recipe in my OP was too specific, the problem occurs even without term-previous-input: 1. emacs -Q 2. M-x term RET 3. C-c 2 4. RET => Cursor jumps from the term prompt to the beginning of the buffer I instrumented term.el but could not induce the jump when stepping through with edebug. I don't know how else to try debugging this. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 19 09:26:05 2010 Received: (at 4635) by debbugs.gnu.org; 19 Feb 2010 14:26:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiTnx-0002x9-CS for submit@debbugs.gnu.org; Fri, 19 Feb 2010 09:26:05 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NiTnu-0002wl-7F for 4635@emacsbugs.donarmstrong.com; Fri, 19 Feb 2010 09:26:03 -0500 Received: (qmail invoked by alias); 19 Feb 2010 14:25:55 -0000 Received: from i59F541B6.versanet.de (EHLO escher.home) [89.245.65.182] by mail.gmx.net (mp056) with SMTP; 19 Feb 2010 15:25:55 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/K8x13LljKX5E4hFbaDMfePR5CO3iusp8+YkL1RM lMmACYorBRTm95 Received: by escher.home (Postfix, from userid 1000) id B846810302; Fri, 19 Feb 2010 15:25:54 +0100 (CET) From: Stephen Berman To: 4635@debbugs.gnu.org Subject: Re: bug#4635: 23.1.50; term-previous-input and split windows References: <87vdiuyfsp.fsf@escher.local.home> <87einuji1e.fsf@escher.local.home> Date: Fri, 19 Feb 2010 15:25:54 +0100 In-Reply-To: <87einuji1e.fsf@escher.local.home> (Stephen Berman's message of "Thu, 19 Nov 2009 22:55:57 +0100") Message-ID: <87ljepi9ot.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56999999999999995 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 4635 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.8 (--) On Thu, 19 Nov 2009 22:55:57 +0100 Stephen Berman wrote: > 1. emacs -Q > 2. M-x term RET > 3. C-c 2 > 4. RET > => Cursor jumps from the term prompt to the beginning of the buffer > > I instrumented term.el but could not induce the jump when stepping > through with edebug. I don't know how else to try debugging this. Manifestations of this bug continue to annoy me (currently using GNU Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-13 on escher). Does anyone have any idea how to fix (or at least debug) it? Can anyone else reproduce it? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 25 12:05:08 2010 Received: (at 4635) by debbugs.gnu.org; 25 Sep 2010 16:05:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzXFL-000198-U1 for submit@debbugs.gnu.org; Sat, 25 Sep 2010 12:05:08 -0400 Received: from smtprelay-h31.telenor.se ([213.150.131.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzXFK-00018m-2v for 4635@emacsbugs.donarmstrong.com; Sat, 25 Sep 2010 12:05:07 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id DD6A9EA4B0 for <4635@emacsbugs.donarmstrong.com>; Sat, 25 Sep 2010 18:07:04 +0200 (CEST) X-SENDER-IP: [85.228.195.180] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuhHAE+6nUxV5MO0PGdsb2JhbACHbZpdDAEBAQE1LcJ3hUME X-IronPort-AV: E=Sophos;i="4.57,236,1283724000"; d="scan'208";a="133489632" Received: from c-b4c3e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.195.180]) by ipb2.telenor.se with ESMTP; 25 Sep 2010 18:07:04 +0200 Received: by muon.localdomain (Postfix, from userid 1000) id 0F6C4484204; Sat, 25 Sep 2010 18:07:02 +0200 (CEST) From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= To: Stephen Berman Subject: Re: bug#4635: 23.1.50; term-previous-input and split windows References: <87vdiuyfsp.fsf@escher.local.home> <87einuji1e.fsf@escher.local.home> <87ljepi9ot.fsf@escher.home> Mail-Copies-To: never Date: Sat, 25 Sep 2010 18:07:02 +0200 In-Reply-To: <87ljepi9ot.fsf@escher.home> (Stephen Berman's message of "Fri, 19 Feb 2010 15:25:54 +0100") Message-ID: <87hbhd4xjt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 4635 Cc: 4635@debbugs.gnu.org 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: -0.8 (/) Stephen Berman writes: > On Thu, 19 Nov 2009 22:55:57 +0100 Stephen Berman wrote: > >> 1. emacs -Q >> 2. M-x term RET >> 3. C-c 2 >> 4. RET >> => Cursor jumps from the term prompt to the beginning of the buffer >> >> I instrumented term.el but could not induce the jump when stepping >> through with edebug. I don't know how else to try debugging this. > > Manifestations of this bug continue to annoy me (currently using GNU > Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-13 > on escher). Does anyone have any idea how to fix (or at least debug) > it? Can anyone else reproduce it? Point is being moved by -> term-emulate-terminal -> term-check-size -> term-reset-size -> term-set-scroll-region The same thing will also happen if you resize the window without splitting it. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 26 09:01:11 2010 Received: (at 4635) by debbugs.gnu.org; 26 Sep 2010 13:01:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ozqqt-0002xi-Ae for submit@debbugs.gnu.org; Sun, 26 Sep 2010 09:01:11 -0400 Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Ozqqr-0002xT-2Y for 4635@emacsbugs.donarmstrong.com; Sun, 26 Sep 2010 09:01:10 -0400 Received: (qmail invoked by alias); 26 Sep 2010 13:03:52 -0000 Received: from i59F5762A.versanet.de (EHLO escher.home) [89.245.118.42] by mail.gmx.net (mp001) with SMTP; 26 Sep 2010 15:03:52 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/u1wNR993uV0r4i2WqPrOkN6a8CopTrOH7gJmT6u 6mp/E3K5x47RUg Received: by escher.home (Postfix, from userid 1000) id AAB9C1041D; Sun, 26 Sep 2010 15:03:50 +0200 (CEST) From: Stephen Berman To: 4635@debbugs.gnu.org Subject: Re: bug#4635: 23.1.50; term-previous-input and split windows References: <87vdiuyfsp.fsf@escher.local.home> <87einuji1e.fsf@escher.local.home> <87ljepi9ot.fsf@escher.home> <87hbhd4xjt.fsf@gnu.org> Date: Sun, 26 Sep 2010 15:03:49 +0200 In-Reply-To: <87hbhd4xjt.fsf@gnu.org> ("Johan =?utf-8?Q?Bockg=C3=A5rd=22's?= message of "Sat, 25 Sep 2010 18:07:02 +0200") Message-ID: <87eicgveq2.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 4635 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: -0.9 (/) On Sat, 25 Sep 2010 18:07:02 +0200 Johan Bockg=C3=A5rd wr= ote: > Stephen Berman writes: > >> On Thu, 19 Nov 2009 22:55:57 +0100 Stephen Berman wrote: >> >>> 1. emacs -Q >>> 2. M-x term RET >>> 3. C-c 2 >>> 4. RET >>> =3D> Cursor jumps from the term prompt to the beginning of the buffer >>> >>> I instrumented term.el but could not induce the jump when stepping >>> through with edebug. I don't know how else to try debugging this. >> >> Manifestations of this bug continue to annoy me (currently using GNU >> Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-13 >> on escher). Does anyone have any idea how to fix (or at least debug) >> it? Can anyone else reproduce it? > > Point is being moved by > > -> term-emulate-terminal -> term-check-size -> > term-reset-size -> term-set-scroll-region > > The same thing will also happen if you resize the window without > splitting it. Thanks for tracking that down. So, if I comment out the sexp (term-goto 0 0) in the last line term-set-scroll-region, the jump still happens, but only to (line-beginning-position) and then the cursor immediately returns to the first character after the prompt. This looks strange but is at any rate much less disconcerting than jumping to the beginning of the buffer. The only other place term-set-scroll-region is called is at the end of term-handle-ansi-escape; I don't know how to test if this change causes problems here. BTW, the jump only happens in character mode (the default), not in line mode. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 17 04:29:56 2012 Received: (at 4635) by debbugs.gnu.org; 17 Jun 2012 08:29:56 +0000 Received: from localhost ([127.0.0.1]:45476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgArr-0006LH-ED for submit@debbugs.gnu.org; Sun, 17 Jun 2012 04:29:55 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46196) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgAro-0006L7-JL for 4635@debbugs.gnu.org; Sun, 17 Jun 2012 04:29:53 -0400 Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:51119 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SgAoj-0000hm-S6; Sun, 17 Jun 2012 04:26:42 -0400 From: Chong Yidong To: Stephen Berman Subject: Re: bug#4635: 23.1.50; term-previous-input and split windows References: <87vdiuyfsp.fsf@escher.local.home> <87einuji1e.fsf@escher.local.home> <87ljepi9ot.fsf@escher.home> <87hbhd4xjt.fsf@gnu.org> <87eicgveq2.fsf@escher.home> Date: Sun, 17 Jun 2012 16:26:31 +0800 In-Reply-To: <87eicgveq2.fsf@escher.home> (Stephen Berman's message of "Sun, 26 Sep 2010 15:03:49 +0200") Message-ID: <87zk82xs20.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 4635 Cc: 4635@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -6.9 (------) Stephen Berman writes: >>>> 1. emacs -Q >>>> 2. M-x term RET >>>> 3. C-c 2 >>>> 4. RET >>>> => Cursor jumps from the term prompt to the beginning of the buffer > > Thanks for tracking that down. So, if I comment out the sexp (term-goto > 0 0) in the last line term-set-scroll-region, the jump still happens, > but only to (line-beginning-position) and then the cursor immediately > returns to the first character after the prompt. This looks strange but > is at any rate much less disconcerting than jumping to the beginning of > the buffer. The only other place term-set-scroll-region is called is at > the end of term-handle-ansi-escape; I don't know how to test if this > change causes problems here. BTW, the jump only happens in character > mode (the default), not in line mode. I committed a similar fix, in term-emulate-terminal, to trunk. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 17 04:30:04 2012 Received: (at control) by debbugs.gnu.org; 17 Jun 2012 08:30:04 +0000 Received: from localhost ([127.0.0.1]:45480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgAs0-0006MN-6L for submit@debbugs.gnu.org; Sun, 17 Jun 2012 04:30:04 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46199) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgAry-0006Lu-AW for control@debbugs.gnu.org; Sun, 17 Jun 2012 04:30:02 -0400 Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:51120 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SgAou-0000lo-9L for control@debbugs.gnu.org; Sun, 17 Jun 2012 04:26:52 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 4635 Date: Sun, 17 Jun 2012 16:26:43 +0800 Message-ID: <87sjduqr7g.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -6.9 (------) close 4635 thanks From unknown Thu Sep 11 03:25:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Jul 2012 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