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.bugs Subject: bug#23546: 25.1.50; scroll-restore-mode breaks comint-mode Date: Tue, 17 May 2016 20:45:29 +0300 Message-ID: <573B58B9.50409@gmail.com> References: <5738CD38.7030907@gmail.com> <573982E5.9020005@gmx.at> 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 1463507187 27461 80.91.229.3 (17 May 2016 17:46:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 May 2016 17:46:27 +0000 (UTC) To: 23546@debbugs.gnu.org, martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 17 19:46:16 2016 Return-path: Envelope-to: geb-bug-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 1b2j4R-00053y-0g for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 May 2016 19:46:15 +0200 Original-Received: from localhost ([::1]:51817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2j4Q-000776-6O for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 May 2016 13:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2j4K-00071c-85 for bug-gnu-emacs@gnu.org; Tue, 17 May 2016 13:46:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2j4E-00037m-5B for bug-gnu-emacs@gnu.org; Tue, 17 May 2016 13:46:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2j4E-00037i-0n for bug-gnu-emacs@gnu.org; Tue, 17 May 2016 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2j4D-0004zr-Kc for bug-gnu-emacs@gnu.org; Tue, 17 May 2016 13:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Alexandrov <321942@gmail.com> Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 May 2016 17:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23546 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23546-submit@debbugs.gnu.org id=B23546.146350711716630 (code B ref 23546); Tue, 17 May 2016 17:46:01 +0000 Original-Received: (at 23546) by debbugs.gnu.org; 17 May 2016 17:45:17 +0000 Original-Received: from localhost ([127.0.0.1]:56197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2j3U-0004K0-RM for submit@debbugs.gnu.org; Tue, 17 May 2016 13:45:17 -0400 Original-Received: from mail-lb0-f180.google.com ([209.85.217.180]:34091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <321942@gmail.com>) id 1b2j3Q-0004BJ-S4 for 23546@debbugs.gnu.org; Tue, 17 May 2016 13:45:15 -0400 Original-Received: by mail-lb0-f180.google.com with SMTP id n11so8735017lbh.1 for <23546@debbugs.gnu.org>; Tue, 17 May 2016 10:45:12 -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=pm/yLDXjCm6KXfcHHG00oszYcrrWUiG1ViMan6npxdA=; b=lCrZv8PTOqKgwZmsPf1ZnSmDeDoe+O0boy5SUlix6t1mYCxHG996GCf0VjiIHoIP5w Xf8u6HcRW5Bl9o8PCGLjA2A2jJ/CKdgXP3v3IdKWjF1PUrNHiyWdxsttT43T5ehk/ErO 6aMjd2Yfm2VLqXi9cGlFKoGKOhn0pCLaEuNgLKc9BSfzttk6B5OPNDUMO73S7MOKtdhw VoSqlUJ5wAur4DYkw3nCnce6sJyPMdLoF7e2pPG28etZPfzQFJY1NDzE27mf1Hf727f1 Zb7TSglUjELEks432MNTfSkDRpouQGkFuC/xZix3JH7ZzGr+HNZAryP1fBCzvMf1rrt5 IDsg== 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=pm/yLDXjCm6KXfcHHG00oszYcrrWUiG1ViMan6npxdA=; b=PCNvxz5bYt3RgrVCzwi3yvCaxbnOmAa7LIrYwTWodNi+Za4U5DG0Hxw4ju9n/wZ/mj lOE8mZ+lPZX9gWDR525HLDCkhhkHkk5a/EKhINe8pi77lcLckLPMz48i/VzpAwQPcHel MUe++IqtsP45jkVyF78U90YhODnPyTlnXJKWagZGfpEdy9ATCkX8mw1pPNoDy1KJgw3c Qn1cFQhh228wRl9fjtpwN7BqyH6bs6oh+GC9Fxf0of58clw0PrHDotdpSA5LNPsHmx7d g5v6AEwHpYEXlWnqCzAOTYt5cgVIhJvJa+TmjA5+yjZlbXKatV3UWJ6J4RDyELusJc9L HXtA== X-Gm-Message-State: AOPr4FUDylsvQhhPeTa2vYj6RIbzHXppwiDOpR5Kdojb47SHYQOiY7g3tM0qfG4TMNaekg== X-Received: by 10.112.180.233 with SMTP id dr9mr980492lbc.11.1463507106850; Tue, 17 May 2016 10:45:06 -0700 (PDT) Original-Received: from [192.168.1.132] ([178.218.27.218]) by smtp.googlemail.com with ESMTPSA id l125sm709960lfe.5.2016.05.17.10.45.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 May 2016 10:45:05 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; GNU x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: <573982E5.9020005@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118354 Archived-At: On 16/05/16 11:20, martin rudalics wrote: >> 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’. Yes, this option does force any input to be typed at the end-of-buffer, of course. However, the possibility to ‘C-r’ back, edit some command in-place and hit ‘RET’ — i. e. the possibility that this option disables — is exactly why I prefer shell-mode over a full-featured terminal emulator. >> 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. Alas.