From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Woolley Newsgroups: gmane.emacs.bugs Subject: bug#71646: 29.3; pixel-scroll-precision-mode overrides paging behaviour even when pixel-scroll-precision-interpolate-page is off Date: Wed, 19 Jun 2024 11:44:52 +0100 Message-ID: <1EF9E019-2554-402F-8E9F-77AF2D9B4828@bulsara.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_61620D60-A9CD-4FAA-ACFB-0ABD70882BCE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32995"; mail-complaints-to="usenet@ciao.gmane.io" To: 71646@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 19 12:48:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJsrT-0008L7-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jun 2024 12:48:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJsrC-0000I7-Ng; Wed, 19 Jun 2024 06:48:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJsrA-0000Hy-Ot for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 06:48:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJsrA-0002KE-DP for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 06:48:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJsrC-0000mk-JT for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 06:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Woolley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2024 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71646 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17187940432952 (code B ref -1); Wed, 19 Jun 2024 10:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jun 2024 10:47:23 +0000 Original-Received: from localhost ([127.0.0.1]:39654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJsqY-0000lW-IQ for submit@debbugs.gnu.org; Wed, 19 Jun 2024 06:47:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJsqW-0000lP-Q7 for submit@debbugs.gnu.org; Wed, 19 Jun 2024 06:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJsoL-0007ky-Li for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 06:45:07 -0400 Original-Received: from mailout.easymail.ca ([64.68.200.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJsoI-0001lS-AX for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 06:45:04 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id DA01C60DEC for ; Wed, 19 Jun 2024 10:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bulsara.com; s=easymail; t=1718793895; bh=oTKTjJTYes1A9bAyiXQz8LdJT15I3PEZKuajIGHrNcg=; h=From:Subject:Date:To:From; b=L0T0+tK4ukwW8fl0y5Y2PcQLG7QkX+AWm+GMKPVKfGvoaT5aOm4D/6EemcYZbh2cZ lNBH/NI4XgMDF4cd88K8kutlC9LU9PddmNBGGGXbs1m9hRMmgiYAVN0HS1v5sJ6g/K nXOPNXX7tI7eRum4af64wxv14Mcw9nbF4MhXhoDG6XK8D/eGSzJ9o5QQSVU8WCpWjT KIwH1teyMXimLZ5VaHNR+Akc+PdAXfBCaGipvkgDTeREloxt9xCIYwI6VDgRGlhh/8 hpNdFxlpiYdXazQdt4EO4v5EudhP1BHV7iDpAE6M+eGohVEpOYchuh8AxJsMZLOxqq Tl4LAVmPWi5Eg== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Original-Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6QjxmaLLnnD5 for ; Wed, 19 Jun 2024 10:44:55 +0000 (UTC) Original-Received: from smtpclient.apple (unknown [94.8.22.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 50E5060D69 for ; Wed, 19 Jun 2024 10:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bulsara.com; s=easymail; t=1718793895; bh=oTKTjJTYes1A9bAyiXQz8LdJT15I3PEZKuajIGHrNcg=; h=From:Subject:Date:To:From; b=L0T0+tK4ukwW8fl0y5Y2PcQLG7QkX+AWm+GMKPVKfGvoaT5aOm4D/6EemcYZbh2cZ lNBH/NI4XgMDF4cd88K8kutlC9LU9PddmNBGGGXbs1m9hRMmgiYAVN0HS1v5sJ6g/K nXOPNXX7tI7eRum4af64wxv14Mcw9nbF4MhXhoDG6XK8D/eGSzJ9o5QQSVU8WCpWjT KIwH1teyMXimLZ5VaHNR+Akc+PdAXfBCaGipvkgDTeREloxt9xCIYwI6VDgRGlhh/8 hpNdFxlpiYdXazQdt4EO4v5EudhP1BHV7iDpAE6M+eGohVEpOYchuh8AxJsMZLOxqq Tl4LAVmPWi5Eg== X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=64.68.200.34; envelope-from=mike@bulsara.com; helo=mailout.easymail.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287476 Archived-At: --Apple-Mail=_61620D60-A9CD-4FAA-ACFB-0ABD70882BCE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Playing with `pixel-scroll-precision-mode=E2=80=99 I noticed a small = issue: Setting `pixel-scroll-precision-interpolate-page=E2=80=99 is supposed to = turn off the paging animation (which it does) however even when it=E2=80=99= s off, and invoke `cua-scroll-up=E2=80=99 & = `cua-scroll-down=E2=80=99 rather than allowing another keymap to handle = it. Unfortunately this means any other mapping for these keys you might have = has now been silently overridden (even after you=E2=80=99ve said you = don=E2=80=99t want the new behaviour). (defun pixel-scroll-interpolate-up () "Interpolate a scroll upwards by one page." (interactive) (if pixel-scroll-precision-interpolate-page (pixel-scroll-precision-interpolate (window-text-height nil t) nil = 1) (cua-scroll-down))) I think it would be better if `pixel-scroll-precision-mode=E2=80=99 did = nothing if `pixel-scroll-precision-interpolate-page=E2=80=99 is off and = allowed another keycap to handle & . I also noticed that it only maps & and not C-v / M-v, so = in other words behaviour could be different depending on exactly which = Page Up & Down key sequence you invoke. Thanks, Mike --Apple-Mail=_61620D60-A9CD-4FAA-ACFB-0ABD70882BCE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Playing with = `pixel-scroll-precision-mode=E2=80=99 I noticed a small = issue:

Setting = `pixel-scroll-precision-interpolate-page=E2=80=99 is supposed to turn = off the paging animation (which it does) however even when it=E2=80=99s = off, <prior> and <next> invoke `cua-scroll-up=E2=80=99 & = `cua-scroll-down=E2=80=99 rather than allowing another keymap to handle = it.

Unfortunately this means any other mapping = for these keys you might have has now been silently overridden (even = after you=E2=80=99ve said you don=E2=80=99t want the new = behaviour).

(defun pixel-scroll-interpolate-up ()
  "Interpolate a scroll upwards by one = page."
  = (interactive)
  (if = pixel-scroll-precision-interpolate-page
      = (pixel-scroll-precision-interpolate (window-text-height nil t) nil = 1)
    = (cua-scroll-down)))

I think = it would be better if `pixel-scroll-precision-mode=E2=80=99 did = nothing if `pixel-scroll-precision-interpolate-page=E2=80=99 is off and = allowed another keycap to handle <prior> & = <next>.

I also noticed that it only maps = <prior> & <next> and not C-v / M-v, so in other words = behaviour could be different depending on exactly which Page Up & = Down key sequence you invoke.

Thanks,
Mike

= --Apple-Mail=_61620D60-A9CD-4FAA-ACFB-0ABD70882BCE--