From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#4635: 23.1.50; term-previous-input and split windows Date: Sun, 26 Sep 2010 15:03:49 +0200 Message-ID: <87eicgveq2.fsf@escher.home> References: <87vdiuyfsp.fsf@escher.local.home> <87einuji1e.fsf@escher.local.home> <87ljepi9ot.fsf@escher.home> <87hbhd4xjt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285506684 14675 80.91.229.12 (26 Sep 2010 13:11:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 13:11:24 +0000 (UTC) To: 4635@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 26 15:11:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ozr0k-0001qK-US for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Sep 2010 15:11:23 +0200 Original-Received: from localhost ([127.0.0.1]:42821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ozr0k-0001Iw-8M for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Sep 2010 09:11:22 -0400 Original-Received: from [140.186.70.92] (port=53396 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ozr0b-0001Ff-Tn for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 09:11:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ozr0a-0007Cb-Li for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 09:11:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54626) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ozr0a-0007CN-KF for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 09:11:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ozqrh-0002y0-Ol; Sun, 26 Sep 2010 09:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2010 13:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4635 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4635-submit@debbugs.gnu.org id=B4635.128550607111393 (code B ref 4635); Sun, 26 Sep 2010 13:02:01 +0000 Original-Received: (at 4635) by debbugs.gnu.org; 26 Sep 2010 13:01:11 +0000 Original-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 Original-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 Original-Received: (qmail invoked by alias); 26 Sep 2010 13:03:52 -0000 Original-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 Original-Received: by escher.home (Postfix, from userid 1000) id AAB9C1041D; Sun, 26 Sep 2010 15:03:50 +0200 (CEST) In-Reply-To: <87hbhd4xjt.fsf@gnu.org> ("Johan =?UTF-8?Q?Bockg=C3=A5rd?="'s message of "Sat, 25 Sep 2010 18:07:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 26 Sep 2010 09:02:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40460 Archived-At: 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