unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Torri <vincent.torri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 65360@debbugs.gnu.org
Subject: bug#65360: emacs 29.1 with MSYS2: vertical scrolling with touchpad not working
Date: Fri, 18 Aug 2023 21:47:10 +0200	[thread overview]
Message-ID: <CAMq1adoJECLnaz2BzjZs22gLXqQf7RhnCXW+oQcbvR7F3o0DzA@mail.gmail.com> (raw)
In-Reply-To: <CAMq1adoFrpUqqXKUWbgOv2vaf8UT9=VLvA5t1gkayG48_h-fDA@mail.gmail.com>

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





  reply	other threads:[~2023-08-18 19:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-08-26  3:00               ` Vincent Torri
2023-08-26  5:52                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMq1adoJECLnaz2BzjZs22gLXqQf7RhnCXW+oQcbvR7F3o0DzA@mail.gmail.com \
    --to=vincent.torri@gmail.com \
    --cc=65360@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).