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: Thu, 17 Sep 2020 12:41:58 -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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000076f28a05af879489" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20092"; 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 Thu Sep 17 21:44:00 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 1kIzp2-00056m-Ji for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 21:44:00 +0200 Original-Received: from localhost ([::1]:49228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIzp1-0003jW-Kl for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 15:43:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIznM-0002QO-UA for emacs-devel@gnu.org; Thu, 17 Sep 2020 15:42:16 -0400 Original-Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]:33720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIznG-0003xP-Ux for emacs-devel@gnu.org; Thu, 17 Sep 2020 15:42:16 -0400 Original-Received: by mail-yb1-xb2a.google.com with SMTP id c17so2550733ybe.0 for ; Thu, 17 Sep 2020 12:42:10 -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=A0xkzx0oTGm+CNpeby9lY+qtfhZtAk8augElZLXv/c8=; b=kZGLb/quimZ4R6PJiiK2AKndLnN952OpFTDLfKkU72rQOtFeYgPGcE5bGS3KzGFJEW RzqtpSXbpzIRVER/nQrv6sgWh3jAYJsDkM14x1D8rpvhRktA6iDuKk/goNBTbLSlDtTZ mCvlIjmxSgMATTNwMisTaK6Pgi8szgoKQuFGKy9b7ZMAVVOnwnngLlIAporPAwV5Uqmd rGzGZSdV0FJB5IXPAfIIm0pdbRJCqSC3hoOfoHbYTyV23rsEWEqVaNfbpEVZcwy2X1sB +M3GIoM7QcR6ORipOD+x6cxgJBiXUZhpKAyrvqNz0XHVI/tgZumOGgwS0NBtmsIYdc/v KgrA== 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=A0xkzx0oTGm+CNpeby9lY+qtfhZtAk8augElZLXv/c8=; b=f6rCUzfm+q2PXkMzn+Y2B/L9mv7lM7JKstMISBcitB0E1xxoKSlXb0nYA8Dxr8q/3t iLeRdIjcn8ZUBdGYo3tAjdPxavM2QxztU4Lw5rR0RRoZy0bFuIdo/t0cw1BysIrTpPCV 7+2fORJOxHwlY7iBZCJip/jDSuGpGRaPCEaw8D42WQIQa4AzhDaz2QpQ6JVEjW9XI9vs YZbE99rMXP2PxFcfbWjOLXqmPWtXX6cVV4bwxhSu4YlFfopV9pK19ruBgpFE9hneQXhn Hjb9uppEfn9LFJQfCGvgebERdrgJwoDAib5nl6pho3kiL7qp9Ov4+7vZhhpMTdpAO9HL EwMw== X-Gm-Message-State: AOAM533eXrV7qQU8W5yrqyEI/Pk5hbMghB1XWWG1f987LPQoIvBjVKI3 XGpEaIEKY/apTlU2Tlwk9j+Fc7xBfvyM0v+qVz4= X-Google-Smtp-Source: ABdhPJx233C6AmQHE0hSw4E9rOpFh0+aJ9cF4j49ZkW5ZrALKjuUUEPxZxFIWYJmHgu0EUtcFHDIPdBIrSRKFCtEP0I= X-Received: by 2002:a25:e688:: with SMTP id d130mr2887288ybh.177.1600371729821; Thu, 17 Sep 2020 12:42:09 -0700 (PDT) In-Reply-To: <87h7rw95x4.fsf@mail.linkov.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a; envelope-from=yandros@gmail.com; helo=mail-yb1-xb2a.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:256028 Archived-At: --00000000000076f28a05af879489 Content-Type: text/plain; charset="UTF-8" On Thu, Sep 17, 2020 at 1:28 AM Juri Linkov wrote: > >>> - Horizontal scroll by wheel is supported. > >>> - Moving text using mouse is supported. > > > >> Please explain how horizontal scroll by wheel is supported. > >> Also please explain how moving text using mouse is supported. > > > > Try something like this. > > > > (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. (There is some added complication here, in that windows and macos seem to use mouse-up/down/left/right, whereas the x11 code uses mouse-4/5/6/7. My current environment is a little odd, but it seems like gtk (ala emacs-pgtk) ise still using the numbers rather than the names.) Poking around the internet suggests that the "standard" for horizontal roll-the-wheel-scrolling is to add shift to rolling the wheel (and this works in the couple apps that I tried). Emacs' mwheel.el doesn't currently do this, but it looks like it wouldn't be hard to add. ~Chad --00000000000076f28a05af879489 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Sep 17, 2020 at 1:28 AM Juri Link= ov <juri@linkov.net> wrote:
>>> - Hor= izontal scroll by wheel is supported.
>>> - Moving text using mouse is supported.
>
>> Please explain how horizontal scroll by wheel is supported.
>> Also please explain how moving text using mouse is supported.
>
> Try something like this.
>
> (setq mouse-wheel-tilt-scroll t)

I tried this, but still it doesn't scroll horizontally
with the mouse wheel.=C2=A0 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, ema= cs uses the "original" (I think they started with XFree86?) bindi= ngs that treat up/down mouse wheel as mouse buttons 4/5, while left/right a= re 6&7, so this is working as (at least at one point in the past) inten= ded. 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.

(There is som= e added complication here, in that windows and macos seem to use mouse-up/d= own/left/right, whereas the x11 code uses mouse-4/5/6/7. My current environ= ment is a little odd, but it seems like gtk (ala emacs-pgtk) ise still usin= g the numbers rather than the names.)

Poking aroun= d the internet suggests that the "standard" for horizontal roll-t= he-wheel-scrolling is to add shift to rolling the wheel (and this works in = the couple apps that I tried). Emacs' mwheel.el doesn't currently d= o this, but it looks like it wouldn't be hard to add.

~Chad
--00000000000076f28a05af879489--