all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: bruce.connor.am@gmail.com
Cc: 21139@debbugs.gnu.org
Subject: bug#21139: 25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input
Date: Tue, 11 Aug 2015 21:51:45 +0300	[thread overview]
Message-ID: <83614lpsji.fsf@gnu.org> (raw)
In-Reply-To: <CAAdUY-+qHjX5iz2_BNZfMNchdSqYbuHtp==UbSuH=tFV8FAb4g@mail.gmail.com>

> Date: Mon, 10 Aug 2015 10:26:17 +0100
> From: Artur Malabarba <bruce.connor.am@gmail.com>
> Cc: Glenn Morris <rgm@gnu.org>, 21139@debbugs.gnu.org
> 
> > AFAICS, it moves point to EOB if it is not already there, when user
> > input is expected.
> 
> What's an exmaple of 'input is expected'? When the shell prompt is displayed?
> 
> I've set all 3 variables to nil, but my cursor is still moved to the
> end of the buffer when the output+prompt are displayed, no matter
> where it was before. (Tested by runnning 'sleep 2; date' and then
> moving the point around.)

Not sure why you consider the scenario you described relevant for what
comint-scroll-to-bottom-on-input controls.  The scenario that I think
is relevant is this:

  . M-x shell
  . move point back to some place in the buffer other than the last
    shell prompt
  . type something

When comint-scroll-to-bottom-on-input is non-nil, point moves to the
last shell prompt before your input is inserted; when the variable is
nil, whatever you type is inserted where point was, without moving it
anywhere.

This behavior seems consistent with the doc string of
comint-preinput-scroll-to-bottom, the only function that references
that variable:

    Go to the end of buffer in all windows showing it.
  Movement occurs if point in the selected window is not after the process mark,
  and `this-command' is an insertion command.  Insertion commands recognized
  are `self-insert-command', `comint-magic-space', `yank', and `hilit-yank'.
  Depends on the value of `comint-scroll-to-bottom-on-input'.





  reply	other threads:[~2015-08-11 18:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 10:46 bug#21139: 25.0.50; shell-mode doesn't respect comint-scroll-to-bottom-on-output/input Artur Malabarba
2015-07-27 15:44 ` Glenn Morris
2015-07-27 17:01   ` Artur Malabarba
2015-07-28 19:55     ` Glenn Morris
2015-08-08  9:03 ` Eli Zaretskii
2015-08-08 18:01   ` Artur Malabarba
2015-08-09  2:26     ` Glenn Morris
2015-08-09  9:05       ` Artur Malabarba
2015-08-09 14:49         ` Eli Zaretskii
2015-08-10  9:26           ` Artur Malabarba
2015-08-11 18:51             ` Eli Zaretskii [this message]
2015-08-12  5:57               ` Glenn Morris
2015-08-12 12:42                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83614lpsji.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21139@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.