all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: luangruo@yahoo.com, monnier@iro.umontreal.ca, 57320@debbugs.gnu.org
Subject: bug#57320: 29.0.50; Lucid menus can't be operated with the mouse
Date: Sun, 04 Sep 2022 08:20:23 +0300	[thread overview]
Message-ID: <834jxnn2aw.fsf@gnu.org> (raw)
In-Reply-To: <87mtbfwy94.fsf@gmail.com> (message from Visuwesh on Sun, 04 Sep 2022 10:07:43 +0530)

> Cc: Stefan <monnier@iro.umontreal.ca>, 57320@debbugs.gnu.org
> From: Visuwesh <visuweshm@gmail.com>
> Date: Sun, 04 Sep 2022 10:07:43 +0530
> 
> [திங்கள் ஆகஸ்ட் 22, 2022] Po Lu wrote:
> 
> > Please put a breakpoint on line 2879 of xlwmenu.c and tell me what
> > XtGrabPointer returns.  Make sure to do this from another machine, since
> > grabbing will not work if you switch windows or click anywhere else.
> 
> I wasn't sure how to make gdb tell me what XtGrabPointer returned but I
> said `s' after the breakpoint hit and it jumped to line 2890 so I think
> it means XtGrabPointer returned Success?  Anyway, here's the *gud-emacs*
> buffer,
> 
>     (gdb) run -Q
>     Starting program: /home/viz/lib/ports/emacs/src/emacs -Q
>     [Thread debugging using libthread_db enabled]
>     Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>     [New Thread 0x7ffff15fe640 (LWP 56454)]
>     [New Thread 0x7ffff0c6d640 (LWP 56455)]
>     [New Thread 0x7fffebfff640 (LWP 56456)]
> 
>     Thread 1 "emacs" hit Breakpoint 3, pop_up_menu (mw=0x55555617dfe0, event=0x7fffffffd5a0) at xlwmenu.c:2879
>     2879	  if (XtGrabPointer ((Widget)mw, False,
>     (gdb) s
>     2890		  && lucid__menu_grab_keyboard
> 
> 
> [ P.S. What is the right value way to do get what XtGrabPointer
>   returned?  This is most probably suboptimal.  ]

One way is to step into XtGrabPointer, with either "step" or "stepi",
and then type "finish".  The "finish" command displays the value
returned by the function in which you type the command.  (You will
need "stepi" if the library that implements XtGrabPointer has no
symbols, in which case GDB will be unable to "step" into its
functions.)





  reply	other threads:[~2022-09-04  5:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-21 14:43 bug#57320: 29.0.50; Lucid menus can't be operated with the mouse Stefan via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-21 15:00 ` Lars Ingebrigtsen
2022-08-21 15:08   ` Visuwesh
2022-08-21 15:11     ` Lars Ingebrigtsen
2022-08-22  1:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30  7:23   ` Visuwesh
2022-08-30 10:07     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 14:08       ` Visuwesh
2022-08-31  1:33         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-31  8:22           ` Visuwesh
2022-08-31 11:17             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-31 14:19               ` Visuwesh
2022-09-04  4:37   ` Visuwesh
2022-09-04  5:20     ` Eli Zaretskii [this message]
2022-09-04  5:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-04  5:54       ` Visuwesh
2022-09-04  6:09         ` Eli Zaretskii
2022-09-04  6:43           ` Visuwesh
2022-09-04  8:34             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-04  8:41               ` Visuwesh
2022-09-06  9:44         ` Jean Louis
2022-09-06  8:33   ` Jean Louis
2022-09-06 10:23     ` Visuwesh
2022-09-06  8:22 ` Jean Louis

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

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

  git send-email \
    --in-reply-to=834jxnn2aw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=57320@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=visuweshm@gmail.com \
    /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 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.