From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Olsen, Stuart J" Newsgroups: gmane.emacs.bugs Subject: bug#15744: 23.3; ansi-term: prompt moves to bottom of screen Date: Mon, 28 Oct 2013 19:02:42 +0000 Message-ID: <796BA1E8B6BA204491CEAC005F38EE50079FD5F9@EXCHMBX6.matrix.txstate.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382987062 9639 80.91.229.3 (28 Oct 2013 19:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 19:04:22 +0000 (UTC) To: 15744@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 28 20:04:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vas6x-0003mV-Ii for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2013 20:04:23 +0100 Original-Received: from localhost ([::1]:42682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas6x-0006ok-5M for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2013 15:04:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas6l-0006nY-T7 for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:04:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vas6d-00032c-Vm for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:04:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas6d-00032C-S0 for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vas6d-0000hb-1b for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:04:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Olsen, Stuart J" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2013 19:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.13829869982633 (code B ref -1); Mon, 28 Oct 2013 19:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2013 19:03:18 +0000 Original-Received: from localhost ([127.0.0.1]:49703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vas5s-0000gO-Mu for submit@debbugs.gnu.org; Mon, 28 Oct 2013 15:03:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42133) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vas5p-0000g9-Gk for submit@debbugs.gnu.org; Mon, 28 Oct 2013 15:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vas5c-0002l4-8l for submit@debbugs.gnu.org; Mon, 28 Oct 2013 15:03:08 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas5c-0002ky-6h for submit@debbugs.gnu.org; Mon, 28 Oct 2013 15:03:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas5V-0006VV-6m for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:03:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vas5N-0002iA-Vz for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:02:53 -0400 Original-Received: from ppsfilter7.tr.txstate.edu ([147.26.63.11]:49180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vas5N-0002hz-LY for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2013 15:02:45 -0400 Original-Received: from exchhubcas2.matrix.txstate.edu (exchhubcas2.matrix.txstate.edu [147.26.57.28]) by ppsfilter7.tr.txstate.edu (8.14.4/8.14.4) with ESMTP id r9SJ2gEr015930 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 28 Oct 2013 14:02:43 -0500 Original-Received: from EXCHMBX6.matrix.txstate.edu ([169.254.5.234]) by exchhubcas2.matrix.txstate.edu ([147.26.57.28]) with mapi id 14.03.0158.001; Mon, 28 Oct 2013 14:02:42 -0500 Thread-Topic: 23.3; ansi-term: prompt moves to bottom of screen Thread-Index: Ac7UEEUk29h4tNDNQkqOaMfPo1Z8DQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [147.26.103.220] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-10-28_03:2013-10-28, 2013-10-28, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=2.65620858641569e-12 kscore.compositescore=0 circleOfTrustscore=0 compositescore=0.999202450796203 urlsuspect_oldscore=0.999202450796203 suspectscore=0 recipient_domain_to_sender_totalscore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=0 rbsscore=0.999202450796203 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1305240000 definitions=main-1310280144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79727 Archived-At: In ansi-term, once the screen has filled with output -- that is, when=0A= the prompt for the shell is at the bottom of the window -- if one scrolls t= he=0A= buffer so that the prompt is in the middle of the screen, typing=0A= anything into the terminal buffer causes the prompt to snap back down to=0A= the bottom of the window. This is helpful if the prompt is not in view,=0A= but is rather obnoxious if it is, especially when using ZSH, which=0A= displays completions and other information below the prompt, meaning=0A= that that information is hidden once the buffer fills to the size of the=0A= window.=0A= =0A= To reproduce the bug, issue `emacs -Q', run the `ansi-term' command,=0A= select an appropriate shell (I have observed this behaviour with both=0A= GNU bash and ZSH), and issue enough commands to the shell to fill the=0A= window. Once the window has been filled, scroll the buffer so the prompt=0A= appears above the bottom of the window. Send any input to the shell, and=0A= the prompt will snap to the bottom of the window.=0A= =0A= It may be helpful to note that term.el references at line 1005 a variable= =0A= named `term-scroll-to-bottom-on-input', which does not appear to be=0A= referenced anywhere within the code, and which is undefined in my version o= f=0A= Emacs.=0A= =0A= =0A= In GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)=0A= of 2013-05-16 on panlong, modified by Debian=0A= Windowing system distributor `The X.Org Foundation', version 11.0.11103000= =0A= configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64= -linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir= =3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--= mandir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/= emacs23:/etc/emacs:/usr/local/share/emacs/23.3/site-lisp:/usr/local/share/e= macs/site-lisp:/usr/share/emacs/23.3/site-lisp:/usr/share/emacs/site-lisp:/= usr/share/emacs/23.3/leim' '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--= with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scroll-bars' 'build_= alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-DDEBIAN -g -O2' 'LDFLAGS=3D-g' 'CPPFLA= GS=3D-D_FORTIFY_SOURCE=3D2''=0A= =0A= Important settings:=0A= value of $LC_ALL: en_US.UTF-8=0A= value of $LC_COLLATE: nil=0A= value of $LC_CTYPE: nil=0A= value of $LC_MESSAGES: nil=0A= value of $LC_MONETARY: nil=0A= value of $LC_NUMERIC: nil=0A= value of $LC_TIME: nil=0A= value of $LANG: en_US.UTF-8=0A= value of $XMODIFIERS: nil=0A= locale-coding-system: utf-8-unix=0A= default enable-multibyte-characters: t=0A= =0A= Major mode: Term=0A= =0A= Minor modes in effect:=0A= tooltip-mode: t=0A= mouse-wheel-mode: t=0A= tool-bar-mode: t=0A= menu-bar-mode: t=0A= file-name-shadow-mode: t=0A= global-font-lock-mode: t=0A= font-lock-mode: t=0A= blink-cursor-mode: t=0A= auto-encryption-mode: t=0A= auto-compression-mode: t=0A= line-number-mode: t=0A= transient-mark-mode: t=0A= =0A= Recent input:=0A= M-x a n s i - t e r m =0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= l s =0A= =0A= s =0A= s =0A= =0A= s s s s =0A= =0A= M-x s u b C-g =0A= =0A= =0A= =0A= Recent messages:=0A= Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)..= .done=0A= Loading debian-ispell...done=0A= Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...d= one=0A= Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done=0A= Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done=0A= Loading /etc/emacs/site-start.d/50psvn.el (source)...done=0A= Loading /etc/emacs/site-start.d/50slime.el (source)...=0A= Loading /usr/share/emacs23/site-lisp/slime/slime-autoloads.elc...done=0A= Loading /etc/emacs/site-start.d/50slime.el (source)...done=0A= For information about GNU Emacs and the GNU system, type C-h C-a.=0A= =0A= Load-path shadows:=0A= /usr/share/emacs/23.3/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup=0A= /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/23.3/lisp/textmodes/ispell=0A= /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/23.3/lisp/textmodes/flyspell=0A= =0A= Features:=0A= (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml=0A= easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap=0A= mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader=0A= gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit=0A= mailheader canlock sha1 hex-util hashcash mail-utils emacsbug term=0A= disp-table ehelp electric ring slime-autoloads emacs-goodies-el=0A= emacs-goodies-custom emacs-goodies-loaddefs easy-mmode tooltip=0A= ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting=0A= tool-bar dnd fontset image fringe lisp-mode register page menu-bar=0A= rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock=0A= syntax facemenu font-core frame cham georgian utf-8-lang misc-lang=0A= vietnamese tibetan thai tai-viet lao korean japanese hebrew greek=0A= romanian slovak czech european ethiopic indian cyrillic chinese=0A= case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button=0A= minibuffer faces cus-face files text-properties overlay md5 base64=0A= format env code-pages mule custom widget hashtable-print-readable=0A= backquote make-network-process dbusbind system-font-setting=0A= font-render-setting gtk x-toolkit x multi-tty emacs)=0A= =0A=