From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: mwheel scroll horizontally Date: Thu, 07 Oct 2010 23:05:09 +0100 Organization: JURTA Message-ID: <87d3rlpskq.fsf@mail.jurta.org> References: <87hbh1fu7n.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286489320 24882 80.91.229.12 (7 Oct 2010 22:08:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2010 22:08:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 08 00:08:39 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P3ydg-0007Ba-8W for ged-emacs-devel@m.gmane.org; Fri, 08 Oct 2010 00:08:36 +0200 Original-Received: from localhost ([127.0.0.1]:41339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3ydf-0008Jm-4d for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2010 18:08:35 -0400 Original-Received: from [140.186.70.92] (port=48120 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3ydY-0008Jf-Pi for emacs-devel@gnu.org; Thu, 07 Oct 2010 18:08:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3ydX-0008A4-DM for emacs-devel@gnu.org; Thu, 07 Oct 2010 18:08:28 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:37939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3ydX-00089m-5Y for emacs-devel@gnu.org; Thu, 07 Oct 2010 18:08:27 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 83AB96E8067; Thu, 7 Oct 2010 15:08:25 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 403E2451C188; Thu, 7 Oct 2010 15:08:24 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 07 Oct 2010 11:18:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131442 Archived-At: >> Why mwheel.el doesn't allow horizontal scrolling? > > You mean: why doesn't it *support* horizontal scrolling? > Lack of a corresponding patch, I guess ;-) > >> For instance, Gimp allows the Shift modifier to change >> the direction of scrolling from vertical to horizontal. > > There are also various situations where the user has access to "real" > horizontal scrolling. So rather than a modifier, it might be that > horizontal scrolling is specified by mouse-6 and mouse-7 or yet > something else. Yes, mwheel.el is limited in this regard too and supports only a monowheel mouse. >> Shift and Control are already in use in mouse-wheel-scroll-amount, >> but Meta is available. What about using Meta for horizontal > > Doing it via global-map key bindings doesn't sound quite right. > Instead, we want to have mwheel understand wheel-left and wheel-right > events, and then (if/when needed) remap (via function-key-map) other > events to those ones. Maybe something like (in bindings.el or in term/x-win.el): (define-key function-key-map [mouse-4] [wheel-down]) (define-key function-key-map [mouse-5] [wheel-up]) (define-key function-key-map [mouse-6] [wheel-right]) (define-key function-key-map [mouse-7] [wheel-left]) (define-key function-key-map [M-mouse-6] [wheel-right]) (define-key function-key-map [M-mouse-7] [wheel-left]) Actually, mwheel.el contains: (defcustom mouse-wheel-down-event (if (or (featurep 'w32-win) (featurep 'ns-win)) 'wheel-up Does this mean that w32-win and ns-win already generate these events instead of mouse-4 and mouse-5? Could someone with access to these systems with a two-wheeled mouse please tell what events they generate for the second wheel?