From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#21139: 25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input Date: Sat, 8 Aug 2015 19:01:54 +0100 Message-ID: References: <83a8u2qhid.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439056939 31542 80.91.229.3 (8 Aug 2015 18:02:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2015 18:02:19 +0000 (UTC) Cc: 21139-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 08 20:02:11 2015 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 1ZO8Re-0002K0-Hw for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Aug 2015 20:02:10 +0200 Original-Received: from localhost ([::1]:53479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO8Re-0004NH-21 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Aug 2015 14:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO8Ra-0004MQ-FA for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 14:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZO8RX-0002kb-47 for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 14:02:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO8RX-0002kN-1L for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 14:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZO8RW-0000ns-Ll for bug-gnu-emacs@gnu.org; Sat, 08 Aug 2015 14:02:02 -0400 Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Aug 2015 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 21139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Mail-Followup-To: 21139@debbugs.gnu.org, bruce.connor.am@gmail.com, bruce.connor.am@gmail.com Original-Received: via spool by 21139-done@debbugs.gnu.org id=D21139.14390569183074 (code D ref 21139); Sat, 08 Aug 2015 18:02:02 +0000 Original-Received: (at 21139-done) by debbugs.gnu.org; 8 Aug 2015 18:01:58 +0000 Original-Received: from localhost ([127.0.0.1]:50801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZO8RR-0000nV-Td for submit@debbugs.gnu.org; Sat, 08 Aug 2015 14:01:58 -0400 Original-Received: from mail-la0-f53.google.com ([209.85.215.53]:35232) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZO8RP-0000nN-Tx for 21139-done@debbugs.gnu.org; Sat, 08 Aug 2015 14:01:56 -0400 Original-Received: by lahi9 with SMTP id i9so6645264lah.2 for <21139-done@debbugs.gnu.org>; Sat, 08 Aug 2015 11:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=EbDcJYfsW7e9rrwr2aURkJ6Ow2+Kme1Cldiw5G9WEg0=; b=r9zYa1nHzfHPerTsOUDi8g2De1VbloTVz6smWveMymh6MYL1UVKHahyUF+wX++nGzj U+pfa5RtHstoSdSLudebGm9q2/nrnJsaHX0coIu2nJKdfC7i1AuNlSoRcoIV+G/Wp++z wwRpXn77s3DPzyrXnnjWynHAysFjTVc42hSdG9gC8GBMXyT04Kkx8w2/4HwAbd2pM4od J0LfwLeYldPrMq34riPu1d8kLhQBaQ3fJSmFOHN/PWD8ZCJ+WywaySAFvfh526RRzRXR q6VnfZJQ/AarpoJBQ6l7xnKfEdnv2nLkWyCREaAG71h9e3lxpiWwLAker/Az7d8LN3rp zq9w== X-Received: by 10.112.138.199 with SMTP id qs7mr13512947lbb.21.1439056914665; Sat, 08 Aug 2015 11:01:54 -0700 (PDT) Original-Received: by 10.25.134.139 with HTTP; Sat, 8 Aug 2015 11:01:54 -0700 (PDT) In-Reply-To: <83a8u2qhid.fsf@gnu.org> X-Google-Sender-Auth: Fdm8Wr3MvrLGZPM_FUfIsEzkA68 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:105368 Archived-At: THanks Eli. Indeed, that's what I was looking for. I'll close this now. 2015-08-08 10:03 GMT+01:00 Eli Zaretskii : >> Date: Mon, 27 Jul 2015 11:46:56 +0100 >> From: Artur Malabarba >> >> 1. Set `comint-scroll-to-bottom-on-output` and >> `comint-scroll-to-bottom-on-input` to nil via the customize interface >> (or via `setq-default`) >> 2. Run `M-x shell` >> 3. Run a couple of shell commands so you have enough output to fill >> the screen (`ls -al ~/` should do it). >> 4. Hit `C-l` twice so point is at the top of the screen. >> 5. Type `date` on the prompt and hit `RET`. >> 6. The window scrolls until point is at the bottom. >> >> >> It would seem that, by setting those variables to nil, the window >> should not scroll. If this is not intended to be the case, then these >> variables' docstrings are unclear to me. > > The variable comint-scroll-to-bottom-on-output > (a.k.a. comint-move-point-for-output) control whether _point_ moves. > In the scenario you described, point does not move, it stays at EOB. > What happens is that the window is scrolled to place point on the last > line of the window; this is controlled by another variable, > comint-scroll-show-maximum-output, which attempts to show as much of > the shell buffer as possible. if you set it to nil, you will have > what you want in this scenario. > > IOW, this doesn't look like a bug, but intended behavior, and you need > to customize another variable to have what you want.