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: Wed, 18 May 2016 21:48:45 +0300 Message-ID: <573CB90D.3030808@gmail.com> References: <5738CD38.7030907@gmail.com> <573982E5.9020005@gmx.at> <573B58B9.50409@gmail.com> <573C1342.1040408@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 1463597368 8335 80.91.229.3 (18 May 2016 18:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 18:49:28 +0000 (UTC) To: martin rudalics , 23546@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 20:49: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 1b36Wx-0001tJ-R8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 20:49:16 +0200 Original-Received: from localhost ([::1]:46611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36Wx-0007fH-69 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 14:49:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36Wq-0007eC-Gj for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b36Wk-0001wI-Hy for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:49:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36Wk-0001wE-C9 for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b36Wk-0007h3-7N for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 14:49:02 -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: Wed, 18 May 2016 18:49:02 +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.146359731329533 (code B ref 23546); Wed, 18 May 2016 18:49:02 +0000 Original-Received: (at 23546) by debbugs.gnu.org; 18 May 2016 18:48:33 +0000 Original-Received: from localhost ([127.0.0.1]:57259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b36WH-0007gH-Bg for submit@debbugs.gnu.org; Wed, 18 May 2016 14:48:33 -0400 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:36847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <321942@gmail.com>) id 1b36WG-0007g5-3N for 23546@debbugs.gnu.org; Wed, 18 May 2016 14:48:32 -0400 Original-Received: by mail-lb0-f181.google.com with SMTP id h1so20710660lbj.3 for <23546@debbugs.gnu.org>; Wed, 18 May 2016 11:48:31 -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=UXuR5n2JiqEyXiXYCpccx0liivzTd2VByYT+QKCr6zM=; b=l++s/Pb1U8yYos2dEt1g7uKRRvxn2oXbBDKDJoNPW+8xFG8NVdWqq5dNys9nKDdK5l A+R57SppxzMbYVqlLDNGtTKmygTQidz5MsMpI60jcBDSpA5H3snL61p98a0QtHB26PRH bxOkL13uucvjJEUUUPX5x/9DL3GqfOoRf3P1t1Bt+1JqPCm+WkMTI4XUXkdk45pO2RvW 49kGnqWrc2U3Z/FN1xIEm0LUaxQFAP8j4W72FFnotuSrj98TkW1hbP8dEErenbZI5ki/ TUF/FpyFeLe9/n8xlb0huqa8d1lRAZZzQcQSxSkAofY937OlLP3nd7XpDGunuNG5uaxK NBFQ== 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=UXuR5n2JiqEyXiXYCpccx0liivzTd2VByYT+QKCr6zM=; b=dvwM6Kp1MJd6KaYXI2z5Sqa8F5KLrC9Or5KHgP+cRHfpj1mkBxE1MUTczIMk2s6lSl lMmT0DlFRQN5Fc4eoLlugsacjmuX/5rXN13xF1JO2+wBc1OI30D/f0UBsHDoUHPu7lvN 68X68k3hhwHMvRome8A0DWPHGkDDHizZtE2RVsG1D1a9u90Yj7oDgE08ajHxAQ/0KWqj 9O3SryiLq4TVERlhrEBwk6MCAtSsQckJYyOmW0b/eC2kNl5uzl2U9GOIfy3E8+s/iN2F k40+JOHZ33VpD6kY7yoVS2ZVzKCF0VTsStIZ4L8Mr2VQz0Up29hFocn5qc84aXLZqaBv aH4Q== X-Gm-Message-State: AOPr4FUFKotJJp4je2Tasg67V9yIggUVU4mcvgo7WFCDLnIuY3afwEN3bUXqgIIt58mJQg== X-Received: by 10.112.26.172 with SMTP id m12mr3124485lbg.44.1463597306018; Wed, 18 May 2016 11:48:26 -0700 (PDT) Original-Received: from [192.168.1.132] ([178.218.27.218]) by smtp.googlemail.com with ESMTPSA id h9sm1617653lfg.3.2016.05.18.11.48.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2016 11:48:24 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; GNU x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: <573C1342.1040408@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:118409 Archived-At: On 18/05/16 10:01, martin rudalics wrote: >>> 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 still don't understand what you need ‘scroll-restore-jump-back’ for. > But I have to admit that I don't even remember the purpose of that > option well :-( Hmm... Probably I completely missed the point, but is not ‘scroll-restore-jump-back’ an option that enables the title functionality of scroll-restore-mode — restoring the point position after scrolling, thus simulating the behaviour of most editors, which does not have that limitation of Emacs — that cursor position can be on-screen only. How would you recommend to use it? To write an advice around ‘keyboard-quit’ (like below), so scrolling would be ‘cancelled’ only with ‘C-g’? (defadvice keyboard-quit (before scroll-restore-jump-back activate) (scroll-restore-jump-back)) >>> I'm afraid that ‘scroll-restore-mode’ is too simplistic in this regard. >> >> Alas. > > I'll attach my latest version of ‘scroll-restore-mode’. Please try it. > If you confirm that this version works Yes. My appreciations to you. > and doesn't break anything else, I could not try anything, of course, but at first sight it does not.