From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point Date: Fri, 4 Aug 2017 08:34:11 +0200 Message-ID: References: <83tw1oy54c.fsf@gnu.org> <83ini3yi49.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1501828698 17987 195.159.176.226 (4 Aug 2017 06:38:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 06:38:18 +0000 (UTC) Cc: 27932@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 08:38:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddWFR-0004Jo-EK for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 08:38:13 +0200 Original-Received: from localhost ([::1]:39164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddWFU-0006jj-GO for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 02:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddWCQ-0005F7-PL for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddWCN-0005Eh-0G for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddWCM-0005EJ-Rp for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddWCM-000610-IZ for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Aug 2017 06:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27932-submit@debbugs.gnu.org id=B27932.150182845923053 (code B ref 27932); Fri, 04 Aug 2017 06:35:02 +0000 Original-Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 06:34:19 +0000 Original-Received: from localhost ([127.0.0.1]:40726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddWBf-0005zk-9X for submit@debbugs.gnu.org; Fri, 04 Aug 2017 02:34:19 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:38431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddWBe-0005zM-1m for 27932@debbugs.gnu.org; Fri, 04 Aug 2017 02:34:18 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id m85so11836696wma.1 for <27932@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) Original-Received: by 10.28.216.78 with HTTP; Thu, 3 Aug 2017 23:34:11 -0700 (PDT) In-Reply-To: <83ini3yi49.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135320 Archived-At: On Fri, Aug 4, 2017 at 8:14 AM, Eli Zaretskii 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