Received: (at quiet) by debbugs.gnu.org; 12 Aug 2015 05:55:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 12 01:55:23 2015 Received: from localhost ([127.0.0.1]:53750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ZPP0V-0006dN-3A for submit <at> debbugs.gnu.org; Wed, 12 Aug 2015 01:55:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56915) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rgm@HIDDEN>) id 1ZPP0S-0006dF-Jm for quiet <at> debbugs.gnu.org; Wed, 12 Aug 2015 01:55:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1ZPP0R-00007t-I0 for quiet <at> debbugs.gnu.org; Wed, 12 Aug 2015 01:55:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1ZPP0R-00007l-Fc for quiet <at> debbugs.gnu.org; Wed, 12 Aug 2015 01:55:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from <rgm@HIDDEN>) id 1ZPP0P-00087x-Kv; Wed, 12 Aug 2015 01:55:17 -0400 From: Glenn Morris <rgm@HIDDEN> To: quiet <at> debbugs.gnu.org Subject: shell should only allow input at the end of the buffer X-Spook: Shell bomb Basque Separatists Chemical 2600 Magazine kibo X-Ran: u+`g>0h-8Z:6.;:$nE@CqUH_qZCrGsHG0mkltkFxFK=rliD#8m>=8tU9@ADCf2iQEi>k0% X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 12 Aug 2015 01:55:17 -0400 Message-ID: <thzj1xdpa2.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: quiet X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.2 (-----) Package: emacs Version: 24.5 Severity: minor The behaviour of 'emacs -Q -f shell' when comint-scroll-to-bottom-on-input is nil (the default) makes no sense. Enter some commands that produce more than one page of output, eg "ls -la ~/" a few times. Scroll back to the start of the buffer. Now if you type eg "date" it gets inserted at point, not at the end of the buffer where the shell prompt is. Typing RET sends garbage to the shell. When comint-scroll-to-bottom-on-input is non-nil, input gets entered into the correct place. This variable should only control scrolling. Input should always get inserted at the end of the buffer. This is how terminal emulators behave (eg "xterm +sk", or xfce-terminal's "scroll on keystroke" option). The option is so you can enter something while referring to previous output that has scrolled off the screen. (BTW, for consistency with terminal emulators, perhaps the default comint-scroll-to-bottom-on-input should be non-nil?)
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.