From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point Date: Fri, 04 Aug 2017 08:16:12 +0900 Message-ID: <86ini4s0n7.fsf@misasa.okayama-u.ac.jp> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501805297 11597 195.159.176.226 (4 Aug 2017 00:08:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 00:08:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Cc: 27932@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 02:08:12 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 1ddQ9s-0002Nr-Mq for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 02:08:04 +0200 Original-Received: from localhost ([::1]:37546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddQ9y-0003CS-T1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Aug 2017 20:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddQ9t-0003CG-Bi for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2017 20:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddQ9q-0004Z3-4s for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2017 20:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddQ9q-0004YU-1k for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2017 20:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddQ9p-0005RJ-OB for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2017 20:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Aug 2017 00:08:01 +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.150180523020854 (code B ref 27932); Fri, 04 Aug 2017 00:08:01 +0000 Original-Received: (at 27932) by debbugs.gnu.org; 4 Aug 2017 00:07:10 +0000 Original-Received: from localhost ([127.0.0.1]:40542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddQ90-0005QH-5n for submit@debbugs.gnu.org; Thu, 03 Aug 2017 20:07:10 -0400 Original-Received: from mail-pf0-f194.google.com ([209.85.192.194]:35644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddPLq-0004HQ-Ct for 27932@debbugs.gnu.org; Thu, 03 Aug 2017 19:16:22 -0400 Original-Received: by mail-pf0-f194.google.com with SMTP id j68so133062pfc.2 for <27932@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) Original-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) X-Google-Original-From: Tak Kunihiro In-Reply-To: (Dani Moncayo's message of "Thu, 3 Aug 2017 15:34:38 +0200") X-Mailman-Approved-At: Thu, 03 Aug 2017 20:07:09 -0400 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:135309 Archived-At: 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