From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Context menus and mouse-3 Date: Fri, 18 Sep 2020 11:41:45 -0700 Message-ID: References: <67FBE6CE-73C5-4C14-8531-AB55ADE3CC36@misasa.okayama-u.ac.jp> <87d02lykl3.fsf@mail.linkov.net> <26336BF5-CDA2-4CED-90B9-5CCB1155CFD2@misasa.okayama-u.ac.jp> <87h7rw95x4.fsf@mail.linkov.net> <87a6xnr0ie.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ed1a7505af9ada86" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tak Kunihiro , EMACS development team To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 18 22:07:08 2020 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 1kJMex-0001DK-5o for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 22:07:07 +0200 Original-Received: from localhost ([::1]:44406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJMew-0006wW-7D for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Sep 2020 16:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJLKa-0003Nr-Gd for emacs-devel@gnu.org; Fri, 18 Sep 2020 14:42:00 -0400 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:40954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJLKX-0007ef-Ua for emacs-devel@gnu.org; Fri, 18 Sep 2020 14:42:00 -0400 Original-Received: by mail-yb1-xb2e.google.com with SMTP id k2so5001313ybp.7 for ; Fri, 18 Sep 2020 11:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YgpJIJpjtxcEsSJS0ECj+gJkGYhdplNt9miY+448J2k=; b=j+Ktta9yBlVIzeLyrA393DAOyq8fPrWpw00K4H1wVqXz6VQBnp0KjhDdvcCJi6u6n2 cGpej2I0r06OUK9Jxxnnmtp2DaxFRQrTH0xDHxoOB7+6gh8Al/+nSCGrchyIvhUAIuwO qa2yXJCqvwIdCUbK1/4ShHDGmCJavgLNqCRe3BW0yv5Yqt+0GDPH6LUnEEWSxGFc9K2L IhOGUi6mgB0rx8N840xaSgVYq/F7Bn9LAJUjgyfroibk2gSj8oo5aOi153cUp9cJRKY3 sDHgFdOL7bmw8Ref+kmSBK6DJkApnLCC8kbt4Q+6Di4+OtNIa1D/IFWlC2dBbHJiH0kF yQWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YgpJIJpjtxcEsSJS0ECj+gJkGYhdplNt9miY+448J2k=; b=kwAfCYF34h5OkM1HRplRc+/dWti7vKHNVxOZqhXJH2dCZpaupHKvolLUOM4UCi3Owc 0miq01J+sBEbMYCP/oMvBzYysVNr3vb1B970m/xkDIfHC3oSlHDneX2bTv7hYbym+Qup BmzxJOwDAkYpf5NdabFbQWibxdPLirprZKjp1Lk8csO1flUknB7a2NmXY62GakSNP3iV SB94ff+Lc/fkQf4+CuZGwr/K6+JT9EW4vgLC8UC1Jx4miyvllvgQcf70CL91tJZfqd1O YWvhrFKvRgip9QzutNaoxzKmuIt82PnWvZNetXa1AWh2+c37224BLILbRGHM/B98hHrh nUJA== X-Gm-Message-State: AOAM530aZiCWBl7DqBVSYgjkCGEzgJu9GnpdgMnUk06yMR1ArB0D261s jGd0L46eArOprXj/1GHNOD/977SRWbeJ5EbiibZNKg/ny2g= X-Google-Smtp-Source: ABdhPJw4bgRNu07/OHa6LD+87sNg+wRf9ddtB7M+so1eOV3PPpKu9SFGzv+Ik60am8w13wQ5MP3bv9uFnFbtFxs4KvI= X-Received: by 2002:a25:5381:: with SMTP id h123mr48748244ybb.413.1600454516348; Fri, 18 Sep 2020 11:41:56 -0700 (PDT) In-Reply-To: <87a6xnr0ie.fsf@mail.linkov.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=yandros@gmail.com; helo=mail-yb1-xb2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:256132 Archived-At: --000000000000ed1a7505af9ada86 Content-Type: text/plain; charset="UTF-8" On Fri, Sep 18, 2020 at 1:31 AM Juri Linkov wrote: > > > (setq mouse-wheel-tilt-scroll t) > > > > I tried this, but still it doesn't scroll horizontally > > with the mouse wheel. It seems this feature expects the > > mouse events mouse-6 and mouse-7, but scrolling the mouse wheel > > produces mouse-4 and mouse-5. > > > > FWIW, emacs uses the "original" (I think they started with XFree86?) > > bindings that treat up/down mouse wheel as mouse buttons 4/5, while > > left/right are 6&7, so this is working as (at least at one point in the > > past) intended. There might be a communication issue around "by wheel" > > here: are you using a mouse with a wheel that tilts to the left/right? I > > believe that's what the OP had in mind. > > Do you mean a mouse with many additional buttons? I heard such monsters > exist, but never seen them. > On one hand, if you believe that mice should have exactly 3 buttons in a manner perhaps similar to the Spanish Inquisition, then yes. On the other, for mice with a physical wheel, on X11 and derivatives (but neither windows nor mac), a physically rolling the wheel appears to the window system (and thus to emacs) as mouse buttons numbered 4 and 5. If the wheel also registers a tilt to the left/right, these appear as buttons 6 & 7. The former is very common; the latter seems to be uncommon these days. Neither of these are the so-called "MMO mouse" (apparently now sometimes "MOBA mouse") with 6-15 (yes, really) extra buttons that are *relatively* common amongst hardcore PC gamers. (For example: https://www.howtogeek.com/403685/how-to-use-an-mmo-or-moba-mouse-for-productivity/) I've only tried one of these once, and at the time the extra buttons weren't supported by X11, so I can't tell you if the mouse equivalent of the space cadet keyboard is emacs nirvana, instant thumb-sprain, or just a waste of plastic. These days, trackpads/touchpads are very common, and most of them have a scrolling feature that uses gestures to fake those 4 extra buttons. Emacs master currently does the expected scrolling things for up/down but not left/right nor shift-up/down. Hope that helps, ~Chad --000000000000ed1a7505af9ada86 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Fri, Sep 18, 2020 at 1:31 AM Juri Link= ov <juri@linkov.net> wrote:
>=C2=A0 =C2=A0 = =C2=A0> (setq mouse-wheel-tilt-scroll t)
>
>=C2=A0 =C2=A0 =C2=A0I tried this, but still it doesn't scroll horiz= ontally
>=C2=A0 =C2=A0 =C2=A0with the mouse wheel.=C2=A0 It seems this feature e= xpects the
>=C2=A0 =C2=A0 =C2=A0mouse events mouse-6 and mouse-7, but scrolling the= mouse wheel
>=C2=A0 =C2=A0 =C2=A0produces mouse-4 and mouse-5.
>
> FWIW, emacs uses the "original" (I think they started with X= Free86?)
> bindings that treat up/down mouse wheel as mouse buttons 4/5, while > left/right are 6&7, so this is working as (at least at one point i= n the
> past) intended. There might be a communication issue around "by w= heel"
> here: are you using a mouse with a wheel that tilts to the left/right?= I
> believe that's what the OP had in mind.

Do you mean a mouse with many additional buttons?=C2=A0 I heard such monste= rs
exist, but never seen them.

On one hand= , if you believe that mice should have exactly 3 buttons in a manner perhap= s similar to the Spanish Inquisition, then yes.=C2=A0

On the other, for mice with a physical wheel, on X11 and derivative= s (but neither windows nor mac), a physically rolling the wheel appears to = the window system (and thus to emacs) as mouse buttons numbered 4 and 5. If= the wheel also registers a tilt to the left/right, these appear as buttons= 6 & 7. The former is very common; the latter seems to be uncommon thes= e days. Neither of these are the so-called "MMO mouse" (apparentl= y now sometimes "MOBA mouse") with 6-15 (yes, really) extra butto= ns that are *relatively* common amongst hardcore PC gamers.=C2=A0 (For exam= ple:=C2=A0https://www.howtogeek.com/403685/how-to-use-a= n-mmo-or-moba-mouse-for-productivity/)=C2=A0I've only tried one of = these once, and at the time the extra buttons weren't supported by X11,= so I can't tell you if the mouse equivalent of the space cadet keyboar= d is emacs nirvana, instant thumb-sprain, or just a waste of plastic.
=

These days, trackpads/touchpads are very common, and mo= st of them have a scrolling feature that uses gestures to fake those 4 extr= a buttons. Emacs master currently does the expected scrolling things for up= /down but not left/right nor shift-up/down.

Hope t= hat helps,
~Chad
--000000000000ed1a7505af9ada86--