From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs 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 Message-ID: <87bmpuukgh.fsf@users.sourceforge.net> References: <83ehn9jnrh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497226694 23007 195.159.176.226 (12 Jun 2017 00:18:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2017 00:18:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 12204@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 12 02:18:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD3Z-0005fu-FS for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jun 2017 02:18:09 +0200 Original-Received: from localhost ([::1]:35565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKD3e-00007A-Oi for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Jun 2017 20:18:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKD3Y-00005w-27 for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 20:18:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKD3T-0002fH-17 for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 20:18:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKD3S-0002eh-UL for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 20:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dKD3S-0004CB-Ia for bug-gnu-emacs@gnu.org; Sun, 11 Jun 2017 20:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Jun 2017 00:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12204-submit@debbugs.gnu.org id=B12204.149722664516067 (code B ref 12204); Mon, 12 Jun 2017 00:18:02 +0000 Original-Received: (at 12204) by debbugs.gnu.org; 12 Jun 2017 00:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:41575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD2q-0004B0-Jv for submit@debbugs.gnu.org; Sun, 11 Jun 2017 20:17:24 -0400 Original-Received: from mail-io0-f194.google.com ([209.85.223.194]:36383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD2o-0004Ag-NF; Sun, 11 Jun 2017 20:17:23 -0400 Original-Received: by mail-io0-f194.google.com with SMTP id i93so9163869iod.3; Sun, 11 Jun 2017 17:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tiCZ+m3KjmFSa4f9yFql7AAMdtzS5/uj1ysHqE78qEw=; b=nYcGsWwqxuAD4W/hOzNWsYAwvUYyK5APi5iPI8Stv8hW4rk4BJC580xcFnbgJChkHI SvvX6n2SunLlkDw2YdujXLzq6OWMTdXGDXKwDVQmx6YDhp/l3AjZLiJL3dmrYz09DjIB 4GbcKQoaDsAwKZVcW0kk6jhAVP+uDV99bYEkQIGpudbpg0ZWBUnHF9Aq/9fR46Xf5ZNp aQuKEN32swpDuso39VeulsgQPsugZk7wrVQD0/qSU64SJe9CJ2M5i3I4/XxAUn8ZklpH j3kkFJSs2psHeWdWoKvKzxVa8KEIhsFoBYaXefgpgUI5+vZJ31C3NJoVgyRLMPwrFl3V 2vhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=tiCZ+m3KjmFSa4f9yFql7AAMdtzS5/uj1ysHqE78qEw=; b=G3h3C746FdMMGJ7jIeJ34xEuEVYbINBbxBeDcqDgtvGCxiBvlgIaOuthN4pB7/ETV+ kw3UWM+4deaDLUdVCfN5dE720wih5gzA3GiRozpYYrfPTwrjujYNcO8gZpd6YtZw2QNk NzNKzbQSQHcY/c94FmFCwccd0H/zJ02YWicb6etsfIPVDJT6x/Aas9JbR9+RCrrMmris /W0ZzhdMkddjnR/meRFwgI0s+KYQ13d2NDfTcpArLEJy66crMNMA/5RNAyNwKLTIFXOD 9Wu+t18qqcqrdmL7e+Z478010hnfX8uskmTc2ohj5S5pTjpFmTK/oLD+BDRYsQPeC3Hb ePdg== X-Gm-Message-State: AKS2vOzTOTsr3pyFjvfmfbaaB98Zt2wXG3YpBvHfMij3moZqkVRcRoFU myoqdjGXxbQtkAYO X-Received: by 10.107.162.145 with SMTP id l139mr15726887ioe.211.1497226637077; Sun, 11 Jun 2017 17:17:17 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y40sm5326513ita.2.2017.06.11.17.17.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Jun 2017 17:17:16 -0700 (PDT) In-Reply-To: <83ehn9jnrh.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 14 Aug 2012 22:07:30 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133487 Archived-At: tags 12204 + confirmed found 12204 25.2 severity 12204 minor quit Eli Zaretskii 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: > > 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.