From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12204: 24.1.50; Binding mouse-movement interferes with "C-h c" for mouse clicks Date: Tue, 14 Aug 2012 22:07:30 +0300 Message-ID: <83ehn9jnrh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344971310 28107 80.91.229.3 (14 Aug 2012 19:08:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2012 19:08:30 +0000 (UTC) To: 12204@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 21:08:31 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T1MTd-0007Xj-1h for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 21:08:29 +0200 Original-Received: from localhost ([::1]:48145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MTb-0004Sn-Hn for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 15:08:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MTY-0004SR-FN for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:08:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1MTX-00032Q-5e for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:08:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MTX-00032E-2P for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:08:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1Mbu-0001V8-58 for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Aug 2012 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13449717755706 (code B ref -1); Tue, 14 Aug 2012 19:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2012 19:16:15 +0000 Original-Received: from localhost ([127.0.0.1]:56926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Mb8-0001Ty-PX for submit@debbugs.gnu.org; Tue, 14 Aug 2012 15:16:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57977) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Mb5-0001Tq-JP for submit@debbugs.gnu.org; Tue, 14 Aug 2012 15:16:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1MSg-0002xR-Sp for submit@debbugs.gnu.org; Tue, 14 Aug 2012 15:07:32 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MSg-0002xJ-PS for submit@debbugs.gnu.org; Tue, 14 Aug 2012 15:07:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MSf-0004Q4-GA for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:07:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1MSe-0002ww-0R for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:07:29 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1MSd-0002wm-OJ for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 15:07:27 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M8R00J00EC28600@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 22:07:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8R00I3BEGDWO80@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 22:07:25 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63177 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 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. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/gnu/bzr/emacs/trunk/etc/DEBUG. In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600) of 2012-08-14 on HOME-C4E4A596F7 Bzr revision: 109616 eliz@gnu.org-20120814184839-4s25r2c06hsuazco Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (3.4) --no-opt --enable-checking --cflags -Id:/usr/include/libxml2 -DGLYPH_DEBUG=1' Important settings: value of $LANG: ENU locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: gud-tooltip-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x g d b . . / s r o / i e m a c s SPC . e x e M-x g u d - g d b t o o l m o d e C-h c C-h c C-@ C-h c C-a M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Target doesn't support non-stop mode. Turning it off. Gud-Tooltip mode enabled runs the command gud-tooltip-mouse-motion [3 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load gdb-mi bindat json gud easy-mmode comint ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)