GNU bug report logs - #21139
25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Mon, 27 Jul 2015 10:48:02 UTC

Severity: minor

Tags: confirmed

Found in version 25.0.50

Done: Artur Malabarba <bruce.connor.am <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: bruce.connor.am <at> gmail.com
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21139: closed (25.0.50; shell-mode doesn't respect
 comint-scroll-to-bottom-on-output/input)
Date: Sat, 08 Aug 2015 18:02:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 8 Aug 2015 19:01:54 +0100
with message-id <CAAdUY-L7jP=5bWsgZ=E2XyoOHdgSzAAz-F7-LBarTyjPJJnR_w <at> mail.gmail.com>
and subject line Re: bug#21139: 25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input
has caused the debbugs.gnu.org bug report #21139,
regarding 25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
21139: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21139
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 shell-mode doesn't respect comint-scroll-to-bottom-on-output/input
Date: Mon, 27 Jul 2015 11:46:56 +0100
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.


[Message part 3 (message/rfc822, inline)]
From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 21139-done <at> debbugs.gnu.org
Subject: Re: 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
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 <eliz <at> gnu.org>:
>> Date: Mon, 27 Jul 2015 11:46:56 +0100
>> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
>>
>> 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.


This bug report was last modified 9 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.