From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#23546: 25.1.50; scroll-restore-mode breaks comint-mode Date: Thu, 19 May 2016 14:56:38 +0200 Message-ID: <573DB806.8020005@gmx.at> References: <5738CD38.7030907@gmail.com> <573982E5.9020005@gmx.at> <573B58B9.50409@gmail.com> <573C1342.1040408@gmx.at> <573CB90D.3030808@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1463662651 28089 80.91.229.3 (19 May 2016 12:57:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 May 2016 12:57:31 +0000 (UTC) To: Dmitry Alexandrov <321942@gmail.com>, 23546@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 19 14:57:19 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 1b3NVo-000451-UH for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 May 2016 14:57:13 +0200 Original-Received: from localhost ([::1]:50268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3NVn-0007Ts-H9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 May 2016 08:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3NVi-0007Tn-AW for bug-gnu-emacs@gnu.org; Thu, 19 May 2016 08:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3NVe-00047d-6B for bug-gnu-emacs@gnu.org; Thu, 19 May 2016 08:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3NVe-00047Z-3R for bug-gnu-emacs@gnu.org; Thu, 19 May 2016 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b3NVd-0006Ga-Vh for bug-gnu-emacs@gnu.org; Thu, 19 May 2016 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 May 2016 12:57: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.146366261024070 (code B ref 23546); Thu, 19 May 2016 12:57:01 +0000 Original-Received: (at 23546) by debbugs.gnu.org; 19 May 2016 12:56:50 +0000 Original-Received: from localhost ([127.0.0.1]:57700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3NVR-0006GA-SG for submit@debbugs.gnu.org; Thu, 19 May 2016 08:56:50 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:53363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3NVQ-0006Fx-3Z for 23546@debbugs.gnu.org; Thu, 19 May 2016 08:56:48 -0400 Original-Received: from [192.168.1.101] ([212.95.7.103]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M3AWN-1btI0E34ml-00swvw; Thu, 19 May 2016 14:56:41 +0200 In-Reply-To: <573CB90D.3030808@gmail.com> X-Provags-ID: V03:K0:SpOghhnUqPqLWooza/AOaVGXmuFkq2Lna1RXpePcKr83j5zLG+M gOkKh5Pt+Ez1NHD1mZnW///L/BgvXYraf48NHHZJP86752H1z80YnoDR+H+txM9girL8a8D g9L6ejhVhmxxSDe2vA8ZhN9W6qPbqUJnmf5+zDPKD0zZO79SatrgPwriUELrNdlrkHBRFzK j2C0VoPGtX7PU3H880x+Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:rMoYyI69F2g=:cjSe+DdFys9e4Lk9PUqcIQ bkIMGeecPoNLxCqbuhYWiWvrzyB7/up4TU4+OBQccplkZJn0tPi0W64UpinvP/El9znBq57dm TV8SC3OnZgtCnK1kRnM3TWFzXvUqYXhMPlCIgNIUktCtXPDqXgWZlWTSRq/PFlkbYrbARspw0 f6jadNNERsmLwiynhUneI+zlix7Bw1SPITVzKc4V0isZ4IP/+pEIzKRP/xqsWLsy7LrLPGviL 5Cs1x8+tOiAa4VBxvmzlVn7mLqRzstIdFRWt1/Tpu4vML8bQw9VpAOEK/4qEt49F0/Bgz8Mz9 dB+Vz6LhIyBaP4Cb47UfCqGteBU9QqhljFrYVmlZ7bZbpANY5lwLmmIyoWz0/dR7oQ5REV7+s euwc/DfmA6kru0Al4czfpNuCHTWOD17uthnSROOY8iKHQjJR/ZMc1dO0s25qvIB2y4EVJ7lSq jG84k6bwDyU1QEpBlRW3bNcLFJz3YGrDBdeCRvWo2pz5FDmlhsUMkGwVsutDYoF9Klxijdtfj /TQFqjeW78qfdhrf9idOpn3HZQhToZyKn7INcW5O1o75B+fsCb0bz5DV3LFtg6fcneZ9f7RKy DJyPfvrs1avfvgh1ojouO8pRntSrGip9kc0qZOztKw2SIEu8cBEIBBZ8/834YFg8Jyl8NC9/+ OxROhxCXu7ReI9pcXzrMq6zGMGR+lqDhAY0CXkSbCDiCU05QDnUoOd6CWZs+Bn6GFWpFVWeCB pEw4JnfOQREcOpD2afLMjlYLRGjiK/ogzLJJtuNiuhyyF/4l7xsmduA24vliKYfJFJA0WUL3 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:118449 Archived-At: > Hmm... Probably I completely missed the point, but is not > =E2=80=98scroll-restore-jump-back=E2=80=99 an option that enables the = title > functionality of scroll-restore-mode =E2=80=94 restoring the point pos= ition > after scrolling, thus simulating the behaviour of most editors, which > does not have that limitation of Emacs =E2=80=94 that cursor position = can be > on-screen only. The aim of =E2=80=98scroll-restore-mode=E2=80=99 was much more modest: To= move the cursor to the position of =E2=80=98window-point=E2=80=99 after a sequence= of scroll commands have made that position invisible and then visible again. =E2=80=98scroll-restore-jump-back=E2=80=99 is much more aggressive: It fo= rces the position of =E2=80=98window-point=E2=80=99 to become visible again and mo= ve the cursor to it after the first command which is not part of a sequence of scroll commands that have made that position invisible. If you are used to the behavior of "most editors" where such behavior is the default, you might like this. Note, however, that the behavior I just described is not precisely the behavior of these editors because, in addition to moving window-point when it is scrolled off-screen, Emacs may also move window-point when it enters the scroll margin. Such movement is left alone by my algorithm. > How would you recommend to use it? To write an advice around =E2=80=98= keyboard-quit=E2=80=99 (like below), so scrolling would be =E2=80=98cance= lled=E2=80=99 only with =E2=80=98C-g=E2=80=99? > > (defadvice keyboard-quit (before scroll-restore-jump-back activate) > (scroll-restore-jump-back)) > It depends on what precisely you want to accomplish (or what you are used to). But why on earth would you want to advise =E2=80=98keyboard-qu= it=E2=80=99? >> I'll attach my latest version of =E2=80=98scroll-restore-mode=E2=80=99= =2E 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. All you have to do is use it for a sufficient amount of time. I'm confident that there are unresolved issues left. martin