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 20:35:05 +0300 Message-ID: <5738B349.8040001@gmail.com> References: 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 1463334289 30705 80.91.229.3 (15 May 2016 17:44:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 May 2016 17:44:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 15 19:44:43 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 1b205m-0003bA-9B for geh-help-gnu-emacs@m.gmane.org; Sun, 15 May 2016 19:44:38 +0200 Original-Received: from localhost ([::1]:41011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b205l-0003PB-4m for geh-help-gnu-emacs@m.gmane.org; Sun, 15 May 2016 13:44:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <321942@gmail.com>) id 1b1zwO-0000pd-Nt for help-gnu-emacs@gnu.org; Sun, 15 May 2016 13:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <321942@gmail.com>) id 1b1zwK-0002ew-G1 for help-gnu-emacs@gnu.org; Sun, 15 May 2016 13:34:55 -0400 Original-Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:36706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <321942@gmail.com>) id 1b1zwK-0002er-8k for help-gnu-emacs@gnu.org; Sun, 15 May 2016 13:34:52 -0400 Original-Received: by mail-lf0-x22a.google.com with SMTP id u64so109419995lff.3 for ; Sun, 15 May 2016 10:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=g/TVubQ1XaV9sWAtPl9aQqHldcNUO5usdFA/0qD/ZP4=; b=GpJnyRWoF/IUuI+8hMrrGRPWNSOgEfXZeJetuFIYnJcJkbCn7dk62bE0WXgXjgvGau 5c4KOBWFaQYcZWOY88FYEg1BGHUtG/IjLsRVqJ2WEYL50FHL0QYM0xKeC7F8sbQIex76 vzCQiIYOiLdaM8gapdlS/zncEMgPooB6bRqftVC4SQ8K65Y3pOtFZjDMUA+33zD7QbVX l1aN5s0+UpqDZdPb7UuRTcNn6QrwzQX87H+wiESfQVKBu/TbsZ/6w3k2FoQzsYcE3pes SjLooVxXNTRnRzZvMwPf7g3/R5zBCUmd0gMnIIOAu+IWhMVGwn/W7ApXS2qLUYnFCjCA Dwqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=g/TVubQ1XaV9sWAtPl9aQqHldcNUO5usdFA/0qD/ZP4=; b=Vo0NiBcEY6J5EJ8rd9MqwJyhyJo3IF+ROAA7hDSC6EjVyMUEQNOPfz/Vb2iodQZfxI eas3nhhUtuoo4E3nSvJgNBeVDiYooXSwcjPDdKF2ay0fqFqBpfNu15/0mvhWxBEIWOan gz8AmEa4cR2JnxL0t+YP2teIzdjyQiTymq6zDqK8+UAO3r0KvpHImDGNlYIDOtXbSnGO YtO+fMb+uxWVmvYS6YX0cDnQxzEOlg0ByZoVI5YDSJmnKVKDI3Y474e0B4gjAI+pLsyE mRwUa0mR2D3AgkOkwRNQeUB5qP2qktPF4c2oEwEomLceFAyI6Bs1rs2yG0QazEiVS63q nz1w== X-Gm-Message-State: AOPr4FUT/q1x6idwS3Zo/SdqWi3U0zT6hcuAhXjw0/3UJhHW8GTV9ER6qsgQKJYicBd1KQ== X-Received: by 10.25.211.11 with SMTP id k11mr10412675lfg.153.1463333691108; Sun, 15 May 2016 10:34:51 -0700 (PDT) Original-Received: from [192.168.1.132] ([178.218.27.218]) by smtp.googlemail.com with ESMTPSA id z1sm4526593lbw.2.2016.05.15.10.34.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 May 2016 10:34:50 -0700 (PDT) X-Forwarded-Message-Id: User-Agent: Mozilla/5.0 (X11; GNU x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22a X-Mailman-Approved-At: Sun, 15 May 2016 13:44:28 -0400 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:109961 Archived-At: [ It seems that posting via Gmane does not work, so I am trying ] [ to mail directly; sorry if this message turns out a duplicate. ] 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.