* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working @ 2023-08-18 5:15 Vincent Torri 2023-08-18 5:41 ` Eli Zaretskii 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-18 5:15 UTC (permalink / raw) To: 65360 Hello I have a DELL XPS 13 with Windows 10, and I installed emacs 29.1 with msys2. When I try to scroll vertically to the bottom of the file with touchpad, using 2 fingers, emacs content is going briefly to bottom then is going upper no problem with other applications Vincent Torri ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 5:15 bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working Vincent Torri @ 2023-08-18 5:41 ` Eli Zaretskii 2023-08-18 5:51 ` Vincent Torri 0 siblings, 1 reply; 10+ messages in thread From: Eli Zaretskii @ 2023-08-18 5:41 UTC (permalink / raw) To: Vincent Torri; +Cc: 65360 merge 65360 65070 thanks > From: Vincent Torri <vincent.torri@gmail.com> > Date: Fri, 18 Aug 2023 07:15:39 +0200 > > I have a DELL XPS 13 with Windows 10, and I installed emacs 29.1 with > msys2. When I try to scroll vertically to the bottom of the file with > touchpad, using 2 fingers, emacs content is going briefly to bottom > then is going upper This is a known bug#65070. Unfortunately, we don't currently have anyone with access to such a machine who could debug the relevant code and tell what is wrong with it. If you can run Emacs under GDB on that machine and report some findings (I can provide more detailed instructions), we might be able to fix this. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 5:41 ` Eli Zaretskii @ 2023-08-18 5:51 ` Vincent Torri 2023-08-18 6:29 ` Eli Zaretskii 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-18 5:51 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 65360 On Fri, Aug 18, 2023 at 7:40 AM Eli Zaretskii <eliz@gnu.org> wrote: > > merge 65360 65070 > thanks > > > From: Vincent Torri <vincent.torri@gmail.com> > > Date: Fri, 18 Aug 2023 07:15:39 +0200 > > > > I have a DELL XPS 13 with Windows 10, and I installed emacs 29.1 with > > msys2. When I try to scroll vertically to the bottom of the file with > > touchpad, using 2 fingers, emacs content is going briefly to bottom > > then is going upper > > This is a known bug#65070. ok > Unfortunately, we don't currently have > anyone with access to such a machine who could debug the relevant code > and tell what is wrong with it. If you can run Emacs under GDB on > that machine and report some findings (I can provide more detailed > instructions), we might be able to fix this. I can do that, tell me what to do Vincent ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 5:51 ` Vincent Torri @ 2023-08-18 6:29 ` Eli Zaretskii 2023-08-18 6:41 ` Vincent Torri 0 siblings, 1 reply; 10+ messages in thread From: Eli Zaretskii @ 2023-08-18 6:29 UTC (permalink / raw) To: Vincent Torri; +Cc: 65360 > From: Vincent Torri <vincent.torri@gmail.com> > Date: Fri, 18 Aug 2023 07:51:45 +0200 > Cc: 65360@debbugs.gnu.org > > > Unfortunately, we don't currently have > > anyone with access to such a machine who could debug the relevant code > > and tell what is wrong with it. If you can run Emacs under GDB on > > that machine and report some findings (I can provide more detailed > > instructions), we might be able to fix this. > > I can do that, tell me what to do Thank you. The relevant code is in w32term.c:w32_construct_mouse_wheel. For starters, could you please step through that function and tell what you see when you scroll with the touchpad? In particular, does the value of 'delta' become positive or negative depending on the direction of the scrolling? Also, what are the computed values of p.x and p.y, and what are the values in the structure pointer to by 'result' immediately before the function returns? Note: to be able to show values of Lisp objects, you need to tell GDB to read the src/.gdbinit file in the Emacs source tree: (gdb) source /path/to/emacs/src/.gdbinit P.S. It goes without saying that you will need to have the sources of Emacs 29.1 available, if you don't already. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 6:29 ` Eli Zaretskii @ 2023-08-18 6:41 ` Vincent Torri 2023-08-18 6:56 ` Eli Zaretskii 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-18 6:41 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 65360 On Fri, Aug 18, 2023 at 8:28 AM Eli Zaretskii <eliz@gnu.org> wrote: > > > From: Vincent Torri <vincent.torri@gmail.com> > > Date: Fri, 18 Aug 2023 07:51:45 +0200 > > Cc: 65360@debbugs.gnu.org > > > > > Unfortunately, we don't currently have > > > anyone with access to such a machine who could debug the relevant code > > > and tell what is wrong with it. If you can run Emacs under GDB on > > > that machine and report some findings (I can provide more detailed > > > instructions), we might be able to fix this. > > > > I can do that, tell me what to do > > Thank you. > > The relevant code is in w32term.c:w32_construct_mouse_wheel. ok > For > starters, could you please step through that function and tell what > you see when you scroll with the touchpad? In particular, does the > value of 'delta' become positive or negative depending on the > direction of the scrolling? Also, what are the computed values of p.x > and p.y, and what are the values in the structure pointer to by > 'result' immediately before the function returns? > > Note: to be able to show values of Lisp objects, you need to tell GDB > to read the src/.gdbinit file in the Emacs source tree: > > (gdb) source /path/to/emacs/src/.gdbinit > > P.S. It goes without saying that you will need to have the sources of > Emacs 29.1 available, if you don't already. maybe it will be simpler for me to compile emacs and debug it directly with some printf(). At least i know where to look at now Vincent ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 6:41 ` Vincent Torri @ 2023-08-18 6:56 ` Eli Zaretskii 2023-08-18 7:01 ` Vincent Torri 0 siblings, 1 reply; 10+ messages in thread From: Eli Zaretskii @ 2023-08-18 6:56 UTC (permalink / raw) To: Vincent Torri; +Cc: 65360 > From: Vincent Torri <vincent.torri@gmail.com> > Date: Fri, 18 Aug 2023 08:41:05 +0200 > Cc: 65360@debbugs.gnu.org > > maybe it will be simpler for me to compile emacs and debug it directly > with some printf(). At least i know where to look at now That can also be done, with the caveats that: . to look at some variable, you will have to add code and recompile Emacs . if the function(s) in question are invoked frequently when you scroll, you will have a lot of output, without a good way of knowing which output was caused by which UI gesture But that doesn't make printf-debugging impossible, so if it's easier for you, let's try that! Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 6:56 ` Eli Zaretskii @ 2023-08-18 7:01 ` Vincent Torri 2023-08-18 19:47 ` Vincent Torri 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-18 7:01 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 65360 On Fri, Aug 18, 2023 at 8:56 AM Eli Zaretskii <eliz@gnu.org> wrote: > > > From: Vincent Torri <vincent.torri@gmail.com> > > Date: Fri, 18 Aug 2023 08:41:05 +0200 > > Cc: 65360@debbugs.gnu.org > > > > maybe it will be simpler for me to compile emacs and debug it directly > > with some printf(). At least i know where to look at now > > That can also be done, with the caveats that: > > . to look at some variable, you will have to add code and recompile > Emacs normally, make will recompile only what is needed, one file > . if the function(s) in question are invoked frequently when you > scroll, you will have a lot of output, without a good way of > knowing which output was caused by which UI gesture well, there will not a lot of output : just scrolling once to the bottom is problematic > But that doesn't make printf-debugging impossible, so if it's easier > for you, let's try that! i'll inform you about what I get Vincent ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 7:01 ` Vincent Torri @ 2023-08-18 19:47 ` Vincent Torri 2023-08-26 3:00 ` Vincent Torri 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-18 19:47 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 65360 On Fri, Aug 18, 2023 at 9:01 AM Vincent Torri <vincent.torri@gmail.com> wrote: > > On Fri, Aug 18, 2023 at 8:56 AM Eli Zaretskii <eliz@gnu.org> wrote: > > > > > From: Vincent Torri <vincent.torri@gmail.com> > > > Date: Fri, 18 Aug 2023 08:41:05 +0200 > > > Cc: 65360@debbugs.gnu.org > > > > > > maybe it will be simpler for me to compile emacs and debug it directly > > > with some printf(). At least i know where to look at now > > > > That can also be done, with the caveats that: > > > > . to look at some variable, you will have to add code and recompile > > Emacs > > normally, make will recompile only what is needed, one file > > > . if the function(s) in question are invoked frequently when you > > scroll, you will have a lot of output, without a good way of > > knowing which output was caused by which UI gesture > > well, there will not a lot of output : just scrolling once to the > bottom is problematic > > > But that doesn't make printf-debugging impossible, so if it's easier > > for you, let's try that! > > i'll inform you about what I get - when I move two fingers from bottom to top of the touchpad, i get for example: * delta: -1 * p 2227 x 1414 delta is always negative in that case - when I move two fingers from top to bottom of the touchpad, i get for example: * delta: 4 * p 2205 x 1336 delta is always positive in that case I've also found that the function always exits in that test, in case it helps: if (eabs (sum_delta_y) < WHEEL_DELTA) { result->kind = NO_EVENT; return Qnil; } Unrelated : you should check the warnings, at least on Windows, because i've seen a NULL pointer dereference, and several use of uninitialized variables Vincent ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-18 19:47 ` Vincent Torri @ 2023-08-26 3:00 ` Vincent Torri 2023-08-26 5:52 ` Eli Zaretskii 0 siblings, 1 reply; 10+ messages in thread From: Vincent Torri @ 2023-08-26 3:00 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 65360 hello it is fixed in current git thank you Vincent Torri ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working 2023-08-26 3:00 ` Vincent Torri @ 2023-08-26 5:52 ` Eli Zaretskii 0 siblings, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2023-08-26 5:52 UTC (permalink / raw) To: Vincent Torri; +Cc: 65360-done > From: Vincent Torri <vincent.torri@gmail.com> > Date: Sat, 26 Aug 2023 05:00:53 +0200 > Cc: 65360@debbugs.gnu.org > > hello > > it is fixed in current git Thanks for testing, and for helping to diagnose the issue. I'm therefore closing this bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-08-26 5:52 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-08-18 5:15 bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working Vincent Torri 2023-08-18 5:41 ` Eli Zaretskii 2023-08-18 5:51 ` Vincent Torri 2023-08-18 6:29 ` Eli Zaretskii 2023-08-18 6:41 ` Vincent Torri 2023-08-18 6:56 ` Eli Zaretskii 2023-08-18 7:01 ` Vincent Torri 2023-08-18 19:47 ` Vincent Torri 2023-08-26 3:00 ` Vincent Torri 2023-08-26 5:52 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).