GNU logs - #27932, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 03 Aug 2017 13:35:02 +0000
Resent-Message-ID: <handler.27932.B.150176729229365 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 27932 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.150176729229365
          (code B ref -1); Thu, 03 Aug 2017 13:35:02 +0000
Received: (at submit) by debbugs.gnu.org; 3 Aug 2017 13:34:52 +0000
Received: from localhost ([127.0.0.1]:39388 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddGH6-0007dZ-HN
	for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 09:34:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1ddGH4-0007dM-U2
 for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 09:34:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1ddGGy-000142-QB
 for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 09:34:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46138)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dmoncayo@HIDDEN>) id 1ddGGy-00013u-Mx
 for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 09:34:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40208)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1ddGGx-0002XP-Es
 for bug-gnu-emacs@HIDDEN; Thu, 03 Aug 2017 09:34:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1ddGGw-00011y-Hv
 for bug-gnu-emacs@HIDDEN; Thu, 03 Aug 2017 09:34:43 -0400
Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36179)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <dmoncayo@HIDDEN>) id 1ddGGw-0000xW-AN
 for bug-gnu-emacs@HIDDEN; Thu, 03 Aug 2017 09:34:42 -0400
Received: by mail-wm0-x230.google.com with SMTP id t201so15504782wmt.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 03 Aug 2017 06:34:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=59PSG4wWri4zPymttcYuGheUAnHUWL8yL7O6adG6xe8=;
 b=POslG5i6rYadiAyX6M9U9tTl3D8CxmVtgw2VbsghPWh2ZJO385DcFARfJgrJ031SPw
 KlRFpubGipJ5pHQDX8zQiOsMUACzbSFpPrnli5FzFkNtwKlvzLFMB9ps8ZrFazW2YhuM
 rFs0dvg1dAg1q408PC2R5MgsN8nvgvEEam/u+IYpasWTOr7Psd6ow4Jfx4sz6XPTiaaT
 0INHinel7CnovCYyONaOljWCBEMGVRQFqYPiA0LKL5UxQa2bjmWX6WLp+36goF1Hjn5s
 8VxNFZYi+RmecUDnRZTHko9+D2v1XRh6q+vII0ii8HEhtQ2LKWOusW1N2i8mxtvK2oSF
 YGiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=59PSG4wWri4zPymttcYuGheUAnHUWL8yL7O6adG6xe8=;
 b=NiwJ3NEEY2VVQzSyUanVOT0LPxgGBuC4HH3A6jmQ5OHsbP9aIWwmL4wSOaluVUebL5
 M915u++YHnPcPHms+ZZIVZR2auEqoJhG8+uQUxjjQiRR8Ngb3CfnRNIsDheKA2sKGIiw
 IHParr8ngjYnBgOYd6Hms6h0TEF6z7mgsDh0wDGhrrUtZq8h9l/IsLSi1VKww9uE/pNo
 nbx17HcC2yZoP0nw5CYlLbRFBaKtfhcv/5/tVJsPZqSTmSMFk1brKrhWKsTr9Gc93ta3
 TkysicVSu5Qg/mlDg9wwOkLdmg8t4nGB2T7F5z4nPdQ84gPd1rgGEwNITSMnNEL3LSxQ
 ugUg==
X-Gm-Message-State: AHYfb5jA5RNp4FCa4pso/rsj/L3mP8a2U9rIrfP8TtEjBBZF9ejedekc
 0kd+BeeGdtHbmZ81kWZTf/9+QsEuh9NY
X-Received: by 10.28.191.14 with SMTP id p14mr1536139wmf.64.1501767279139;
 Thu, 03 Aug 2017 06:34:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.216.78 with HTTP; Thu, 3 Aug 2017 06:34:38 -0700 (PDT)
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Thu, 3 Aug 2017 15:34:38 +0200
Message-ID: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Severity: wishlist

Hi,

I'd like to ask for a feature which I'm used to in other text editors
like notepad and notepad++ on MS-Windows (I think many other editors
may have it too).

I'd like to be able to configure Emacs so that scroll commands _never_
move point (cursor) from its _buffer_ location.

That could lead to situations where the point/cursor is not visible
(it is out of the visible portion of text).  In that situations, any
command which moves the cursor/point (e.g. C-f) or changes buffer text
should trigger an auto-scroll to get the point/cursor back to the
visible area (window), preserving its _buffer_ location.

That feature could be enabled by giving some special value (e.g.
'never) to the variable "scroll-preserve-screen-position".

I don't know how complex is that to implement, but I think some users
may like it.

--
Dani Moncayo

In GNU Emacs 26.0.50 (build 1, x86_64-unknown-cygwin)
 of 2017-07-24 built on ZVDES404
Repository revision: 6dc5d45c542a6f9cfbcf3e37d597c9e0efb3070d
Windowing system distributor 'Microsoft Corp.', version 6.3.9600

Configured using:
 'configure --with-mailutils --with-w32'

Configured features:
SOUND ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: C.ISO-8859-1
  locale-coding-system: iso-latin-1-unix




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Dani Moncayo <dmoncayo@HIDDEN>
Subject: bug#27932: Acknowledgement (26.0.50; Feature request: prevent
 scroll commands from changing the buffer location of point)
Message-ID: <handler.27932.B.150176729229365.ack <at> debbugs.gnu.org>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
X-Gnu-PR-Message: ack 27932
X-Gnu-PR-Package: emacs
Reply-To: 27932 <at> debbugs.gnu.org
Date: Thu, 03 Aug 2017 13:35:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 27932 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
27932: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27932
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 03 Aug 2017 16:44:02 +0000
Resent-Message-ID: <handler.27932.B27932.150177860514400 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150177860514400
          (code B ref 27932); Thu, 03 Aug 2017 16:44:02 +0000
Received: (at 27932) by debbugs.gnu.org; 3 Aug 2017 16:43:25 +0000
Received: from localhost ([127.0.0.1]:40284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddJDY-0003kC-Si
	for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 12:43:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42271)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ddJDX-0003k0-LC
 for 27932 <at> debbugs.gnu.org; Thu, 03 Aug 2017 12:43:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ddJDN-00060z-1a
 for 27932 <at> debbugs.gnu.org; Thu, 03 Aug 2017 12:43:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37208)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ddJDM-00060u-VH; Thu, 03 Aug 2017 12:43:12 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3478
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ddJDM-0006vi-Ck; Thu, 03 Aug 2017 12:43:12 -0400
Date: Thu, 03 Aug 2017 19:42:59 +0300
Message-Id: <83tw1oy54c.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 (message from Dani Moncayo on Thu, 3 Aug 2017 15:34:38 +0200)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Dani Moncayo <dmoncayo@HIDDEN>
> Date: Thu, 3 Aug 2017 15:34:38 +0200
> 
> I don't know how complex is that to implement

It would require a complete rewrite of most of the display engine
code.  The Emacs display engine is based on the principle that point
should always be visible, so whenever it becomes invisible, Emacs
scrolls the window to make it visible again.  The display code checks
this in many places, and they all will need to be changed in some, yet
unspecified, way.

Emacs provides the mark and "C-x C-x" as a way to jump between two
locations without requiring the feature you describe.  If the purpose
of what you want is some other use case, I think it would be good to
have it described.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: martin rudalics <rudalics@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 03 Aug 2017 17:57:02 +0000
Resent-Message-ID: <handler.27932.B27932.150178301720876 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>, 27932 <at> debbugs.gnu.org
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150178301720876
          (code B ref 27932); Thu, 03 Aug 2017 17:57:02 +0000
Received: (at 27932) by debbugs.gnu.org; 3 Aug 2017 17:56:57 +0000
Received: from localhost ([127.0.0.1]:40332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddKMj-0005Qd-Ho
	for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 13:56:57 -0400
Received: from mout.gmx.net ([212.227.17.21]:60467)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1ddKMh-0005QE-MN
 for 27932 <at> debbugs.gnu.org; Thu, 03 Aug 2017 13:56:56 -0400
Received: from [192.168.1.100] ([46.125.250.81]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lomql-1dA41i17EZ-00gsFm; Thu, 03
 Aug 2017 19:56:49 +0200
Message-ID: <598363D6.4000904@HIDDEN>
Date: Thu, 03 Aug 2017 19:56:38 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
In-Reply-To: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:qFBs0sRswVqiT26HxHiLvnEoihC0LC4gRTmK9/T+bXujPLcdvBM
 qwja+NDSCjQsivbF8QDltolpnZdQk23zpRE4iq4OcNynEgtiKp1lRHOM5QqEhMeY5gYGjFl
 VQbrw2mrU78jQLDpzuia6fFTr+MahjDXrzcnqCdMiPJO7vUXp5KXXgnHwLwu6cOFDfzXBfK
 POEM+b3sU9fw9CNg45Bfw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:TTJlIv5ZlF0=:sHAP46/oPPr6akPAYvTfUJ
 NHnO5fHTUPwhLnCPE3A2QcAygvdJQSV34cvHaf3gz2iSBb+ezcQFuvme/FPtkmZQesz8Q9vr9
 A4lCQ/oPN0K00LlaFjtKdr3WpIHEv9nNI6VUe7KkVIdjAwkw7lbeYO8h1F5TmmS4cLVehRZZ8
 gQgcUuzVxwPqw6O411blGD7hbYjkFSZ3tz/A7izQrar93BR+Vyxm/dZCzEEXHwBQ1uYhKyLRQ
 JMINz5Xnyn+OI+vhjpScnzr2ZcUDIqWUH45c3RRg1xP3f4eGHLUrS3I+3sbB4U6CFzPTFtO9a
 DZGgcNJ7/90sdSY2IyK1+A04G3uhrj0uzYSncSJSHGB1fkshIQWCLEyhw5MWQ83f/MwN5HbYl
 X8fvf7zswFQqGBeMjRRltHpI+HiMuQ7DFJ8MHhvscq1Ky50OZbAaffZg0OQSjWYuo8FzH+Lq9
 sKwUeSluGgtgk1hDRNMgtrWod6Gcg0zTnKZwe9EprLxSETsn6utaFld7DxwZZ+0n8rC+e5+Fa
 ySI9rZ/7OCY5/fhXEuz0RZguEPeooh2Zz9b47QUB0/FYiuSamiG2khzRKsI36FpFqNv8t6zH4
 VA/apGBT61mLz/OJHr77PsXy1vgJ3KP9R6lD6sC79w+tHH6gWi297Dtq1Cl4rs150CQO2lF62
 caBkYNz1RDs79nsn/m8BPa8mQ6fUrHH599lCSrynlaSbx6TAGZfr3LA5Z7WTVuh8tGkK9gb9w
 BOROE3TxhijRO2Mz0/UqHv9IsK0kuImjBkjiSIZapIwhRZczEssyreDj3lMUfKT67Oc/QTCFS
 hhjO57S4WPq7aqm1r0ODVK3bwMLdLEdIzGH+TR/sxa7vE/8Av/KqlYZGJkkoe7rejsbO+zN
X-Spam-Score: -0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

 > I'd like to be able to configure Emacs so that scroll commands _never_=

 > move point (cursor) from its _buffer_ location.
 >
 > That could lead to situations where the point/cursor is not visible
 > (it is out of the visible portion of text).  In that situations, any
 > command which moves the cursor/point (e.g. C-f) or changes buffer text=

 > should trigger an auto-scroll to get the point/cursor back to the
 > visible area (window), preserving its _buffer_ location.
 >
 > That feature could be enabled by giving some special value (e.g.
 > 'never) to the variable "scroll-preserve-screen-position".
 >
 > I don't know how complex is that to implement, but I think some users
 > may like it.

=E2=80=98scroll-restore-mode=E2=80=99 in ELPA should "in principle" emula=
te that.  But
it has its quirks.

martin





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Tak Kunihiro <homeros.misasa@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 00:08:01 +0000
Resent-Message-ID: <handler.27932.B27932.150180523020854 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150180523020854
          (code B ref 27932); Fri, 04 Aug 2017 00:08:01 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 00:07:10 +0000
Received: from localhost ([127.0.0.1]:40542 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddQ90-0005QH-5n
	for submit <at> debbugs.gnu.org; Thu, 03 Aug 2017 20:07:10 -0400
Received: from mail-pf0-f194.google.com ([209.85.192.194]:35644)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <homeros.misasa@HIDDEN>) id 1ddPLq-0004HQ-Ct
 for 27932 <at> debbugs.gnu.org; Thu, 03 Aug 2017 19:16:22 -0400
Received: by mail-pf0-f194.google.com with SMTP id j68so133062pfc.2
 for <27932 <at> debbugs.gnu.org>; Thu, 03 Aug 2017 16:16:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Ejigz6lSVopI8zrvioLYrobGa4pxOL6hrFzoXp8IWto=;
 b=adrUs9hOU/H558FLDZMe0X8KZ2nG+2/acPiUbXLpklmzAcgEUqRt+YkzRl5W6Y3+uI
 10m/FRVuQVwum2mQGD1gS5cYXOr+J1/UTVpBZ5faolBP9z34wL8tu0AI3CKiXXO775bu
 bUngQv/SdhS6fjyjfyFwe9SaY4lcN17UKEnl9AF9G0nXU9c1Cxutgby2QtXdtWlvc7qL
 V3zevw6X98PiE53qpc9ch18ppyoFe716I5/3AFEFoSmLYWh1bPjR2lZLpk9FFKCjbi+r
 LiIji2Oh2tvEGdBlwEa059vISwcJkfz0wonCtEkFAlzSdzvYCRkSWwi5sg21JfyBO2XK
 CPOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=Ejigz6lSVopI8zrvioLYrobGa4pxOL6hrFzoXp8IWto=;
 b=S+DKDmOrrdt81h/Fcb98QG01lfTPCkWhF0p2ZWJb9EVWDDab45lNH0J2lLHq1UCI8E
 oYZ4/GrB8YoxGnsmIfMfLndzetV6U/iuV0Vi9nGsXDPKItoMi3tfUk1JJTVCuL6RzJ1r
 HVEt+LYr+9tSpcQJPL4u6mlpcs91PyQORPg+io8tZqdSwTcj2uWYaHecXfwAhSWeBdSO
 IHZpHNCtvDl97Sj7bEOeAkb/6hYTdSDaYQDnQwT0w1jV/R8uEV51SEgLMr/5Hc2JRtDt
 JkqVjfvfAwmIeSBKF5u6/7PgkGj/+9FZUj+pq8b6IW60Qy9VdWc2pJ3mfcoEQ+oQvvFs
 JwkQ==
X-Gm-Message-State: AIVw11052xNY8x9kyjp9KU4WYXK4gF58QO+214qxZWzete/t20T6lrX1
 4cgccdLdK9fhr7SZ
X-Received: by 10.99.98.69 with SMTP id w66mr420563pgb.58.1501802176510;
 Thu, 03 Aug 2017 16:16:16 -0700 (PDT)
Received: from thankless (vesta.misasa.okayama-u.ac.jp. [150.46.48.154])
 by smtp.gmail.com with ESMTPSA id d5sm106092pfc.110.2017.08.03.16.16.15
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 03 Aug 2017 16:16:15 -0700 (PDT)
From: Tak Kunihiro <homeros.misasa@HIDDEN>
X-Google-Original-From: Tak Kunihiro <tkk@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
Date: Fri, 04 Aug 2017 08:16:12 +0900
In-Reply-To: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN> (Dani
 Moncayo's message of "Thu, 3 Aug 2017 15:34:38 +0200")
Message-ID: <86ini4s0n7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Mailman-Approved-At: Thu, 03 Aug 2017 20:07:09 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

I have a similar wish.

Without revision of engine I think you can (1) restore point, (2)
preserve region, and (3) extend region.

Those can be implemented in following steps.
 (a) Call minor mode by mouse wheel,
 (b) Store point and region, then
 (c) Restore point when the minor mode is turned off.

One idea to preserve region is to use secondary.  I am waiting for a
patch to be processed.

 http://lists.gnu.org/archive/html/bug-gnu-emacs/2017-06/msg00938.html

-- 
Tak Kunihiro





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 06:16:02 +0000
Resent-Message-ID: <handler.27932.B27932.150182734521256 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Tak Kunihiro <homeros.misasa@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150182734521256
          (code B ref 27932); Fri, 04 Aug 2017 06:16:02 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 06:15:45 +0000
Received: from localhost ([127.0.0.1]:40714 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddVtg-0005Wl-RY
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:15:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52257)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ddVtf-0005WY-EQ
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:15:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ddVtW-0002Cg-60
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:15:38 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37881)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ddVtW-0002CU-27; Fri, 04 Aug 2017 02:15:34 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4205
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ddVtV-0000EB-3a; Fri, 04 Aug 2017 02:15:33 -0400
Date: Fri, 04 Aug 2017 09:15:22 +0300
Message-Id: <83h8xnyi2t.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <86ini4s0n7.fsf@HIDDEN> (message from Tak
 Kunihiro on Fri, 04 Aug 2017 08:16:12 +0900)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <86ini4s0n7.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Tak Kunihiro <homeros.misasa@HIDDEN>
> Date: Fri, 04 Aug 2017 08:16:12 +0900
> Cc: 27932 <at> debbugs.gnu.org
> 
> I have a similar wish.
> 
> Without revision of engine I think you can (1) restore point, (2)
> preserve region, and (3) extend region.

How is this different from mark-related features, starting with "C-x C-x"?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 06:35:02 +0000
Resent-Message-ID: <handler.27932.B27932.150182845923053 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150182845923053
          (code B ref 27932); Fri, 04 Aug 2017 06:35:02 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 06:34:19 +0000
Received: from localhost ([127.0.0.1]:40726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddWBf-0005zk-9X
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:34:19 -0400
Received: from mail-wm0-f43.google.com ([74.125.82.43]:38431)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1ddWBe-0005zM-1m
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:34:18 -0400
Received: by mail-wm0-f43.google.com with SMTP id m85so11836696wma.1
 for <27932 <at> debbugs.gnu.org>; Thu, 03 Aug 2017 23:34:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=xSOvHsfY/I7Xw1ygCsfM9EJHLdrsNtNPB6t97BfTh2E=;
 b=rVPZOGUu4vTAhaySVVHdt7gUCTzqQwW+oUgQaq1u+HhVSEnXHnMxkOy71LYo77cqsf
 3q3oaItUelRnzbaA9wopzKPo14w5tPGXSXs429BzQpUwR9B55UqwXLNR7lP1dRuU9BJT
 5q0/WdrftJcrmqu7/alV3NTXhgWK+MPtYMVFFvMDoMmxqrO//DgczOstgnF3Dbu8WThE
 bDWLtBmbryeXKfR1dTQLXPM5RNfnGZCtLEaV4a3RkIV/d9B8Z/hI28vn23PbP0mv24+D
 r2VnXoIjtNp0ekgrFbN8ov4FJRK6gCS4/3NNVpw4be1pZZbc5tjqo72pm3jajzzAOtzJ
 FD+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=xSOvHsfY/I7Xw1ygCsfM9EJHLdrsNtNPB6t97BfTh2E=;
 b=fELX4NQoF/Czhn4IenB+LFKbH7kX7gcQ9Px+MDTua0YgGWGVsmPwfIOaGnQ0uTRs/F
 o5pf18qJj0AZ0v6W3H/+8ayq4mdw7V1NKFkjE4Rm6cGmU11mkbi94Ljo6e6ffqvCaCIG
 YHhyQ6x/wqdgON8RVtEczaoixufLVqV5dzMT7pIHRRcH9Bfpjg5XwAjFg1UcFGolA6y7
 Hud+/00rYYGVfaBbaNTwkeXONmU07BmUar/jkEfx1M4V3GzU604aTleqxDMxiE7kyX/z
 Dx7+xEd2Owh3EYgTQ+0WrAHuIjie0FFWYq0XY7ZBo0QZdN2jWNnUNS6hrcUVF0a8/5vB
 ncGA==
X-Gm-Message-State: AHYfb5giiaNvzHLsN0OklJrZsAEmrsvbmvDHjdijU/C65sbRJomdWGFC
 68WHVeCTuwujzvRlHnpEHeaA6YLgWw==
X-Received: by 10.28.55.193 with SMTP id e184mr607026wma.75.1501828452316;
 Thu, 03 Aug 2017 23:34:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.216.78 with HTTP; Thu, 3 Aug 2017 23:34:11 -0700 (PDT)
In-Reply-To: <83ini3yi49.fsf@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN>
 <CAH8Pv0gjYZZAfciNTaqKcj37C51dSdJOzD+4AZFFY2wjOu6Fgg@HIDDEN>
 <83ini3yi49.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Fri, 4 Aug 2017 08:34:11 +0200
Message-ID: <CAH8Pv0j2rp6_NQ7Cmd_5ok7PW0RVvv0oRM4Vyj9aQkTboucK=w@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Fri, Aug 4, 2017 at 8:14 AM, Eli Zaretskii <eliz@HIDDEN> wrote:
> [Did you really mean to make this a private email?]

Oh no.  Sorry.  I'm adding the ticket address back.

>> > It would require a complete rewrite of most of the display engine
>> > code.  The Emacs display engine is based on the principle that point
>> > should always be visible, so whenever it becomes invisible, Emacs
>> > scrolls the window to make it visible again.  The display code checks
>> > this in many places, and they all will need to be changed in some, yet
>> > unspecified, way.
>>
>> I was afraid of the above.  Well it's your call to judge if this is worth it.
>
> I don't have anything against coding such a feature, but I myself
> won't be doing that any time soon, if ever.  It's just a too large
> project for my resources, and my motivation for doing this is zero,
> since I'm always annoyed by this behavior I find in MS Word.

I see.   :-(   :-)

>> > Emacs provides the mark and "C-x C-x" as a way to jump between two
>> > locations without requiring the feature you describe.  If the purpose
>> > of what you want is some other use case, I think it would be good to
>> > have it described.
>>
>> I can see several benefits in the requested feature:
>> * To have a way to explore a buffer without seeing a distracting
>> cursor jumping around.
>
> "Distracting cursor"?  If it distracts you, you can make it a bar
> instead of a block.

I want the cursor to be a block, so I can spot it easily on the
screen.  But I don't want to see it when I'm doing a "exploring trip"
in the buffer.

>> * To have a behavior which is standard in may other editors (where the
>> position of the cursor wrt the text is not altered by scrolling
>> commands).
>
> That's not a reasoning for the feature, because it doesn't provide any
> rationale in terms of utility.

Well, the point is that the requested behavior is a standard one among
many other editors.  I think this is something relevant to consider.

>> * To have an intuitive, quick and convenient way to explore the
>> neighborhood of point (e.g. using C-v, M-v or the mouse-wheel) and
>> then "return" (move the viewport back) to the point.
>
> How is this different from "C-x C-x"?

Well, it is similar, but "C-x C-x" requires you to push the mark
before you leave.  And users with little experience in Emacs may be
used to this workflow from their experience in other editors.

-- 
Dani Moncayo




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Tak Kunihiro <homeros.misasa@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 06:40:01 +0000
Resent-Message-ID: <handler.27932.B27932.150182876623490 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Tak Kunihiro <homeros.misasa@HIDDEN>, 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150182876623490
          (code B ref 27932); Fri, 04 Aug 2017 06:40:01 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 06:39:26 +0000
Received: from localhost ([127.0.0.1]:40730 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddWGb-00066o-VX
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:39:26 -0400
Received: from mail-pg0-f66.google.com ([74.125.83.66]:33974)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <homeros.misasa@HIDDEN>) id 1ddWGZ-00066b-Lr
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 02:39:24 -0400
Received: by mail-pg0-f66.google.com with SMTP id y192so951610pgd.1
 for <27932 <at> debbugs.gnu.org>; Thu, 03 Aug 2017 23:39:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=oIPNoOeygAYetnbpHFcQc6icMqhQaAmlLHX0Gs3hGao=;
 b=l8WdxdiJV2y84KbU1XclPP5tNC82NXl3GwC2a+zdIsBwk/K/tRL8/HFUVPi06S0GLN
 5sXu9vdfzEiK6PYEgpEUcgf5acqxDYywrc2xn9L79sx0RTp3Lw1q1i9HxIbMIFYEhbOC
 zPiqOMa2NKw/Nd2X2z4Zg9rSiBOVvCqUPUtYOxOHTyKtp0ns/T2OB3eiAwyQEmj3QRza
 2Jb1FLI41+uFaKxm1nOloJhPUYqvSpUH7q4K1CYsAMlHd4rIfAamJnrv1LqaQ+BioOjZ
 IQEto/jSKeVLxmpbAR3yY1OguSTbeKCNeQ8vm2o/Br+pq1tzizf4L5BhVvrZDR3giPz6
 /GiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=oIPNoOeygAYetnbpHFcQc6icMqhQaAmlLHX0Gs3hGao=;
 b=o0p0yXU0N29krHypGW+jqRWselu5a6UEuurWjHO8KBP46YYG65QeEXJSJslg53AoAO
 39X7unli3N2URUTygn11vS0b24AJaRnN4taH6A2VVSMX2tJFeTeej57QFPFecSgCZfIZ
 g1E/YEvQp8aWzonaP5qTb3RBoTtRo1BloVhcMFzoS+wUoicLYVOneVTi15upKFI+fUrB
 wd9c8mBftIptkeZ3yVRYSEh1F7aVf4jNcOh5yO1pV+4Cy0+drN4gM2/dubL8IMbpwqx5
 eSpfmF6izDyUI9nx3WmeZ1ELjGsFvH2pS5alMjbuJ3AinVGxs5STdm8aGcqUb2knmWcK
 SCcg==
X-Gm-Message-State: AIVw113VNHtTi8pJIRP4DtZ+5ezPc7gHvehCxIg0kXFoI60lgVJHdwwa
 2EZs6aoSMqDQPdvj
X-Received: by 10.99.120.68 with SMTP id t65mr1369438pgc.104.1501828757770;
 Thu, 03 Aug 2017 23:39:17 -0700 (PDT)
Received: from tourbillon.local (vesta.misasa.okayama-u.ac.jp. [150.46.48.154])
 by smtp.gmail.com with ESMTPSA id u186sm1511481pfu.82.2017.08.03.23.39.16
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 03 Aug 2017 23:39:17 -0700 (PDT)
From: Tak Kunihiro <homeros.misasa@HIDDEN>
X-Google-Original-From: Tak Kunihiro <tkk@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <86ini4s0n7.fsf@HIDDEN> <83h8xnyi2t.fsf@HIDDEN>
Date: Fri, 04 Aug 2017 15:39:07 +0900
In-Reply-To: <83h8xnyi2t.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 04 Aug
 2017 09:15:22 +0300")
Message-ID: <m1k22j7s6s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

>> I have a similar wish.
>>
>> Without revision of engine I think you can (1) restore point, (2)
>> preserve region, and (3) extend region.
>
> How is this different from mark-related features, starting with "C-x C-x"?

"C-x C-x" requires mark.  Also "C-x C-x" changes scope in buffer.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 08:02:01 +0000
Resent-Message-ID: <handler.27932.B27932.150183370130739 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Tak Kunihiro <homeros.misasa@HIDDEN>
Cc: homeros.misasa@HIDDEN, 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150183370130739
          (code B ref 27932); Fri, 04 Aug 2017 08:02:01 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 08:01:41 +0000
Received: from localhost ([127.0.0.1]:40777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddXYC-0007zj-Ro
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 04:01:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38932)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ddXYB-0007zW-40
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 04:01:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ddXXu-000636-DS
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 04:01:34 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52026)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ddXXu-00062r-9C; Fri, 04 Aug 2017 04:01:22 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4246
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ddXXs-0004Kw-Qz; Fri, 04 Aug 2017 04:01:21 -0400
Date: Fri, 04 Aug 2017 11:01:10 +0300
Message-Id: <83efsryd6h.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <m1k22j7s6s.fsf@HIDDEN> (message from Tak
 Kunihiro on Fri, 04 Aug 2017 15:39:07 +0900)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <86ini4s0n7.fsf@HIDDEN> <83h8xnyi2t.fsf@HIDDEN>
 <m1k22j7s6s.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Tak Kunihiro <homeros.misasa@HIDDEN>
> Cc: Tak Kunihiro <homeros.misasa@HIDDEN>,  dmoncayo@HIDDEN,  27932 <at> debbugs.gnu.org
> Date: Fri, 04 Aug 2017 15:39:07 +0900
> 
> >> I have a similar wish.
> >>
> >> Without revision of engine I think you can (1) restore point, (2)
> >> preserve region, and (3) extend region.
> >
> > How is this different from mark-related features, starting with "C-x C-x"?
> 
> "C-x C-x" requires mark.

Most commands that go far away do leave mark where they were invoked.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Tak Kunihiro <homeros.misasa@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 10:35:01 +0000
Resent-Message-ID: <handler.27932.B27932.150184285312090 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Tak Kunihiro <homeros.misasa@HIDDEN>, 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150184285312090
          (code B ref 27932); Fri, 04 Aug 2017 10:35:01 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 10:34:13 +0000
Received: from localhost ([127.0.0.1]:40916 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddZvp-00038w-6s
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 06:34:13 -0400
Received: from mail-pf0-f193.google.com ([209.85.192.193]:37031)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <homeros.misasa@HIDDEN>) id 1ddZvm-00038i-VK
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 06:34:11 -0400
Received: by mail-pf0-f193.google.com with SMTP id p13so1492643pfd.4
 for <27932 <at> debbugs.gnu.org>; Fri, 04 Aug 2017 03:34:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=C2q/BZQKBXLAjADEH/EfRmidq6v/5hKQYPXAv7ufIzQ=;
 b=ZwvFXSmtIQxD60LEfj4ptypxuTHqjWRiabYToavNbN9WcAqKlHFItRutk9tlCQT0Ep
 8A2HQorRh57kbJLpLIDNuIxrywUmDEMZv/snVUJazk2EaIyRtRT+HSYb22EjQIlaV1a7
 LxoDnLnR4I0FJfnP2RJzrWAvsIvUhzSGR6hxTseLgRATIt3Pp3lpXETdOzvWN8/kS0wk
 oyzfaIWsZhKq56x10M1Km4N8Jo0H7uQyJSI7GPj05AfcX2YgztSWZMXr7jVjUjOPXFsq
 DNSUjBk4b80oLSiFqcYHlyNxKZRTHsVsJRFXktNPW9DPvXD95C9KLnfSL42Nj8gpDIJn
 mj2Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=C2q/BZQKBXLAjADEH/EfRmidq6v/5hKQYPXAv7ufIzQ=;
 b=B+LEbo00Oy1/PtKalGQyynlIG/fmK+qRBDheXD7CrCbkL2FTj9y9OMv8wsUZ5DTGEN
 hFVt+VA9JaaSuELNc25+k/ibn648PXQ3mV/8+fC35yf6QGvHr5FwupJsynaAQiWnUUWC
 5eQvAxOEkM6a6nGnHu2rtZypTeYFJvIub0awBjN4FJnJ8bhIjkVqLS3U1Yk+PFU0EPZQ
 c2EprWqAtpP4N0lXuHQ+l+WUNcSkMz9DRR1Rlmo3zkkAOyxPuJnSijK0DucDTjMM5Ryp
 NBkp2YUSo98eFteSgXcQFKzOljpkQhzAGZe3DWwm0GgB60hGRHGIiVPrz08Nyf47xwS0
 OWyg==
X-Gm-Message-State: AIVw111KiqRf/7NPoiFa/mgJkX1Z7jda3Xq038xawhQSShUcvPB4HAi8
 Gis5eVNBJBPo2Qpa
X-Received: by 10.99.126.86 with SMTP id o22mr1750966pgn.381.1501842845046;
 Fri, 04 Aug 2017 03:34:05 -0700 (PDT)
Received: from tourbillon.local (vesta.misasa.okayama-u.ac.jp. [150.46.48.154])
 by smtp.gmail.com with ESMTPSA id 80sm2442134pfr.90.2017.08.04.03.34.03
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 04 Aug 2017 03:34:04 -0700 (PDT)
From: Tak Kunihiro <homeros.misasa@HIDDEN>
X-Google-Original-From: Tak Kunihiro <tkk@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <86ini4s0n7.fsf@HIDDEN> <83h8xnyi2t.fsf@HIDDEN>
 <m1k22j7s6s.fsf@HIDDEN> <83efsryd6h.fsf@HIDDEN>
Date: Fri, 04 Aug 2017 19:33:59 +0900
In-Reply-To: <83efsryd6h.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 04 Aug
 2017 11:01:10 +0300")
Message-ID: <m1wp6jei5k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

>> >> I have a similar wish.
>> >>
>> >> Without revision of engine I think you can (1) restore point, (2)
>> >> preserve region, and (3) extend region.
>> >
>> > How is this different from mark-related features, starting with "C-x C-x"?
>> 
>> "C-x C-x" requires mark.
>
> Most commands that go far away do leave mark where they were invoked.

I agree.  Command in my mind that does not leave mark was mwheel-scroll.
Also C-v and M-v do not leave mark.  I think they should not.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Richard Stallman <rms@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Aug 2017 21:37:01 +0000
Resent-Message-ID: <handler.27932.B27932.150188257920251 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: rms@HIDDEN
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150188257920251
          (code B ref 27932); Fri, 04 Aug 2017 21:37:01 +0000
Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 21:36:19 +0000
Received: from localhost ([127.0.0.1]:42086 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddkGZ-0005GZ-Ie
	for submit <at> debbugs.gnu.org; Fri, 04 Aug 2017 17:36:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1ddkGW-0005GL-VP
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 17:36:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1ddkGR-0001HX-5h
 for 27932 <at> debbugs.gnu.org; Fri, 04 Aug 2017 17:36:11 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50221)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1ddkGN-0001Fc-Rb; Fri, 04 Aug 2017 17:36:07 -0400
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1ddkGN-0000cn-0D; Fri, 04 Aug 2017 17:36:07 -0400
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
In-reply-to: <83tw1oy54c.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 03
 Aug 2017 19:42:59 +0300)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN>
Message-Id: <E1ddkGN-0000cn-0D@HIDDEN>
Date: Fri, 04 Aug 2017 17:36:07 -0400
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > It would require a complete rewrite of most of the display engine
  > code.  The Emacs display engine is based on the principle that point
  > should always be visible, so whenever it becomes invisible, Emacs
  > scrolls the window to make it visible again.

I don't think the change would be terribly hard.  One would have to
find the places that insist on putting point on the screen, but I
think the changes required in each of those places would not be big.

If someone wants to try it, I encourage per to try it.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 05 Aug 2017 06:46:01 +0000
Resent-Message-ID: <handler.27932.B27932.15019155346837 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: rms@HIDDEN
Cc: 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.15019155346837
          (code B ref 27932); Sat, 05 Aug 2017 06:46:01 +0000
Received: (at 27932) by debbugs.gnu.org; 5 Aug 2017 06:45:34 +0000
Received: from localhost ([127.0.0.1]:42372 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ddsq6-0001mB-3A
	for submit <at> debbugs.gnu.org; Sat, 05 Aug 2017 02:45:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57620)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ddsq4-0001ly-Ab
 for 27932 <at> debbugs.gnu.org; Sat, 05 Aug 2017 02:45:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ddspw-0003Zy-4h
 for 27932 <at> debbugs.gnu.org; Sat, 05 Aug 2017 02:45:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60404)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ddspw-0003Zh-1k; Sat, 05 Aug 2017 02:45:24 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1065
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ddspd-0007Z6-Eo; Sat, 05 Aug 2017 02:45:06 -0400
Date: Sat, 05 Aug 2017 09:44:57 +0300
Message-Id: <83mv7ewm1i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <E1ddkGN-0000cn-0D@HIDDEN> (message from Richard
 Stallman on Fri, 04 Aug 2017 17:36:07 -0400)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Richard Stallman <rms@HIDDEN>
> CC: dmoncayo@HIDDEN, 27932 <at> debbugs.gnu.org
> Date: Fri, 04 Aug 2017 17:36:07 -0400
> 
>   > It would require a complete rewrite of most of the display engine
>   > code.  The Emacs display engine is based on the principle that point
>   > should always be visible, so whenever it becomes invisible, Emacs
>   > scrolls the window to make it visible again.
> 
> I don't think the change would be terribly hard.  One would have to
> find the places that insist on putting point on the screen, but I
> think the changes required in each of those places would not be big.

The number of such places got a lot larger than it was when you were
more actively hacking Emacs, because over the years some users (Dani
included) requested more and more accuracy in that direction.

As for whether the changes in those places are hard, depends on how
well the person who'll do that understands what the code they are
looking at is doing, and why.  The answer might not always be obvious.

And then there are higher-level issues, like what does this mode mean
when scroll-conservatively is in effect.

> If someone wants to try it, I encourage per to try it.

Me too.  In fact, I'd encourage even smaller changes related to the
display code, so that we have more people who can make changes there
than we do now.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Richard Stallman <rms@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 05 Aug 2017 20:21:02 +0000
Resent-Message-ID: <handler.27932.B27932.15019644066974 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: rms@HIDDEN
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.15019644066974
          (code B ref 27932); Sat, 05 Aug 2017 20:21:02 +0000
Received: (at 27932) by debbugs.gnu.org; 5 Aug 2017 20:20:06 +0000
Received: from localhost ([127.0.0.1]:43726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1de5YK-0001oO-Qb
	for submit <at> debbugs.gnu.org; Sat, 05 Aug 2017 16:20:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33697)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1de5YJ-0001nq-GX
 for 27932 <at> debbugs.gnu.org; Sat, 05 Aug 2017 16:20:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rms@HIDDEN>) id 1de5YD-0008PQ-63
 for 27932 <at> debbugs.gnu.org; Sat, 05 Aug 2017 16:19:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56261)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
 id 1de5Y9-0008MG-6u; Sat, 05 Aug 2017 16:19:53 -0400
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1de5Y8-0000Ws-IM; Sat, 05 Aug 2017 16:19:52 -0400
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
In-reply-to: <83mv7ewm1i.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 05
 Aug 2017 09:44:57 +0300)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN>
Message-Id: <E1de5Y8-0000Ws-IM@HIDDEN>
Date: Sat, 05 Aug 2017 16:19:52 -0400
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > And then there are higher-level issues, like what does this mode mean
  > when scroll-conservatively is in effect.

Person could try it whichever way is easiest and see if person likes it.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 06 Aug 2017 17:20:02 +0000
Resent-Message-ID: <handler.27932.B27932.150203994512964 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: rms@HIDDEN
Cc: 27932 <at> debbugs.gnu.org, dmoncayo@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150203994512964
          (code B ref 27932); Sun, 06 Aug 2017 17:20:02 +0000
Received: (at 27932) by debbugs.gnu.org; 6 Aug 2017 17:19:05 +0000
Received: from localhost ([127.0.0.1]:44940 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dePCj-0003N2-AP
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2017 13:19:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39583)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1dePCi-0003MD-AS
 for 27932 <at> debbugs.gnu.org; Sun, 06 Aug 2017 13:19:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1dePCa-0007VW-0T
 for 27932 <at> debbugs.gnu.org; Sun, 06 Aug 2017 13:18:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42795)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1dePCZ-0007VS-TH; Sun, 06 Aug 2017 13:18:55 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3680
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1dePCS-0006lr-8J; Sun, 06 Aug 2017 13:18:48 -0400
Date: Sun, 06 Aug 2017 20:18:43 +0300
Message-Id: <83lgmwty18.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <E1de5Y8-0000Ws-IM@HIDDEN> (message from Richard
 Stallman on Sat, 05 Aug 2017 16:19:52 -0400)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Richard Stallman <rms@HIDDEN>
> CC: dmoncayo@HIDDEN, 27932 <at> debbugs.gnu.org
> Date: Sat, 05 Aug 2017 16:19:52 -0400
> 
>   > And then there are higher-level issues, like what does this mode mean
>   > when scroll-conservatively is in effect.
> 
> Person could try it whichever way is easiest and see if person likes it.

I was thinking about the person who will need to decide how to code
that.

In several places we behave under scroll-conservatively with the
explicit goal of keeping point visible in the very first/last
sufficiently-visible screen line: this might need to be changed if
keeping point visible is no longer a requirement.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 06 Aug 2017 21:01:01 +0000
Resent-Message-ID: <handler.27932.B27932.1502053247640 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, "Richard M. Stallman" <rms@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.1502053247640
          (code B ref 27932); Sun, 06 Aug 2017 21:01:01 +0000
Received: (at 27932) by debbugs.gnu.org; 6 Aug 2017 21:00:47 +0000
Received: from localhost ([127.0.0.1]:45027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1deSfH-0000AG-3m
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2017 17:00:47 -0400
Received: from mail-wm0-f44.google.com ([74.125.82.44]:35079)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1deSfF-0000A0-8f
 for 27932 <at> debbugs.gnu.org; Sun, 06 Aug 2017 17:00:45 -0400
Received: by mail-wm0-f44.google.com with SMTP id m85so54712705wma.0
 for <27932 <at> debbugs.gnu.org>; Sun, 06 Aug 2017 14:00:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=ryWF/wOxvnmxxtrJ/ng24TIi0UFNcVRdnj7H8BCjEU0=;
 b=GuQ3fedVefq8R7fSRrIlj7I9h8eVAyAO/I9bPGZZK/rVzgX8qFdz6i0/UkHOEqLWoT
 AwSu/nrWA8DIqaUGII+ZUeJ2gh2MbqPShOFZ+FIsw4AY6qXKKjocBHqm/imGhb2845Ar
 vQr+sKrBnz3P1qrC/RtTGyqJQriP2QWQAYJdnOc4ni3cltqOeqbnT22QYjelmB3pXCUu
 9VLIqaSIx8HYTqRYEBlJ/03+uGcHOBIdMWuIhdtA+fLVEkxZ+WXik5W96MTC17SeSKfo
 1GaoovNWA2sDRXtpuZsWV3yzQYc0WkOiTtXf71b3dzYKX4vAbWtz6OJ0Ed63dFH22rgk
 8GMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=ryWF/wOxvnmxxtrJ/ng24TIi0UFNcVRdnj7H8BCjEU0=;
 b=Da6YjbrnBa43C76LChijJ9Izos6MCbMUTuu6zPzV+fklMqY6jRzR/F7gIEg3DUm3ef
 2LLXVApVqc1XnwvR8t2KX5ueI9otEFCATr8b9eWJv8zJFkgAo0PiiB5RqSc/rOGfBn6t
 OkAJZqtufyTnESkzo9anFUgjlYgQ+UUB2qt7yUfAJB0Hm7JZZghxI1utlZeoRYO1qOBY
 B+q0kt7JehKWI0vZfrE2dNnNlPDRrG5bYQKq1stoLvbxKBf3IsRFG9srWwiMtcnFILS5
 pAMndt8qS7rQQ8IWvpv8UtTUi3OGtMv0K3M73GhJmuONXAMqe220igKuvAjBOk0bKZ/i
 DnXg==
X-Gm-Message-State: AHYfb5jQZ1jqkYu8phaG+HT0thpcmlB56ova1nbqBByL/7jdnQBmPFbd
 tZAtDOF/HFAx8eytHcez8G1tn0YW8gKb
X-Received: by 10.28.16.17 with SMTP id 17mr5090316wmq.1.1502053239431; Sun,
 06 Aug 2017 14:00:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.100.196 with HTTP; Sun, 6 Aug 2017 14:00:38 -0700 (PDT)
In-Reply-To: <83lgmwty18.fsf@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Sun, 6 Aug 2017 23:00:38 +0200
Message-ID: <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

> In several places we behave under scroll-conservatively with the
> explicit goal of keeping point visible in the very first/last
> sufficiently-visible screen line: this might need to be changed if
> keeping point visible is no longer a requirement.

Maybe I'm missing something, but I don't think that the
meaning/interpretation of 'scroll-conservatively' should be changed at
all, because AFAIK, that variable controls the auto-scroll triggered
by a point movement, and such auto-scroll would be equally necessary
with the proposed feature enabled (and should work equally).

-- 
Dani Moncayo




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 07 Aug 2017 02:30:02 +0000
Resent-Message-ID: <handler.27932.B27932.150207295711748 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, rms@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150207295711748
          (code B ref 27932); Mon, 07 Aug 2017 02:30:02 +0000
Received: (at 27932) by debbugs.gnu.org; 7 Aug 2017 02:29:17 +0000
Received: from localhost ([127.0.0.1]:45139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1deXnB-00033Q-0N
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2017 22:29:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59335)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1deXn9-00033B-RB
 for 27932 <at> debbugs.gnu.org; Sun, 06 Aug 2017 22:29:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1deXn0-0003XF-Nm
 for 27932 <at> debbugs.gnu.org; Sun, 06 Aug 2017 22:29:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48653)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1deXn0-0003X7-KC; Sun, 06 Aug 2017 22:29:06 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3893
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1deXmt-0005xC-KS; Sun, 06 Aug 2017 22:29:00 -0400
Date: Mon, 07 Aug 2017 05:28:55 +0300
Message-Id: <83ini0t8k8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
 (message from Dani Moncayo on Sun, 6 Aug 2017 23:00:38 +0200)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
 <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Dani Moncayo <dmoncayo@HIDDEN>
> Date: Sun, 6 Aug 2017 23:00:38 +0200
> Cc: "Richard M. Stallman" <rms@HIDDEN>, 27932 <at> debbugs.gnu.org
> 
> Maybe I'm missing something, but I don't think that the
> meaning/interpretation of 'scroll-conservatively' should be changed at
> all, because AFAIK, that variable controls the auto-scroll triggered
> by a point movement, and such auto-scroll would be equally necessary
> with the proposed feature enabled (and should work equally).

??? The proposed feature is that point could go off the view without
requiring any scrolling.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 07 Aug 2017 05:55:02 +0000
Resent-Message-ID: <handler.27932.B27932.1502085270509 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, "Richard M. Stallman" <rms@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.1502085270509
          (code B ref 27932); Mon, 07 Aug 2017 05:55:02 +0000
Received: (at 27932) by debbugs.gnu.org; 7 Aug 2017 05:54:30 +0000
Received: from localhost ([127.0.0.1]:45186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1deazl-000089-M1
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2017 01:54:29 -0400
Received: from mail-wr0-f177.google.com ([209.85.128.177]:35661)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1deazk-00007t-05
 for 27932 <at> debbugs.gnu.org; Mon, 07 Aug 2017 01:54:28 -0400
Received: by mail-wr0-f177.google.com with SMTP id k71so35236456wrc.2
 for <27932 <at> debbugs.gnu.org>; Sun, 06 Aug 2017 22:54:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=hzXEMPLzFlqUToSKiiRA2v8tizdTnzfYLZ02uvGUyFM=;
 b=j5qVIEM4V9/wXmMrRmzsT+Bk9nh3tcsTxAWDlx4srGH6vWXmlpA04OeFkmGVISgQ64
 xPFXpUtTiwgxtP1Zs4GgzI8PjmbMrpwnNNpiEKXBLJTP/Eu/uExsVEm+MJRshKgf41eo
 9ZHsgHvAcfq3v/bI6ZrtWcHR1R6WGwDHQmxrWL20iaK0S6HT1yo0IVe9wNIx2P+q3Z+M
 fdt2F66Xrp3vtVxISRNNeGI89sETT1m/cx1VUuQjrOLYprvy+w9cUMx3WNZY/VPf+xaU
 wUPvoZi5Hh4mNmOaJJuQWICHemu7bnRV1ZwFL5/dkt3hW29G40yfmewWzusicz0Q5m2W
 Kq1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=hzXEMPLzFlqUToSKiiRA2v8tizdTnzfYLZ02uvGUyFM=;
 b=GapIbwTuwtP9D+B3stxvhtlsakrLNXbfaA2NK1v+hq5Pf8HPPwi741Jtr7OexsfzpS
 Nu83kbiqwq/Xofj2KWJ/tfatm+8zUquVJKUGdnZrAMIGn/ij9+B2y80E6uO3errzmJze
 cy4pzhtQIpXE971utrdatq2Bn8dKDmGNal1Je14hHHhm9qXkhH3ex6q62FdjQfJ7n1UI
 3zngDfkz9apNwuBbCPE7hqDNM5d00B8iuhhGbGVaidtPDBaIrpA/MlkMEn/Osr/BI1Ed
 Z/b8yjkmvb5foVsfDb+KbcVNlcdIv7mpa/NcaVgDo+WZU4wrenOYvYk73+xNfc/kijWC
 BWfQ==
X-Gm-Message-State: AIVw113IcFL8e9KG+Dk8XKrS1mN437cAePSVHEcaRxKAeHT7e2riGjcx
 Tprrc0WgAeoioqY46ABB/n2KeJ6gSA==
X-Received: by 10.223.176.57 with SMTP id f54mr6722439wra.194.1502085262079;
 Sun, 06 Aug 2017 22:54:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.100.196 with HTTP; Sun, 6 Aug 2017 22:54:21 -0700 (PDT)
In-Reply-To: <83ini0t8k8.fsf@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
 <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
 <83ini0t8k8.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Mon, 7 Aug 2017 07:54:21 +0200
Message-ID: <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -2.8 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

>> Maybe I'm missing something, but I don't think that the
>> meaning/interpretation of 'scroll-conservatively' should be changed at
>> all, because AFAIK, that variable controls the auto-scroll triggered
>> by a point movement, and such auto-scroll would be equally necessary
>> with the proposed feature enabled (and should work equally).
>
> ??? The proposed feature is that point could go off the view without
> requiring any scrolling.

The proposed feature is that any _scrolling_command_ (e.g. C-v, M-v,
mouse-wheel, ...) should perform its scrolling without altering the
location of point (wrt its buffer).  But any command which changes
either the location of point (wrt its buffer) (e.g. "C-u 200 C-n" or
the buffer text should check whether the point is currently visible,
and if it isn't visible, it should trigger an auto-scroll to make
point visible (exactly as happens now).

In short: point movement should trigger auto-scrolling (as now), but
scrolling should not move point.

-- 
Dani Moncayo




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Tak Kunihiro <homeros.misasa@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 07 Aug 2017 12:33:02 +0000
Resent-Message-ID: <handler.27932.B27932.150210917724270 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 27932 <at> debbugs.gnu.org, "Richard M. Stallman" <rms@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150210917724270
          (code B ref 27932); Mon, 07 Aug 2017 12:33:02 +0000
Received: (at 27932) by debbugs.gnu.org; 7 Aug 2017 12:32:57 +0000
Received: from localhost ([127.0.0.1]:45335 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dehDM-0006JO-CE
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2017 08:32:56 -0400
Received: from mail-pg0-f67.google.com ([74.125.83.67]:33578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <homeros.misasa@HIDDEN>) id 1dehDK-0006JA-Py
 for 27932 <at> debbugs.gnu.org; Mon, 07 Aug 2017 08:32:55 -0400
Received: by mail-pg0-f67.google.com with SMTP id u185so306691pgb.0
 for <27932 <at> debbugs.gnu.org>; Mon, 07 Aug 2017 05:32:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=6aGMGQKbRu6QWVRbHoJLUDquMejT3Ovor9xO5n6b1s4=;
 b=Tt8fN/w3qcVBLkGRazx60IT8niIoaqNHofpPEHp76QSukf8QQflXavUOvzR88N4BgD
 KR2f5Lxvwahz+2pWl0zcNuVCthvsIpSx3Ij6vxAdlhMorbsymyYK9YdqsvR0JaAbcCwR
 /BikFPFJmj1tC/g+ZvygeSJ1yeJP6cOdVXxoNjot3v5HMg4kaAWFFyScxrseuiZad0KK
 NlWEmYJyX9ao0+KX8leZFIuEiim4LegKPfdYpGAv3llbomq9+CNrhLygtKdxFsitMWrD
 4V1tMnZtcDALteAbgF55LZ/CKMyTsuLHAI/z1CBrmngset+Wx40nybJ4z5QlIWj8shfi
 WNog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=6aGMGQKbRu6QWVRbHoJLUDquMejT3Ovor9xO5n6b1s4=;
 b=kaohfJApk0yt0Ia6+QOY9EBaov+kGEKPvX6yu+xa3JhwmEUgnDvK4gwYPUUC9/fdEI
 Cb9vX1yR3LkjlrjJeCPFGRJcvnjHomkZ7A+ccyx0se382Rhpo8MaO7wWq9/T6rOsCZX4
 C7FXCb7GiQhZ2OBcHKahtvFU6L31I/t2PG7Ss1CYoyrJGSgFWUt1In4agxjysNB3bKTO
 fiif5rbd09ZsfyeeSXXAshgQjjGACKAWic4g7Mw9Yf0ThiT3WmtPdGMETIMKmb5VCquB
 HLUiM10nzbqXjR00gRQFxO7SAc82UiR0Oy0Y3rhIC7+DCPlZjhEdOJzIj+x19IwO5osZ
 8shg==
X-Gm-Message-State: AHYfb5jwrsrPxr5YXxc6cOzzdPxdTyXFR2NdJ5jzHUnI1NL2iIUER1n0
 kl5GZFiA38Z4Sg==
X-Received: by 10.98.20.197 with SMTP id 188mr412063pfu.306.1502109168533;
 Mon, 07 Aug 2017 05:32:48 -0700 (PDT)
Received: from tourbillon.local (p219225-ipngn200207tottori.tottori.ocn.ne.jp.
 [153.182.218.225])
 by smtp.gmail.com with ESMTPSA id s8sm14568604pfd.77.2017.08.07.05.32.45
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 07 Aug 2017 05:32:47 -0700 (PDT)
From: Tak Kunihiro <homeros.misasa@HIDDEN>
X-Google-Original-From: Tak Kunihiro <tkk@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
 <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
 <83ini0t8k8.fsf@HIDDEN>
 <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN>
Date: Mon, 07 Aug 2017 21:32:41 +0900
In-Reply-To: <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN> (Dani
 Moncayo's message of "Mon, 7 Aug 2017 07:54:21 +0200")
Message-ID: <m17eyfpnh2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

> The proposed feature is that any _scrolling_command_ (e.g. C-v, M-v,
> mouse-wheel, ...) should perform its scrolling without altering the
> location of point (wrt its buffer).

I propose targeting mouse-wheel and scroll-bar-toolkit-scroll only, and
having a pseudo point.

This is in a middle, but I think building blocks are there.


;;; touchpad.el --- Scroll two dimensionally by touchpad

;; Copyright (C) 2017 Tak Kunihiro

;; Author: Tak Kunihiro <tkk@HIDDEN>
;; Package-Requires: ((emacs "26"))
;; Keywords: mouse
;; Version: 1.0

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with This program.  If not, see <http://www.gnu.org/licenses/>.

;; Usage:
;;
;; To interactively toggle the mode:
;;
;;   M-x touchpad-mode RET
;;
;; To make the mode permanent, put these in your init file:
;;
;;   (require 'touchpad)
;;   (touchpad-mode 1)

;;; Commentary:

;; Touchpad mode is a global minor mode which makes swiping touchpad
;; scroll smoothly.  This package disables `auto-hscroll-mode' during
;; scroll by the touchpad because of following two aspects.

;; (1) It should be off during vertical scroll.  Let=E2=80=99s consider a
;;     buffer with empty and long alternative lines and when point is
;;     at the end of a long line at the top of window.  After
;;     `scroll-up 1', point jumps to the beginning of the next empty
;;     line and you see scope shifts suddenly leftward.  This behavior
;;     is sometimes unexpected one.

;; (2) It should be off during horizontal scroll.  During horizontal
;;     scroll, you may scroll a little in vertical direction without
;;     intention.  The horizontal scroll should be tolerance against
;;     such perturbation.

;; After scroll by the touchpad, you want to set `auto-hscroll-mode'
;; back again otherwise too inconvenient for edition by the keyboard.
;;
;; Approach of this package is to turn on another minor-mode
;; `touchpad--view-mode' with `auto-hscroll-mode' nil, at the beginning
;; of `mwheel-scroll'.  The minor mode is turned off upon key input
;; from the keyboard that moves point.
;;
;; This package also converts point and region to
;; `mouse-secondary-start' and `mouse-secondary-overlay'.  When
;; `touchpad-restore-point-flag' is non-nil, point will be moved to
;; `mouse-secondary-start' when `touchpad--view-mode' is turned off.

;;; Code:

(require 'mwheel)

(defvar touchpad-restore-point-flag t
  "Restore point when `touchpad--view-mode' is turned off.")

(defvar touchpad--cursor-type cursor-type
  "Cursor used by user.
This variable is used internally to restore original `cursor-type'.")

(defvar touchpad--auto-hscroll-mode nil
  "Value of auto-hscroll-mode specified by user.
This variable is used internally to restore original `auto-hscroll-mode'.")

;;;###autoload
(define-minor-mode touchpad-mode
  "A minor mode to scroll text two dimensionally.
With a prefix argument ARG, enable Touchpad Mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
Touchpad Mode if ARG is omitted or nil."
  :init-value nil
  :group 'scrolling
  :global t
  :version "26.1"
  :keymap (let ((map (make-sparse-keymap)))
            ;; Extend primary by shift click
            (define-key map [S-down-mouse-1] 'ignore)
            (define-key map [S-mouse-1] 'mouse-save-then-kill)
            (if (not (eq system-type 'ms-dos))
                (global-set-key [C-S-down-mouse-1] 'mouse-appearance-menu))
            ;; Change size of font ize by wheel up and down
            (define-key map (kbd "<C-wheel-up>") 'touchpad-text-scale-incre=
ase)
            (define-key map (kbd "<C-wheel-down>") 'touchpad-text-scale-dec=
rease)
            map)

  (if touchpad-mode
      (progn
        (advice-add 'mwheel-scroll :before 'touchpad-enable--view-mode)
        ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00700=
.html
        ;; (add-hook 'mwheel-pre-scroll-hook 'touchpad-enable--view-mode)
        (advice-add 'ns-handle-scroll-bar-event :before 'touchpad-enable--v=
iew-mode)
        (advice-add 'scroll-bar-toolkit-scroll :before 'touchpad-enable--vi=
ew-mode)
        (setq mwheel-tilt-scroll-p t))
    (advice-remove 'mwheel-scroll #'touchpad-enable--view-mode)
    ;; (remove-hook 'mwheel-pre-scroll-hook 'touchpad-enable--view-mode)
    (advice-remove 'ns-handle-scroll-bar-event #'touchpad-enable--view-mode)
    (advice-remove 'scroll-bar-toolkit-scroll #'touchpad-enable--view-mode)
    (dolist (var '(mwheel-tilt-scroll-p))
      (custom-reevaluate-setting var))))


;;; To enable Enable minor mode by hook instead of advice, patch shown
;;; by following URL should be accepted.
;;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2017-04/msg00700.html

;; (defun touchpad-enable--view-mode ()
;;   "Enable minor mode `touchpad--view-mode' to disable `auto-hscroll-mode=
'.
;; This is supposed to be called before actual scrolling."
;;   (let ((buffer (window-buffer (mwheel-event-window last-input-event))))
;;     (with-current-buffer buffer
;;       (touchpad--view-mode 1)))) ; Turn on minor-mode.


(defun touchpad-enable--view-mode (func &rest args)
  "Enable minor mode `touchpad--view-mode' to disable `auto-hscroll-mode'.
This is supposed to be adviced before `mwheel-scroll'."
  (let ((buffer (window-buffer (mwheel-event-window last-input-event)))
        (point (point)))
    (when auto-hscroll-mode
      (setq touchpad--auto-hscroll-mode auto-hscroll-mode)) ; 26.1
    (unless touchpad--view-mode ; Switch from off to on.
      (when (fboundp 'mouse-set-secondary-from-primary)
        (mouse-set-secondary-from-primary))
      (when touchpad-restore-point-flag
        (touchpad-set-point point))
      (with-current-buffer buffer
        (touchpad--view-mode 1)))))


(copy-face 'cursor 'touchpad-point-face) ; 'cursor, 'region, 'secondary-sel=
ection, 'mode-line
;; (set-face-foreground 'touchpad-point-face "white")


(defun touchpad-point-overlay ()
  "Return an overlay which records the current point in the visiting buffer=
."
  (let ((overlays (overlays-in (point-min) (point-max)))
        ol)
    (while overlays
      (let ((overlay (car overlays)))
        (if (eq (overlay-get overlay 'face) 'touchpad-point-face)
            (progn (setq ol overlay)
                   (setq overlays nil))
          (setq overlays (cdr overlays)))))
    (unless ol
      ;; create a new overlay.
      ;; (info "(elisp) Overlay Properties")
      (setq ol (make-overlay (point-min) (point-min) nil t t))
      (delete-overlay ol)
      ;; (overlay-put ol 'priority 100)
      (overlay-put ol 'face 'touchpad-point-face))
    ol))


(defun touchpad-set-point (pos)
  "Move `touchpad-point-overlay' to the current point."
  (if (eolp)
      (let ((string (propertize "|" 'face 'touchpad-point-face))) ; "|", " "
        (move-overlay (touchpad-point-overlay) pos pos) ; empty overlay cur=
sor char
        (overlay-put (touchpad-point-overlay) 'after-string string))
    (when (overlay-get (touchpad-point-overlay) 'after-string)
      (overlay-put (touchpad-point-overlay) 'after-string nil)) ; remove cu=
rsor char
    (move-overlay (touchpad-point-overlay) pos (1+ pos))))


(defun touchpad-remove-point ()
  "Remove `touchpad-point-overlay' in the visiting buffer."
  (when (overlay-get (touchpad-point-overlay) 'after-string)
    (overlay-put (touchpad-point-overlay) 'after-string nil)) ; remove curs=
or char
  (delete-overlay (touchpad-point-overlay))) ; remove overlay


(defun touchpad-point ()
  "Return point from `touchpad-point-overlay'."
  (overlay-start (touchpad-point-overlay)))


;;; Following definition is necessary until the patch is accepted by
;;; bug-gnu-emacs.  The code should be located on `mouse.el'.
;;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2017-06/msg00938.html
(unless (fboundp 'mouse-set-secondary-from-primary)
  (defun mouse-set-secondary-from-primary ()
    "Set the secondary selection to text in the region.
When region does not exists, set mouse-secondary-start to the point.
When point is in the secondary selection, do nothing."
    (interactive)
    (cond
     ((region-active-p) ; Create mouse-secondary-overlay from region.
      (delete-overlay mouse-secondary-overlay)
      (move-overlay mouse-secondary-overlay (region-beginning) (region-end)=
))
     ((member 'secondary-selection ; Do nothing.
              (mapcar (lambda (xxx) (overlay-get xxx 'face))
                      (overlays-at (point)))))
     (t (delete-overlay mouse-secondary-overlay) ; Create mouse-secondary-s=
tart from point.
        (push-mark (point))
        (setq mouse-secondary-start (make-marker))
        (move-marker mouse-secondary-start (point))))))


(defun touchpad-disable--view-mode ()
  "Disable minor mode `touchpad--view-mode' to enable `auto-hscroll-mode' b=
ack.
Then invoke command that is bound to the original key."
  (interactive)
  (touchpad--view-mode 0) ; Turn off minor-mode.
  (when touchpad-restore-point-flag
    (touchpad-remove-point))
  (call-interactively (key-binding (this-command-keys))))


(defun touchpad-disable--view-mode-1 ()
  "Restore point then call `touchpad-disable--view-mode'."
  (interactive)
  (when touchpad-restore-point-flag
    (goto-char (touchpad-point))
    (touchpad-remove-point))
  (touchpad-disable--view-mode))


(define-minor-mode touchpad--view-mode
  "A minor-mode with `auto-hscroll-mode' off.
This minor mode is used internally."
  :init-value nil
  :lighter " view"
  :keymap (let ((map (make-sparse-keymap)))
            ;; Extend secondary instead of primary by shift click.
            (define-key map [remap mouse-save-then-kill] 'mouse-secondary-s=
ave-then-kill)

            ;; Turn off touchpad--view-mode and do what is supposed to do.
            ;; * do not restore point
            (define-key map [remap mouse-set-region] 'touchpad-disable--vie=
w-mode)
            ;; (define-key map [remap mouse-drag-region] 'touchpad-disable-=
-view-mode) ; Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99
            (define-key map [remap keyboard-quit] 'touchpad-disable--view-m=
ode)
            (define-key map [remap mouse-set-point] 'touchpad-disable--view=
-mode)
            (define-key map [remap mark-whole-buffer] 'touchpad-disable--vi=
ew-mode)
            (define-key map [remap mark-page] 'touchpad-disable--view-mode)
            (define-key map [remap mark-paragraph] 'touchpad-disable--view-=
mode)
            (define-key map [remap mark-word] 'touchpad-disable--view-mode)
            (define-key map [remap goto-char] 'touchpad-disable--view-mode)
            (define-key map [remap goto-line] 'touchpad-disable--view-mode)
            (define-key map [remap move-to-column] 'touchpad-disable--view-=
mode)
            (define-key map [remap isearch-forward] 'touchpad-disable--view=
-mode)
            (define-key map [remap isearch-backward] 'touchpad-disable--vie=
w-mode)
            ;; (define-key map [remap scroll-up-command] 'touchpad-disable-=
-view-mode)
            ;; (define-key map [remap scroll-down-command] 'touchpad-disabl=
e--view-mode)
            ;; (define-key map [remap beginning-of-buffer] 'touchpad-disabl=
e--view-mode)
            ;; (define-key map [remap end-of-buffer] 'touchpad-disable--vie=
w-mode)
            ;; * restore point
            (define-key map [remap recenter-top-bottom] 'touchpad-disable--=
view-mode-1) ; restore point
            (define-key map [remap right-char] 'touchpad-disable--view-mode=
-1) ; restore point
            (define-key map [remap forward-char] 'touchpad-disable--view-mo=
de-1) ; restore point
            (define-key map [remap forward-word] 'touchpad-disable--view-mo=
de-1) ; restore point
            (define-key map [remap forward-sentence] 'touchpad-disable--vie=
w-mode-1) ; restore point
            (define-key map [remap forward-paragraph] 'touchpad-disable--vi=
ew-mode-1) ; restore point
            (define-key map [remap forward-page] 'touchpad-disable--view-mo=
de-1) ; restore point
            (define-key map [remap left-char] 'touchpad-disable--view-mode-=
1) ; restore point
            (define-key map [remap backward-char] 'touchpad-disable--view-m=
ode-1) ; restore point
            (define-key map [remap backward-word] 'touchpad-disable--view-m=
ode-1) ; restore point
            (define-key map [remap backward-sentence] 'touchpad-disable--vi=
ew-mode-1) ; restore point
            (define-key map [remap backward-paragraph] 'touchpad-disable--v=
iew-mode-1) ; restore point
            (define-key map [remap backward-page] 'touchpad-disable--view-m=
ode-1) ; restore point
            (define-key map [remap move-beginning-of-line] 'touchpad-disabl=
e--view-mode-1) ; restore point
            (define-key map [remap beginning-of-visual-line] 'touchpad-disa=
ble--view-mode-1) ; restore point
            (define-key map [remap move-end-of-line] 'touchpad-disable--vie=
w-mode-1) ; restore point
            (define-key map [remap end-of-visual-line] 'touchpad-disable--v=
iew-mode-1) ; restore point
            (define-key map [remap next-line] 'touchpad-disable--view-mode-=
1) ; restore point
            (define-key map [remap next-error] 'touchpad-disable--view-mode=
-1) ; restore point
            (define-key map [remap previous-line] 'touchpad-disable--view-m=
ode-1) ; restore point
            (define-key map [remap previous-error] 'touchpad-disable--view-=
mode-1) ; restore point
            (define-key map [remap beginning-of-defun] 'touchpad-disable--v=
iew-mode-1) ; restore point
            (define-key map [remap end-of-defun] 'touchpad-disable--view-mo=
de-1) ; restore point
            ;; * restore point and revise buffer
            (define-key map [remap self-insert-command] 'touchpad-disable--=
view-mode-1) ; restore point
            (define-key map [remap delete-char] 'touchpad-disable--view-mod=
e-1) ; restore point
            (define-key map [remap kill-word] 'touchpad-disable--view-mode-=
1) ; restore point
            (define-key map [remap kill-line] 'touchpad-disable--view-mode-=
1) ; restore point
            (define-key map [remap quoted-insert] 'touchpad-disable--view-m=
ode-1) ; restore point
            (define-key map [remap transpose-chars] 'touchpad-disable--view=
-mode-1) ; restore point
            (define-key map [remap transpose-words] 'touchpad-disable--view=
-mode-1) ; restore point
            (define-key map [remap yank] 'touchpad-disable--view-mode-1) ; =
restore point
            (define-key map [remap toggle-input-method] 'touchpad-disable--=
view-mode-1) ; restore point
            (define-key map [remap delete-backward-char] 'touchpad-disable-=
-view-mode-1) ; restore point
            (define-key map [remap just-one-space] 'touchpad-disable--view-=
mode-1) ; restore point
            (define-key map [remap dabbrev-expand] 'touchpad-disable--view-=
mode-1) ; restore point
            (define-key map [remap mark-sexp] 'touchpad-disable--view-mode-=
1) ; restore point
            (define-key map [remap delete-indentation] 'touchpad-disable--v=
iew-mode-1) ; restore point
            (define-key map [remap helm-command-prefix] 'touchpad-disable--=
view-mode-1) ; restore point
            (define-key map [remap paredit-backward-slurp-sexp] 'touchpad-d=
isable--view-mode-1) ; restore point
            (define-key map [remap paredit-splice-sexp-killing-backward] 't=
ouchpad-disable--view-mode-1) ; restore point
            (define-key map [remap mark-sexp] 'touchpad-disable--view-mode-=
1) ; restore point
            ;; * local setup
            (define-key map [remap mew-summary-previous-line] 'touchpad-dis=
able--view-mode-1) ; restore point
            (define-key map [remap mew-summary-next-line] 'touchpad-disable=
--view-mode-1) ; restore point
            (define-key map [remap skk-insert] 'touchpad-disable--view-mode=
-1) ; restore point
            map)
  :group 'scrolling

  (if touchpad--view-mode
      (progn
        (setq-local auto-hscroll-mode nil)
        (setq-local cursor-type 'hollow))
    (setq-local auto-hscroll-mode touchpad--auto-hscroll-mode)
    (setq-local cursor-type touchpad--cursor-type)))

(defun touchpad-text-scale-increase (event)
  "Increase the height of the default face in the current buffer by 1 step."
  (interactive "e")
  (save-excursion
    (mouse-set-point event)
    (text-scale-increase 1)))

(defun touchpad-text-scale-decrease (event)
  "Decrease the height of the default face in the current buffer by 1 step."
  (interactive "e")
  (save-excursion
    (mouse-set-point event)
    (text-scale-decrease 1)))

;;;; ChangeLog:

;; 2017-08-07  Tak Kunihiro <tkk@HIDDEN>
;;
;; 	touchpad-mode: version 1.0
;;
;; 	* touchpad.el: New package.

(provide 'touchpad)
;;; touchpad.el ends here




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 07 Aug 2017 16:41:02 +0000
Resent-Message-ID: <handler.27932.B27932.15021240271715 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dani Moncayo <dmoncayo@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, rms@HIDDEN
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.15021240271715
          (code B ref 27932); Mon, 07 Aug 2017 16:41:02 +0000
Received: (at 27932) by debbugs.gnu.org; 7 Aug 2017 16:40:27 +0000
Received: from localhost ([127.0.0.1]:50645 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1del4t-0000Ra-93
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2017 12:40:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33771)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1del4q-0000R5-Rc
 for 27932 <at> debbugs.gnu.org; Mon, 07 Aug 2017 12:40:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1del2x-0007IL-Dw
 for 27932 <at> debbugs.gnu.org; Mon, 07 Aug 2017 12:38:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38700)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1del2x-0007IG-Ax; Mon, 07 Aug 2017 12:38:27 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4236
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1del2p-0005rN-I2; Mon, 07 Aug 2017 12:38:20 -0400
Date: Mon, 07 Aug 2017 19:38:16 +0300
Message-Id: <83bmnrtjt3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN>
 (message from Dani Moncayo on Mon, 7 Aug 2017 07:54:21 +0200)
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
 <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
 <83ini0t8k8.fsf@HIDDEN>
 <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Dani Moncayo <dmoncayo@HIDDEN>
> Date: Mon, 7 Aug 2017 07:54:21 +0200
> Cc: "Richard M. Stallman" <rms@HIDDEN>, 27932 <at> debbugs.gnu.org
> 
> In short: point movement should trigger auto-scrolling (as now), but
> scrolling should not move point.

I see a possible misunderstanding here: the way scrolling works in
Emacs, it moves point and then lets the display engine scroll the text
in the window to make point visible.  So the two use cases you try to
differentiate are actually indistinguishable as far as the display
engine is concerned.  For example, invoking goto-char invokes the same
display code as scrolling commands, which is why scroll-conservatively
is obeyed even by goto-char (as many users expect).




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Resent-From: Dani Moncayo <dmoncayo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 07 Aug 2017 21:10:02 +0000
Resent-Message-ID: <handler.27932.B27932.150214018526638 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 27932
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 27932 <at> debbugs.gnu.org, "Richard M. Stallman" <rms@HIDDEN>
Received: via spool by 27932-submit <at> debbugs.gnu.org id=B27932.150214018526638
          (code B ref 27932); Mon, 07 Aug 2017 21:10:02 +0000
Received: (at 27932) by debbugs.gnu.org; 7 Aug 2017 21:09:45 +0000
Received: from localhost ([127.0.0.1]:50786 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1depHU-0006va-R4
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2017 17:09:44 -0400
Received: from mail-wr0-f178.google.com ([209.85.128.178]:36747)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmoncayo@HIDDEN>) id 1depHS-0006vM-TG
 for 27932 <at> debbugs.gnu.org; Mon, 07 Aug 2017 17:09:43 -0400
Received: by mail-wr0-f178.google.com with SMTP id y43so5951289wrd.3
 for <27932 <at> debbugs.gnu.org>; Mon, 07 Aug 2017 14:09:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=NLb/VhdofE9QUqKM76po+mynyPMw9Esu5prowqm3IBY=;
 b=F1JGHHkDGWFFC58ZP2u4h9R9fTRfHaen4heRNtyQA0Il0ruNwSW9PaDSYXuOfdL89w
 5mnQVRrj8AC3Aq2jfDkkqnrzEHlhjA8wd7GnbI8+wnT51efcX/LN5QFPbT7pLrcmkch7
 xd14eYXChtYJ5va6Idhmk8fyUnsVBnum1kPJ9bw3XyEW1dfWDxnazWISQuu0ZIL8uleW
 TATeKoW9I7Q7BFMjq4xpY9IJ8cZh8LE+OZFVBJ3ICEw1K06g7oaXpoGF4BbjsOcuz7c2
 nuL+kVkG/QR+EU4NgapZqIMEZ8jgHCbH0ujeXByiY+repuFCSFeamVkRQjh/GNYKc31Y
 ScfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=NLb/VhdofE9QUqKM76po+mynyPMw9Esu5prowqm3IBY=;
 b=sheS02gqACs85m/Zwl4ry9NjSQtRmj9xZskVXEPurOCqrVT+K2t444aadSxKLIRxMz
 T1Yc1+0mFc9bvxoWbK0YI+4Tet29JekdMLvRemyExYSzU8gm0Txl4GdHzPtzsNhaN6XL
 JCIwZL5SA6Hs1Q4hUFHGjt1RKStTvfMmVxmAQ24p/T8YMhJiRA3isft9cgqpxPP7cFQS
 E6GCbV48kSuJf2i8Vfq8/ETI3UxWK1FX8BoA42d43HZ+iNusNSLAtCY9B9Gb4jcKsX/5
 ovrqPTiOct8YygaXmLDFLZxQORR/hG9eHw4AQaJnsL9C3FHJpqnj0ZFXdXTV24jCA+1v
 /jJg==
X-Gm-Message-State: AHYfb5i1NRQIc2fgNipe6yeL6DR5pOVIk2M6fcYBY8gQPCoKRcAY4ur8
 Sn3zA2cFoKs01XrXpY92WPHk9efTIQ==
X-Received: by 10.223.176.57 with SMTP id f54mr1192778wra.194.1502140177012;
 Mon, 07 Aug 2017 14:09:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.100.196 with HTTP; Mon, 7 Aug 2017 14:09:36 -0700 (PDT)
In-Reply-To: <83bmnrtjt3.fsf@HIDDEN>
References: <CAH8Pv0hW7a3eJa5bBwx6LHVS2joUtB_yHwQizj4CN50x-OU74Q@HIDDEN>
 <83tw1oy54c.fsf@HIDDEN> <E1ddkGN-0000cn-0D@HIDDEN>
 <83mv7ewm1i.fsf@HIDDEN> <E1de5Y8-0000Ws-IM@HIDDEN>
 <83lgmwty18.fsf@HIDDEN>
 <CAH8Pv0hkgCEidjR13U2EQ9PbGfXrBcZ6GKMNBrcZ2KX10WxfPg@HIDDEN>
 <83ini0t8k8.fsf@HIDDEN>
 <CAH8Pv0iPd==2KmqvEKM4wOPn1ext5cQYqKTU8v4-nz0x31JUxg@HIDDEN>
 <83bmnrtjt3.fsf@HIDDEN>
From: Dani Moncayo <dmoncayo@HIDDEN>
Date: Mon, 7 Aug 2017 23:09:36 +0200
Message-ID: <CAH8Pv0gLL8W1GuV8qaA6hYuC0Xs5AFL-0VNtN0cdTJjcDazDrA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -2.8 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

>> In short: point movement should trigger auto-scrolling (as now), but
>> scrolling should not move point.
>
> I see a possible misunderstanding here: the way scrolling works in
> Emacs, it moves point and then lets the display engine scroll the text
> in the window to make point visible.  So the two use cases you try to
> differentiate are actually indistinguishable as far as the display
> engine is concerned.  For example, invoking goto-char invokes the same
> display code as scrolling commands, which is why scroll-conservatively
> is obeyed even by goto-char (as many users expect).

Ok I think I understand.

Then, the proposed feature would require a rethink of that approach,
because user-requested scrolling (C-v, M-v, mouse-wheel) would _not_
be driven by point movement, obviously.

-- 
Dani Moncayo





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.