From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43568: Horizontal mouse wheel scrolling Date: Tue, 22 Sep 2020 21:51:49 +0300 Message-ID: <833639wsoq.fsf@gnu.org> References: <87lfh1ac3y.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3017"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43568@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 22 20:52:22 2020 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 1kKnOo-0000hX-Bo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 20:52:22 +0200 Original-Received: from localhost ([::1]:59364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKnOn-0007Os-E5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 14:52:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKnOU-0007MF-1s for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 14:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKnOT-0004jT-Lp for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 14:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKnOT-0002ca-Ih for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 14:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Sep 2020 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43568 X-GNU-PR-Package: emacs Original-Received: via spool by 43568-submit@debbugs.gnu.org id=B43568.160080071310060 (code B ref 43568); Tue, 22 Sep 2020 18:52:01 +0000 Original-Received: (at 43568) by debbugs.gnu.org; 22 Sep 2020 18:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:33383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKnOL-0002cB-Cy for submit@debbugs.gnu.org; Tue, 22 Sep 2020 14:51:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKnOJ-0002bz-Q9 for 43568@debbugs.gnu.org; Tue, 22 Sep 2020 14:51:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55770) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKnOD-0004hG-IA; Tue, 22 Sep 2020 14:51:46 -0400 Original-Received: from [176.228.60.248] (port=1184 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKnOC-0007cv-Te; Tue, 22 Sep 2020 14:51:45 -0400 In-Reply-To: <87lfh1ac3y.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 22 Sep 2020 21:40:49 +0300) 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" Xref: news.gmane.io gmane.emacs.bugs:188738 Archived-At: > From: Juri Linkov > Date: Tue, 22 Sep 2020 21:40:49 +0300 > > As promised in https://lists.gnu.org/archive/html/emacs-devel/2020-09/msg01598.html > and mentioned in https://debbugs.gnu.org/28182#58 > this patch finally provides horizontal scrolling by shifted mouse wheel: This is a strange use of Shift. Is this something that other applications or platforms do? > (defcustom mouse-wheel-scroll-amount > - '(5 ((shift) . 1) ((meta) . nil) ((control) . text-scale)) > + '(1 ((shift) . hscroll) ((meta) . nil) ((control) . text-scale)) > "Amount to scroll windows by when spinning the mouse wheel. > This is an alist mapping the modifier key to the amount to scroll when > the wheel is moved with the modifier key depressed. > @@ -97,6 +97,9 @@ mouse-wheel-scroll-amount > a full screen to scroll. A near full screen is `next-screen-context-lines' > less than a full screen. > > +If AMOUNT is the symbol 'hscroll', this means that with MODIFIER, > +the mouse wheel will scroll horizontally instead of vertically. > + > If AMOUNT is the symbol text-scale, this means that with > MODIFIER, the mouse wheel will change the face height instead of > scrolling." > @@ -123,6 +126,7 @@ mouse-wheel-scroll-amount > (const :tag "Scroll full screen" :value nil) > (integer :tag "Scroll specific # of lines") > (float :tag "Scroll fraction of window") > + (const :tag "Scroll horizontally" :value hscroll) > (const :tag "Change face size" :value text-scale))))) > :set 'mouse-wheel-change-button > :version "27.1") The :version tag should be updated. This change, if we install it, must be documented in NEWS and in the manual. Thanks.