all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Dmitry Alexandrov <321942@gmail.com>, 23546@debbugs.gnu.org
Subject: bug#23546: 25.1.50; scroll-restore-mode breaks comint-mode
Date: Mon, 16 May 2016 10:20:53 +0200	[thread overview]
Message-ID: <573982E5.9020005@gmx.at> (raw)
In-Reply-To: <5738CD38.7030907@gmail.com>

 > I encountered a problem that looks like a bug to me: scroll-restore-mode
 > (from elpa.gnu.org [0]) breaks comint-mode (built-in, GNU Emacs 25.1.50.1).
 >
 > [0] https://elpa.gnu.org/packages/scroll-restore.html
 >
 > Steps to reproduce in a clear environment:
 >
 > $ mkdir /tmp/emacs.d
 > $ emacs --quick --eval '(setq user-emacs-directory "/tmp/emacs.d")'
 >
 > (package-initialize)
 > (package-refresh-contents)
 > (package-install 'scroll-restore)
 > (setq scroll-restore-jump-back t)
 > (scroll-restore-mode 1)
 >
 > M-x shell
 >
 > Now I can type the first command (c d RET), start to type the second one
 > — and the point jumps before shell prompt:
 >
 > user@local:~$ cd¦
 > cd¦user@local:~$
 >
 > (here ‘¦’ denotes cursor position)
 >
 > I could move point back to the end manually (with M-> for instance), but
 > that is pretty annoying.

Could you try with ‘comint-scroll-to-bottom-on-input’ set to 'this?
That option apparently conflicts with ‘scroll-restore-jump-back’.  (IMO
‘scroll-restore-jump-back’ is much too aggressive, I never set it.)

 > I have to mention that it would not present a huge problem if there were
 > a way disable scroll-restore-mode on per-major-mode basis.  However
 > scroll-restore-mode has only global state, no buffer-local, as far as I
 > can see.

I'm afraid that ‘scroll-restore-mode’ is too simplistic in this regard.

Thanks, martin






  reply	other threads:[~2016-05-16  8:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-15 19:25 bug#23546: 25.1.50; scroll-restore-mode breaks comint-mode Dmitry Alexandrov
2016-05-16  8:20 ` martin rudalics [this message]
2016-05-17 17:45   ` Dmitry Alexandrov
2016-05-18  7:01     ` martin rudalics
2016-05-18 18:48       ` Dmitry Alexandrov
2016-05-19 12:56         ` martin rudalics
2016-05-22  1:34           ` Dmitry Alexandrov
2016-11-03  1:53 ` bug#23546: a
2016-11-06 23:27 ` bug#23546: nevermind, pretty broken a
2016-11-07  6:34   ` martin rudalics

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=573982E5.9020005@gmx.at \
    --to=rudalics@gmx.at \
    --cc=23546@debbugs.gnu.org \
    --cc=321942@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.