From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Pixel scrolling support Date: Wed, 18 May 2022 04:53:55 +0200 Message-ID: <87v8u37dq4.fsf@web.de> References: <87a6hrzrcv.fsf.ref@yahoo.com> <87a6hrzrcv.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3855"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 18 04:55:05 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nr9q5-0000sA-Er for ged-emacs-devel@m.gmane-mx.org; Wed, 18 May 2022 04:55:05 +0200 Original-Received: from localhost ([::1]:51424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nr9q3-0006uW-Nm for ged-emacs-devel@m.gmane-mx.org; Tue, 17 May 2022 22:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr9p4-0006Bd-Rg for emacs-devel@gnu.org; Tue, 17 May 2022 22:54:02 -0400 Original-Received: from mout.web.de ([212.227.17.12]:35585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr9p3-0002GN-4m for emacs-devel@gnu.org; Tue, 17 May 2022 22:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1652842436; bh=G3b5pv+tIVf6oyc+BQCvchVIB/Qb7jnVlBToZizBUeQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=sxiraX1qvV18TNrZOeUYC4xtQtcmZWJLHJsiu5QQ8EloaSNJiUg5xqil1z7YO+UG/ W/nJOHjTjBYMOIjrARzaC/pOqA8CCzmmRJ3ssWdvxPCp/u3F0NJjg8zXdvg9jALPeQ KcVAnqrXrhb7e6id1nqJHYWvbRECSGr/cTLDLfZ0= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.60.174.246]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MRk0W-1oKGCc1I0g-00TZaZ; Wed, 18 May 2022 04:53:56 +0200 In-Reply-To: <87a6hrzrcv.fsf@yahoo.com> (Po Lu's message of "Fri, 26 Nov 2021 08:35:12 +0800") X-Provags-ID: V03:K1:538kKbq7AMWkMdXjBHsfu/MbufCPYJrWmb73IWLMl1CIcXT0Xqi DEqVF7BdCukdQexMNpjPUclLdWvxLGmVIdrU5K8ksfUB1kcZGLTxwXhQv7LUGJZLOT+7lxY yT9DR84F+1oRfN9VM7JXFUgC1xAP3LU/za3tvzWp76mGybKk5LPhOpQ1g6dtPYt3sDBr63u I9q3w6WqKV/UaM7xRR1AA== X-UI-Out-Filterresults: notjunk:1;V03:K0:/Bo/1d4nD08=:JBFRH/ZL/f6rNJNkURsX0W g+BzG1ukuYBZ/j9R46X5lkR1ZAGMBQSONsg2lxjUnWDoctkdrvsUfNrHkdq34kwEJ9ROb/v1S XEbxCbrSW6/LPD/7U/eVAFeIMpJI+js59owHzQn/yLQfR+md1PkL9MFYlpxO0mgsC/V5hzSEU gUsATNkHMiReRh9qCwjTFb7L6r6iNwOGWyjvnOLtzJQ/54Y0lAM2UEa84lDsnONyu432OEqzS TJxdPOkSb7RLJmi04g+leJm7pu753/JNHgSsEBMhF1K+Wkv0qgCR5sMPres7uha0osx+iPTSN Kx19j+UwJLxmEdPVticaqcl3oPHFtuKEWxjQBXMi4UCcPPrXmitaRgsKj34prBmbbOfSo12RZ jmlv5ZuG1iQGDYiBNDIvBbE3kxOK+hMfCKgGN68fBj5Cwoe1z+0Zipcp5uf/jlikPLBFTEjoW hVOAYqRVoXn2qWvr1zDlTULXJR/pMMiYQrHAPBtzKa4Xajf9B9BACc0Nw0P1mCTDz0Vk/T4GW i3Zuah4V36i6uCjL3uAeGNy4OVB3S9aqoEMwU9rljRKwrMa2yawscwzNoMUyVRCDWm+OfiRTC I8GSy08dRrRZJaBENO6yrHDEvc/cNvEbCG9fQZMNxQSH2k5+TvjxM8eSym6BvWVjIknpEACyQ bAXME1BAvjdMdk/k4qDOBOzGetTU5EAGS/BHFto2e54KRFPwKQr40vLBHNlMIWqDWd/oP8nFu Cxv8wBdthFYQaVsAQfyiuwkDFTLnNBT2eWNMcO/Rd24ixKY9GLWCxGrzYhUQnvs1f0Eg3ANA Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289902 Archived-At: Po Lu writes: > I would like to install the following file: [...] I like the new pixel-scroll-precision-mode very much! - but there is a problem with it: #+begin_src emacs-lisp (define-minor-mode pixel-scroll-precision-mode "Toggle pixel scrolling. When enabled, this minor mode allows to scroll the display precisely, according to the turning of the mouse wheel." :global t :group 'mouse :keymap pixel-scroll-precision-mode-map ...) #+end_src This overwrites the mwheel bindings in any buffer with pixel-scroll functions, and since it's a minor-mode, it wins over major-mode bindings. For example, osm.el (in Gnu Elpa) uses the mouse wheel to zoom the map. Since `pixel-scroll-precision-mode' is a global minor mode, it is not even trivial to work around this problem in one's config. TIA, Michael.