From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Alexandrov <321942@gmail.com> Newsgroups: gmane.emacs.help Subject: scroll-restore-mode breaks comint-mode Date: Sun, 15 May 2016 18:10:38 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1463421437 10767 80.91.229.3 (16 May 2016 17:57:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 17:57:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 16 19:57:08 2016 Return-path: Envelope-to: geh-help-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 1b2MlP-0001QY-7n for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 19:57:07 +0200 Original-Received: from localhost ([::1]:45706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2MlO-0002YF-LK for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 13:57:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Mfg-0006lV-U8 for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Mfc-0000QA-VH for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Mfc-0000Pv-OB for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b1xpt-00087Q-Ri for help-gnu-emacs@gnu.org; Sun, 15 May 2016 17:20:05 +0200 Original-Received: from 178.218.27.218 ([178.218.27.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 May 2016 17:20:05 +0200 Original-Received: from 321942 by 178.218.27.218 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 May 2016 17:20:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 178.218.27.218 X-Mozilla-News-Host: news://news.gmane.org:119 User-Agent: Mozilla/5.0 (X11; GNU x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109992 Archived-At: Hello. I encountered a problem that looks like a bug to me: scroll-restore-mode (from elpa.gnu.org) breaks comint-mode (built-in, GNU Emacs 25.1.50.1). 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. So I have two questions: 1. Where to report the bug — it seems to me that it belongs to scroll-restore-mode, but its page [0] says nothing about where to mail issues. Is it maintained at all? [0] https://elpa.gnu.org/packages/scroll-restore.html 2. What I can do right now to make it works? I actually would hardly need scroll-restore-mode in shell, so it would be enough for me if there were a way disable it on per-major-mode basis. However scroll-restore-mode has only global state, no buffer-local, as far as I can see.