unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Eli Zaretskii <eliz@gnu.org>
Cc: 12204@debbugs.gnu.org
Subject: bug#12204: 24.1.50; Binding mouse-movement interferes with "C-h c" for mouse clicks
Date: Sun, 11 Jun 2017 20:18:54 -0400	[thread overview]
Message-ID: <87bmpuukgh.fsf@users.sourceforge.net> (raw)
In-Reply-To: <83ehn9jnrh.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 14 Aug 2012 22:07:30 +0300")

tags 12204 + confirmed
found 12204 25.2
severity 12204 minor
quit

Eli Zaretskii <eliz@gnu.org> writes:

>     emacs -Q
>     M-x gdb RET
>
>  . Choose some executable, it doesn't matter which one, and type its file
>    name followed by RET.
>
>  . Wait for GDB to start up and show its prompt, then type:
>
>     M-x gud-tooltip-mode RET
>
>  . If your Emacs bzr revision is older than 109615, click the mouse
>    once somewhere in the window.  (Revision 109615 fixed the bug which
>    required that click.)
>
>  . Type "C-h c", and then move the mouse to some tool-bar button or
>    menu-bar menu item, and click on it.  Watch in disbelief as Emacs
>    _executes_ the command bound to that click instead of showing its
>    documentation.
>
>  . Repeat the experiment, but this time, after "C-h c" slowly move the
>    mouse a small ways and watch the echo area.  You will see a message
>    there:
>
>      <mouse-movement> runs the command gud-tooltip-mouse-motion
>
>    The message will disappear after you move the mouse again.
>
> This happens because gud-tooltip-mode binds the command
> gud-tooltip-mouse-motion to mouse-movement event.  The echo area
> display of "C-h c" about that is promptly erased by the next mouse
> motion, so if you are going for a tool bar or menu bar, you won't
> notice it.  Then you will be surprised by the execution of a command
> for which you wanted to see help.
>
> This is not a bug, strictly speaking: the help command works as
> designed.  But I wonder whether we could somehow surprise the user
> less in this situation.

Perhaps describe-key could respect 'use-dialog-box' and popup a dialog
box when the "key" comes from the mouse?

Also, if I understand the gud.el code, it seems like it might be better
implemented if the 'help-echo' or 'mouse-face' text properties were
extended to support a value of 2 functions: a 'mouse-in' and a
'mouse-out' function.






  reply	other threads:[~2017-06-12  0:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14 19:07 bug#12204: 24.1.50; Binding mouse-movement interferes with "C-h c" for mouse clicks Eli Zaretskii
2017-06-12  0:18 ` npostavs [this message]
2017-06-12 14:10   ` Eli Zaretskii
2017-06-12 16:58     ` Noam Postavsky
2017-06-12 17:07       ` Eli Zaretskii
2017-06-12 17:15         ` Noam Postavsky
2017-06-12 17:20           ` Eli Zaretskii
2017-06-25  3:18             ` npostavs
2017-06-25 13:49               ` Eli Zaretskii
2017-07-01 14:10                 ` npostavs

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=87bmpuukgh.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=12204@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).