all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#57995: <wheel-right> with pixel-scroll-precision-mode
@ 2022-09-22  3:50 Tak Kunihiro
  2022-09-22  8:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-09-22  3:50 UTC (permalink / raw)
  To: 57995; +Cc: tkk

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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-22  3:50 bug#57995: <wheel-right> with pixel-scroll-precision-mode Tak Kunihiro
@ 2022-09-22  8:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-26  5:43   ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-22  8:55 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tkk@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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-22  8:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-26  5:43   ` Tak Kunihiro
  2022-09-26  7:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-09-26  5:43 UTC (permalink / raw)
  To: Po Lu, 57995; +Cc: Tak Kunihiro

>> 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))






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-26  5:43   ` Tak Kunihiro
@ 2022-09-26  7:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-27  4:15       ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-26  7:57 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tkk@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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-26  7:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-27  4:15       ` Tak Kunihiro
  2022-09-27  4:49         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-07  9:34         ` Tak Kunihiro
  0 siblings, 2 replies; 18+ messages in thread
From: Tak Kunihiro @ 2022-09-27  4:15 UTC (permalink / raw)
  To: luangruo; +Cc: tkk, 57995

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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-27  4:15       ` Tak Kunihiro
@ 2022-09-27  4:49         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-07  9:34         ` Tak Kunihiro
  1 sibling, 0 replies; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-27  4:49 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tkk@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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-09-27  4:15       ` Tak Kunihiro
  2022-09-27  4:49         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-07  9:34         ` Tak Kunihiro
  2022-11-07  9:57           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-11-07  9:34 UTC (permalink / raw)
  To: luangruo; +Cc: tkk, 57995

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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-07  9:34         ` Tak Kunihiro
@ 2022-11-07  9:57           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-08  1:34             ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-07  9:57 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: tkk, 57995

Tak Kunihiro <homeros.misasa@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





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-07  9:57           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-08  1:34             ` Tak Kunihiro
  2022-11-08  1:42               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-11-08  1:34 UTC (permalink / raw)
  To: Po Lu, 57995; +Cc: Tak Kunihiro

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)






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  1:34             ` Tak Kunihiro
@ 2022-11-08  1:42               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-08  1:47                 ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-08  1:42 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tak.kunihiro@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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  1:42               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-08  1:47                 ` Tak Kunihiro
  2022-11-08  5:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-11-08  1:47 UTC (permalink / raw)
  To: Po Lu; +Cc: 57995, Tak Kunihiro

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)






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  1:47                 ` Tak Kunihiro
@ 2022-11-08  5:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-11-08  5:28                     ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-08  5:23 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tak.kunihiro@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]"?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  5:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-08  5:28                     ` Tak Kunihiro
  2022-11-08  8:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2022-11-08  5:28 UTC (permalink / raw)
  To: Po Lu; +Cc: 57995, Tak Kunihiro

> (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)






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  5:28                     ` Tak Kunihiro
@ 2022-11-08  8:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-03  9:20                         ` Stefan Kangas
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-08  8:10 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 57995

Tak Kunihiro <tak.kunihiro@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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2022-11-08  8:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-03  9:20                         ` Stefan Kangas
  2023-09-03  9:36                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Stefan Kangas @ 2023-09-03  9:20 UTC (permalink / raw)
  To: Po Lu; +Cc: 57995, Tak Kunihiro

Po Lu <luangruo@yahoo.com> writes:

> Tak Kunihiro <tak.kunihiro@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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2023-09-03  9:20                         ` Stefan Kangas
@ 2023-09-03  9:36                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-04  0:18                             ` Tak Kunihiro
  0 siblings, 1 reply; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-03  9:36 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 57995, Tak Kunihiro

Stefan Kangas <stefankangas@gmail.com> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>> Tak Kunihiro <tak.kunihiro@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?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2023-09-03  9:36                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-04  0:18                             ` Tak Kunihiro
  2023-09-04 13:13                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Tak Kunihiro @ 2023-09-04  0:18 UTC (permalink / raw)
  To: luangruo; +Cc: tak.kunihiro, 57995, stefankangas

>>>>> (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





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#57995: <wheel-right> with pixel-scroll-precision-mode
  2023-09-04  0:18                             ` Tak Kunihiro
@ 2023-09-04 13:13                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 18+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-04 13:13 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: tak.kunihiro, 57995-done, stefankangas

Tak Kunihiro <tkk@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.





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-09-04 13:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-22  3:50 bug#57995: <wheel-right> with pixel-scroll-precision-mode Tak Kunihiro
2022-09-22  8:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-26  5:43   ` Tak Kunihiro
2022-09-26  7:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-27  4:15       ` Tak Kunihiro
2022-09-27  4:49         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-07  9:34         ` Tak Kunihiro
2022-11-07  9:57           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  1:34             ` Tak Kunihiro
2022-11-08  1:42               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  1:47                 ` Tak Kunihiro
2022-11-08  5:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  5:28                     ` Tak Kunihiro
2022-11-08  8:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-03  9:20                         ` Stefan Kangas
2023-09-03  9:36                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-04  0:18                             ` Tak Kunihiro
2023-09-04 13:13                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.