GNU bug report logs - #57995
<wheel-right> with pixel-scroll-precision-mode

Previous Next

Package: emacs;

Reported by: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>

Date: Thu, 22 Sep 2022 03:52:01 UTC

Severity: normal

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57995 in the body.
You can then email your comments to 57995 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Thu, 22 Sep 2022 03:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 22 Sep 2022 03:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
To: bug-gnu-emacs <at> gnu.org
Cc: tkk <at> misasa.okayama-u.ac.jp
Subject: <wheel-right> with pixel-scroll-precision-mode
Date: Thu, 22 Sep 2022 12:50:14 +0900 (JST)
pixel-scroll-precision-mode is very nice.  I appreciate Po Lu to work
on this.

With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
not work. Is this expected behavior?

1. emacs -Q
2. (setq mouse-wheel-tilt-scroll t)
3. <wheel-right> or <wheel-left> scrolls buffer.
4. (pixel-scroll-precision-mode 1)
5. Then <wheel-right> or <wheel-left> does not scroll buffer.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Thu, 22 Sep 2022 08:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Thu, 22 Sep 2022 16:55:43 +0800
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp> writes:

> pixel-scroll-precision-mode is very nice.  I appreciate Po Lu to work
> on this.
>
> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
> not work. Is this expected behavior?
>
> 1. emacs -Q
> 2. (setq mouse-wheel-tilt-scroll t)
> 3. <wheel-right> or <wheel-left> scrolls buffer.
> 4. (pixel-scroll-precision-mode 1)
> 5. Then <wheel-right> or <wheel-left> does not scroll buffer.

Thanks for reporting this bug.  Could you please include the output from
`report-emacs-bug', as this is likely a system-specific issue?




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 23 Sep 2022 16:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Mon, 26 Sep 2022 05:44:02 GMT) Full text and rfc822 format available.

Message #13 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
To: Po Lu <luangruo <at> yahoo.com>,
 57995 <at> debbugs.gnu.org
Cc: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 26 Sep 2022 14:43:13 +0900
>> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
>> not work. Is this expected behavior?
>> 
>> 1. emacs -Q
>> 2. (setq mouse-wheel-tilt-scroll t)
>> 3. <wheel-right> or <wheel-left> scrolls buffer.
>> 4. (pixel-scroll-precision-mode 1)
>> 5. Then <wheel-right> or <wheel-left> does not scroll buffer.
> 
> Thanks for reporting this bug.  Could you please include the output from
> `report-emacs-bug', as this is likely a system-specific issue?

No buffer scroll with <wheel-right> and <wheel-left> by mouse with Mac.
I confirm that I can scroll buffer with swipe-right and swipe-left by
touchpad with MacBook.

TIA


In GNU Emacs 29.0.50 (build 5, x86_64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-09-26 built on
 DreamMini2019.local
Repository revision: 9ed03040d5bfb228c8d41f1df44e74a824d0cd44
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6

Configured features:
ACL GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3
THREADS TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  pixel-scroll-precision-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils shortdoc text-property-search help-fns
radix-tree help-mode pixel-scroll cua-base ring time-date subr-x
cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
faces cus-face macroexp files window text-properties overlay sha1 md5
base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 52175 5069)
 (symbols 48 5509 0)
 (strings 32 15658 2663)
 (string-bytes 1 444888)
 (vectors 16 11714)
 (vector-slots 8 175953 5557)
 (floats 8 316 76)
 (intervals 56 1096 60)
 (buffers 1000 12))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Mon, 26 Sep 2022 07:58:01 GMT) Full text and rfc822 format available.

Message #16 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 26 Sep 2022 15:57:34 +0800
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp> writes:

>>> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
>>> not work. Is this expected behavior?
>>> 
>>> 1. emacs -Q
>>> 2. (setq mouse-wheel-tilt-scroll t)
>>> 3. <wheel-right> or <wheel-left> scrolls buffer.
>>> 4. (pixel-scroll-precision-mode 1)
>>> 5. Then <wheel-right> or <wheel-left> does not scroll buffer.
>> 
>> Thanks for reporting this bug.  Could you please include the output from
>> `report-emacs-bug', as this is likely a system-specific issue?
>
> No buffer scroll with <wheel-right> and <wheel-left> by mouse with Mac.
> I confirm that I can scroll buffer with swipe-right and swipe-left by
> touchpad with MacBook.

Right, thanks.  Could you please run Emacs underneath a debugger (GDB or
LLDB), and see whether or not this code around line 7342 of nsterm.m is
ever hit:

          CGFloat delta = [theEvent deltaY];
          /* Mac notebooks send wheel events with delta equal to 0
	     when trackpad scrolling.  */
          if (delta == 0)
            {
              delta = [theEvent deltaX];
              if (delta == 0)
                {
                  NSTRACE_MSG ("deltaIsZero");
                  return;
                }
              emacs_event->kind = HORIZ_WHEEL_EVENT; <================
            }
          else
            emacs_event->kind = WHEEL_EVENT;

          emacs_event->code = 0;
          emacs_event->modifiers = EV_MODIFIERS (theEvent) |
            ((delta > 0) ? up_modifier : down_modifier);

when you try to scroll left or right with your mouse while
pixel-scroll-precision-mode is enabled?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 27 Sep 2022 04:16:02 GMT) Full text and rfc822 format available.

Message #19 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
To: luangruo <at> yahoo.com
Cc: tkk <at> misasa.okayama-u.ac.jp, 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 27 Sep 2022 13:15:52 +0900 (JST)
I do not know how to call debugger.
It will take a while to respond!

>>>> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
>>>> not work. Is this expected behavior?
>>>> 
>>>> 1. emacs -Q
>>>> 2. (setq mouse-wheel-tilt-scroll t)
>>>> 3. <wheel-right> or <wheel-left> scrolls buffer.
>>>> 4. (pixel-scroll-precision-mode 1)
>>>> 5. Then <wheel-right> or <wheel-left> does not scroll buffer.
>>> 
>>> Thanks for reporting this bug.  Could you please include the output from
>>> `report-emacs-bug', as this is likely a system-specific issue?
>>
>> No buffer scroll with <wheel-right> and <wheel-left> by mouse with Mac.
>> I confirm that I can scroll buffer with swipe-right and swipe-left by
>> touchpad with MacBook.
> 
> Right, thanks.  Could you please run Emacs underneath a debugger (GDB or
> LLDB), and see whether or not this code around line 7342 of nsterm.m is
> ever hit:
> 
>           CGFloat delta = [theEvent deltaY];
>           /* Mac notebooks send wheel events with delta equal to 0
> 	     when trackpad scrolling.  */
>           if (delta == 0)
>             {
>               delta = [theEvent deltaX];
>               if (delta == 0)
>                 {
>                   NSTRACE_MSG ("deltaIsZero");
>                   return;
>                 }
>               emacs_event->kind = HORIZ_WHEEL_EVENT; <================
>             }
>           else
>             emacs_event->kind = WHEEL_EVENT;
> 
>           emacs_event->code = 0;
>           emacs_event->modifiers = EV_MODIFIERS (theEvent) |
>             ((delta > 0) ? up_modifier : down_modifier);
> 
> when you try to scroll left or right with your mouse while
> pixel-scroll-precision-mode is enabled?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 27 Sep 2022 04:50:01 GMT) Full text and rfc822 format available.

Message #22 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 27 Sep 2022 12:49:34 +0800
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp> writes:

> I do not know how to call debugger.
> It will take a while to respond!

Does that mean the debugger freezes?  I'm not sure what you mean here.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Mon, 07 Nov 2022 09:35:02 GMT) Full text and rfc822 format available.

Message #25 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <homeros.misasa <at> gmail.com>
To: luangruo <at> yahoo.com
Cc: tkk <at> misasa.okayama-u.ac.jp, 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 07 Nov 2022 18:34:41 +0900
I set a break point to line 7363 and run Emacs.  Event <wheel-left>
stops at line 7373.  I'm not familiar with neither lldb and gdb.  Please
tell me the next step specifically.

TIA

$ ./configure CFLAGS="-g -O0"
$ make
$ make install
$ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) br set --file src/nsterm.m --line 7363
(lldb) run -Q
M-: (setq mouse-wheel-tilt-scroll t)
M-: (pixel-scroll-precision-mode 1)
<wheel-right>
(lldb)
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
   7350 #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 1070
   7351        {
   7352          CGFloat delta = [theEvent deltaY];
   7353          /* Mac notebooks send wheel events with delta equal to 0
   7354	     when trackpad scrolling.  */
   7355          if (delta == 0)
   7356            {
   7357              delta = [theEvent deltaX];
   7358              if (delta == 0)
   7359                {
   7360                  NSTRACE_MSG ("deltaIsZero");
   7361                  return;
   7362                }
   7363              emacs_event->kind = HORIZ_WHEEL_EVENT;
   7364            }
   7365          else
   7366            emacs_event->kind = WHEEL_EVENT;
   7367
   7368          emacs_event->code = 0;
   7369          emacs_event->modifiers = EV_MODIFIERS (theEvent) |
   7370             ((delta > 0) ? up_modifier : down_modifier);
   7371         }
   7372 #endif
-> 7373     }
   7374   else
   7375     {
   7376       Lisp_Object tab_bar_arg = Qnil;
Target 0: (Emacs) stopped.

> I do not know how to call debugger.
> It will take a while to respond!
>
>>>>> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
>>>>> not work. Is this expected behavior?
>>>>> 
>>>>> 1. emacs -Q
>>>>> 2. (setq mouse-wheel-tilt-scroll t)
>>>>> 3. <wheel-right> or <wheel-left> scrolls buffer.
>>>>> 4. (pixel-scroll-precision-mode 1)
>>>>> 5. Then <wheel-right> or <wheel-left> does not scroll buffer.
>>>> 
>>>> Thanks for reporting this bug.  Could you please include the output from
>>>> `report-emacs-bug', as this is likely a system-specific issue?
>>>
>>> No buffer scroll with <wheel-right> and <wheel-left> by mouse with Mac.
>>> I confirm that I can scroll buffer with swipe-right and swipe-left by
>>> touchpad with MacBook.
>> 
>> Right, thanks.  Could you please run Emacs underneath a debugger (GDB or
>> LLDB), and see whether or not this code around line 7342 of nsterm.m is
>> ever hit:
>> 
>>           CGFloat delta = [theEvent deltaY];
>>           /* Mac notebooks send wheel events with delta equal to 0
>> 	     when trackpad scrolling.  */
>>           if (delta == 0)
>>             {
>>               delta = [theEvent deltaX];
>>               if (delta == 0)
>>                 {
>>                   NSTRACE_MSG ("deltaIsZero");
>>                   return;
>>                 }
>>               emacs_event->kind = HORIZ_WHEEL_EVENT; <================
>>             }
>>           else
>>             emacs_event->kind = WHEEL_EVENT;
>> 
>>           emacs_event->code = 0;
>>           emacs_event->modifiers = EV_MODIFIERS (theEvent) |
>>             ((delta > 0) ? up_modifier : down_modifier);
>> 
>> when you try to scroll left or right with your mouse while
>> pixel-scroll-precision-mode is enabled?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Mon, 07 Nov 2022 09:58:01 GMT) Full text and rfc822 format available.

Message #28 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <homeros.misasa <at> gmail.com>
Cc: tkk <at> misasa.okayama-u.ac.jp, 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 07 Nov 2022 17:57:19 +0800
Tak Kunihiro <homeros.misasa <at> gmail.com> writes:

> I set a break point to line 7363 and run Emacs.  Event <wheel-left>
> stops at line 7373.  I'm not familiar with neither lldb and gdb.  Please
> tell me the next step specifically.
>
> TIA
>
> $ ./configure CFLAGS="-g -O0"
> $ make
> $ make install
> $ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
> (lldb) br set --file src/nsterm.m --line 7363
> (lldb) run -Q
> M-: (setq mouse-wheel-tilt-scroll t)
> M-: (pixel-scroll-precision-mode 1)
> <wheel-right>
> (lldb)
> * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
>     frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
>    7350 #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 1070
>    7351        {
>    7352          CGFloat delta = [theEvent deltaY];
>    7353          /* Mac notebooks send wheel events with delta equal to 0
>    7354	     when trackpad scrolling.  */
>    7355          if (delta == 0)
>    7356            {
>    7357              delta = [theEvent deltaX];
>    7358              if (delta == 0)
>    7359                {
>    7360                  NSTRACE_MSG ("deltaIsZero");
>    7361                  return;
>    7362                }
>    7363              emacs_event->kind = HORIZ_WHEEL_EVENT;
>    7364            }
>    7365          else
>    7366            emacs_event->kind = WHEEL_EVENT;
>    7367
>    7368          emacs_event->code = 0;
>    7369          emacs_event->modifiers = EV_MODIFIERS (theEvent) |
>    7370             ((delta > 0) ? up_modifier : down_modifier);
>    7371         }
>    7372 #endif
> -> 7373     }
>    7374   else
>    7375     {
>    7376       Lisp_Object tab_bar_arg = Qnil;
> Target 0: (Emacs) stopped.

Thanks.  I just realized that the code I asked you to break on is not
defined on your system.

Would you please print out the values of the following variables
instead?

  (lldb) p horizontal
  (lldb) p emacs_event->kind
  (lldb) p totalDeltaX




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 01:36:01 GMT) Full text and rfc822 format available.

Message #31 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>,
 57995 <at> debbugs.gnu.org
Cc: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 8 Nov 2022 10:34:42 +0900
Without modifying break point, I got following results.

> (lldb) p horizontal
(bool) $0 = true
> (lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
> (lldb) p totalDeltaX

(int) $2 = 0

HTH

$ ./configure CFLAGS="-g -O0"
$ make
$ make install
$ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) br set --file src/nsterm.m --line 7363
(lldb) run -Q
M-: (setq mouse-wheel-tilt-scroll t)
M-: (pixel-scroll-precision-mode 1)
<wheel-right>
(lldb)
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
   frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
   7350 #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 1070
   7351        {
   7352          CGFloat delta = [theEvent deltaY];
   7353          /* Mac notebooks send wheel events with delta equal to 0
   7354     when trackpad scrolling.  */
   7355          if (delta == 0)
   7356            {
   7357              delta = [theEvent deltaX];
   7358              if (delta == 0)
   7359                {
   7360                  NSTRACE_MSG ("deltaIsZero");
   7361                  return;
   7362                }
   7363              emacs_event->kind = HORIZ_WHEEL_EVENT;
   7364            }
   7365          else
   7366            emacs_event->kind = WHEEL_EVENT;
   7367
   7368          emacs_event->code = 0;
   7369          emacs_event->modifiers = EV_MODIFIERS (theEvent) |
   7370             ((delta > 0) ? up_modifier : down_modifier);
   7371         }
   7372 #endif
-> 7373     }
   7374   else
   7375     {
   7376       Lisp_Object tab_bar_arg = Qnil;
Target 0: (Emacs) stopped.
(lldb) p horizontal
(bool) $0 = true
(lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
(lldb) p totalDeltaX
(int) $2 = 0
(lldb)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 01:44:01 GMT) Full text and rfc822 format available.

Message #34 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 08 Nov 2022 09:42:55 +0800
Tak Kunihiro <tak.kunihiro <at> gmail.com> writes:

> Without modifying break point, I got following results.
>
>> (lldb) p horizontal
> (bool) $0 = true
>> (lldb) p emacs_event->kind
> (event_kind) $1 = HORIZ_WHEEL_EVENT
>> (lldb) p totalDeltaX
>
> (int) $2 = 0

Would you please print the contents of the following variables as well?

  (lldb) p emacs_event->modifiers
  (lldb) p scrollUp
  (lldb) p delta

TIA.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 01:49:01 GMT) Full text and rfc822 format available.

Message #37 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 57995 <at> debbugs.gnu.org, Tak Kunihiro <tak.kunihiro <at> gmail.com>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 8 Nov 2022 10:47:50 +0900
I typed in the results.

>  (lldb) p emacs_event->modifiers
(unsigned int) $0 = 2
>  (lldb) p scrollUp
(int) $1 = 0
>  (lldb) p delta
error: expression failed to parse:
error: <user expression 2>:1:1: use of undeclared identifier 'delta'
delta
^

HTH

$ ./configure CFLAGS="-g -O0"
$ make
$ make install
$ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) br set --file src/nsterm.m --line 7363
(lldb) run -Q
M-: (setq mouse-wheel-tilt-scroll t)
M-: (pixel-scroll-precision-mode 1)
<wheel-right>
(lldb)
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
  7370             ((delta > 0) ? up_modifier : down_modifier);
  7371         }
  7372 #endif
-> 7373     }
  7374   else
  7375     {
  7376       Lisp_Object tab_bar_arg = Qnil;
Target 0: (Emacs) stopped.
(lldb) p horizontal
(bool) $0 = true
(lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
(lldb) p totalDeltaX
(int) $2 = 0
(lldb) p emacs_event->modifiers
(unsigned int) $0 = 2
(lldb) p scrollUp
(int) $1 = 0
(lldb) p delta
error: expression failed to parse:
error: <user expression 2>:1:1: use of undeclared identifier 'delta'
delta
^
(lldb)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 05:25:02 GMT) Full text and rfc822 format available.

Message #40 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 08 Nov 2022 13:23:52 +0800
Tak Kunihiro <tak.kunihiro <at> gmail.com> writes:

> I typed in the results.
>
>>  (lldb) p emacs_event->modifiers
> (unsigned int) $0 = 2
>>  (lldb) p scrollUp
> (int) $1 = 0
>>  (lldb) p delta
> error: expression failed to parse:
> error: <user expression 2>:1:1: use of undeclared identifier 'delta'
> delta

Rright... what if you replace "delta" with "[theEvent scrollingDeltaX]"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 05:29:02 GMT) Full text and rfc822 format available.

Message #43 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 57995 <at> debbugs.gnu.org, Tak Kunihiro <tak.kunihiro <at> gmail.com>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 8 Nov 2022 14:28:36 +0900
> (lldb) p [theEvent scrollingDeltaX]
(CGFloat) $0 = -1

HTH

$ ./configure CFLAGS="-g -O0"
$ make
$ make install
$ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) br set --file src/nsterm.m --line 7363
(lldb) run -Q
M-: (setq mouse-wheel-tilt-scroll t)
M-: (pixel-scroll-precision-mode 1)
<wheel-right>
(lldb)
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
 frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
 7370             ((delta > 0) ? up_modifier : down_modifier);
 7371         }
 7372 #endif
-> 7373     }
 7374   else
 7375     {
 7376       Lisp_Object tab_bar_arg = Qnil;
Target 0: (Emacs) stopped.
(lldb) p horizontal
(bool) $0 = true
(lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
(lldb) p totalDeltaX
(int) $2 = 0
(lldb) p emacs_event->modifiers
(unsigned int) $0 = 2
(lldb) p scrollUp
(int) $1 = 0
(lldb) p delta
error: expression failed to parse:
error: <user expression 2>:1:1: use of undeclared identifier 'delta'
delta
^
(lldb) p [theEvent scrollingDeltaX]
(CGFloat) $0 = -1
(lldb)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Tue, 08 Nov 2022 08:11:01 GMT) Full text and rfc822 format available.

Message #46 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 08 Nov 2022 16:10:32 +0800
Tak Kunihiro <tak.kunihiro <at> gmail.com> writes:

>> (lldb) p [theEvent scrollingDeltaX]
> (CGFloat) $0 = -1
>
> HTH

That looks completely normal!

I am lost here.  I will try to reproduce this on a Macbook tomorrow.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Sun, 03 Sep 2023 09:22:02 GMT) Full text and rfc822 format available.

Message #49 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 57995 <at> debbugs.gnu.org, Tak Kunihiro <tak.kunihiro <at> gmail.com>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Sun, 3 Sep 2023 02:20:56 -0700
Po Lu <luangruo <at> yahoo.com> writes:

> Tak Kunihiro <tak.kunihiro <at> gmail.com> writes:
>
>>> (lldb) p [theEvent scrollingDeltaX]
>> (CGFloat) $0 = -1
>>
>> HTH
>
> That looks completely normal!
>
> I am lost here.  I will try to reproduce this on a Macbook tomorrow.

Po Lu, did you make any progress with this bug?




Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Sep 2023 09:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Sun, 03 Sep 2023 09:38:01 GMT) Full text and rfc822 format available.

Message #54 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 57995 <at> debbugs.gnu.org, Tak Kunihiro <tak.kunihiro <at> gmail.com>
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Sun, 03 Sep 2023 17:36:41 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Po Lu <luangruo <at> yahoo.com> writes:
>
>> Tak Kunihiro <tak.kunihiro <at> gmail.com> writes:
>>
>>>> (lldb) p [theEvent scrollingDeltaX]
>>> (CGFloat) $0 = -1
>>>
>>> HTH
>>
>> That looks completely normal!
>>
>> I am lost here.  I will try to reproduce this on a Macbook tomorrow.
>
> Po Lu, did you make any progress with this bug?

I don't remember.  Tak, are you still experiencing this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57995; Package emacs. (Mon, 04 Sep 2023 00:19:02 GMT) Full text and rfc822 format available.

Message #57 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
To: luangruo <at> yahoo.com
Cc: tak.kunihiro <at> gmail.com, 57995 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 04 Sep 2023 09:18:10 +0900 (JST)
>>>>> (lldb) p [theEvent scrollingDeltaX]
>>>> (CGFloat) $0 = -1
>>>>
>>>> HTH
>>>
>>> That looks completely normal!
>>>
>>> I am lost here.  I will try to reproduce this on a Macbook tomorrow.
>>
>> Po Lu, did you make any progress with this bug?
>
> I don't remember.  Tak, are you still experiencing this?

I checked on the following build and I do not see the problem.
I think that it is fixed.

GNU Emacs 29.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60
 Version 10.14.6 (Build 18G9323)) of 2023-07-30




Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Mon, 04 Sep 2023 13:14:01 GMT) Full text and rfc822 format available.

Notification sent to Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>:
bug acknowledged by developer. (Mon, 04 Sep 2023 13:14:02 GMT) Full text and rfc822 format available.

Message #62 received at 57995-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: tak.kunihiro <at> gmail.com, 57995-done <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 04 Sep 2023 21:13:18 +0800
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp> writes:

>>>>>> (lldb) p [theEvent scrollingDeltaX]
>>>>> (CGFloat) $0 = -1
>>>>>
>>>>> HTH
>>>>
>>>> That looks completely normal!
>>>>
>>>> I am lost here.  I will try to reproduce this on a Macbook tomorrow.
>>>
>>> Po Lu, did you make any progress with this bug?
>>
>> I don't remember.  Tak, are you still experiencing this?
>
> I checked on the following build and I do not see the problem.
> I think that it is fixed.
>
> GNU Emacs 29.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60
>  Version 10.14.6 (Build 18G9323)) of 2023-07-30

Closing, thank you.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Oct 2023 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.