From unknown Sun Jun 15 08:52:13 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2680: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Reply-To: Bob Rogers , 2680@debbugs.gnu.org Resent-From: Bob Rogers Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 15 Mar 2009 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2680 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12371467335165 (code B ref -1); Sun, 15 Mar 2009 20:00:02 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Mar 2009 19:52:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2FJq88S005152 for ; Sun, 15 Mar 2009 12:52:10 -0700 Received: from mx10.gnu.org ([199.232.76.166]:34939) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LiwNU-00067z-Cz for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:08 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LiwNQ-00047M-18 for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:08 -0400 Received: from rgrjr.com ([216.146.47.5]:60424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiwNP-000477-Lo for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:03 -0400 Received: from rgrjr.dyndns.org (c-66-30-196-77.hsd1.ma.comcast.net [66.30.196.77]) by rgrjr.com (Postfix on CentOS) with ESMTP id 5924C1600D6 for ; Sun, 15 Mar 2009 19:52:02 +0000 (UTC) Received: (qmail 18148 invoked by uid 89); 15 Mar 2009 19:52:01 -0000 Received: from unknown (HELO rgr.rgrjr.com) (192.168.57.1) by home with SMTP; 15 Mar 2009 19:52:01 -0000 Received: by rgr.rgrjr.com (Postfix, from userid 500) id 808034858E; Sun, 15 Mar 2009 15:52:01 -0400 (EDT) From: Bob Rogers To: emacs-pretest-bug@gnu.org Message-Id: <20090315195201.808034858E@rgr.rgrjr.com> Date: Sun, 15 Mar 2009 15:52:01 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) According to the tooltip-mode docstring: When Tooltip mode is disabled, Emacs displays one line of the help text in the echo area, and does not make a pop-up window. Under certain circumstances, the full tooltip is redisplayed in the message area after moving the mouse to a spot where no tooltip applies, when it should be erased. To reproduce: 1. "emacs -Q" 2. "M-x tooltip-mode RET". This is on by default, so it should display "Tooltip mode disabled" in the message area. 3. Invoke "C-b" (or whatever) in order to clear the message area; the bug manifests only if nothing is displayed there. 4. Move the mouse into the "-----" part of the right edge of the mode line. The message area will show the tooltip correctly, combined into a single line and (if the frame is narrow enough) truncated at the right. 5. Now move the mouse back into either the *scratch* buffer or the message area. The tooltip will still be displayed -- incorrectly, as it no longer applies. Furthermore, it won't be truncated; if the frame is sufficiently narrow, the message area will grow in height to accomodate the full message. 6. Moving the mouse out of the frame restores the message area. The attached patch to tooltip-show-help-non-mode appears to fix the problem, though I suspect it is not TRT. Shouldn't the third "cond" clause in this function take care of this case? -- Bob Rogers http://www.rgrjr.com/ ------------------------------------------------------------------------ In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-03-06 on rgr Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t mouse-wheel-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-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-SPC C-M-b M-w TAB C-SPC C-u C-SPC C-u C-n C-n C-n C-n M-f M-f SPC [ x ] C-c C-c C-n C-n C-n C-n C-p M-b M-d " " C-c C-c C-b [ y ] C-c C-c C-u C-p C-u C-p C-p C-M-f C-M-f C-M-b ( o r SPC C-M-f SPC " " ) C-c C-c C-b C-b [ ` z ] C-e C-M-b C-M-f C-c C-c M-f M-f C-n C-M-f C-M-f C-x C-e C-u C-n M-b C-b C-b C-n C-n C-n C-b C-f n i l C-e C-M-b C-M-f C-c C-c C-c C-c M-b C-u C-p C-u C-p M-b M-b M-b C-d C-d C-e C-M-b C-M-f C-c C-c C-f M-b M-b M-b C-u C-u C-n C-u C-p C-p C-p C-p M-b M-b M-. C-c b C-h f M-, C-x o C-e M-b C-v C-p C-p M-v C-s m e s s a g e ( C-r C-e C-f C-u C-SPC C-s m e s s a g e SPC ( C-r C-r C-s C-s C-s C-s C-s C-e C-f C-u C-SPC C-x C-b C-n C-n SPC C-u C-p C-p C-p C-p C-p C-p C-e C-b C-b C-b C-f C-M-b C-e C-M-b C-M-f C-c C-c C-f C-u C-n C-u C-n C-n M-b M-d " " C-c C-c C-b C-_ C-_ C-_ C-_ C-_ C-_ C-_ C-e C-M-b C-M-f ) C-c C-c C-f C-c C-c C-x h C-u C-SPC C-u C-SPC C-M-h M-w C-h c C-c C-c M-x e m a c - s - b u g C-a C-k a p r SPC C-y M-x r e p o r Recent messages: Done -- 510 definition lines. Mark saved where search started [2 times] tooltip-show-help-non-mode [2 times] Auto-saving... Undo! [7 times] tooltip-show-help-non-mode [2 times] Auto-saving...done Mark set [4 times] C-c C-c runs the command compile-defun Auto-saving...done [ATTACHMENT /usr/src/emacs/fix-tooltip-persistence.patch, text/plain] From unknown Sun Jun 15 08:52:13 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2680: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Reply-To: Chong Yidong , 2680@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Mar 2009 01:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2680 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2680-submit@emacsbugs.donarmstrong.com id=B2680.12371678204330 (code B ref 2680); Mon, 16 Mar 2009 01:50:04 +0000 Received: (at 2680) by emacsbugs.donarmstrong.com; 16 Mar 2009 01:43:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G1hbwG004324 for <2680@emacsbugs.donarmstrong.com>; Sun, 15 Mar 2009 18:43:39 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id E439957E21C; Sun, 15 Mar 2009 21:44:56 -0400 (EDT) From: Chong Yidong To: Bob Rogers Cc: 2680@debbugs.gnu.org Date: Sun, 15 Mar 2009 21:44:56 -0400 Message-ID: <87ab7mi6lj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > The attached patch to tooltip-show-help-non-mode appears to fix the > problem, though I suspect it is not TRT. Shouldn't the third "cond" > clause in this function take care of this case? I'm afraid the net monsters ate your attachment. Could you resend it? It's probably easiest to just put it in the body of your email. From unknown Sun Jun 15 08:52:13 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2680: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Reply-To: Bob Rogers , 2680@debbugs.gnu.org Resent-From: Bob Rogers Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Mar 2009 02:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2680 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2680-submit@emacsbugs.donarmstrong.com id=B2680.123717132320255 (code B ref 2680); Mon, 16 Mar 2009 02:50:03 +0000 Received: (at 2680) by emacsbugs.donarmstrong.com; 16 Mar 2009 02:42:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgrjr.com (rgrjr.com [216.146.47.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G2g0i5020249 for <2680@emacsbugs.donarmstrong.com>; Sun, 15 Mar 2009 19:42:01 -0700 Received: from rgrjr.dyndns.org (c-66-30-196-77.hsd1.ma.comcast.net [66.30.196.77]) by rgrjr.com (Postfix on CentOS) with ESMTP id C87B91600D4 for <2680@emacsbugs.donarmstrong.com>; Mon, 16 Mar 2009 02:41:59 +0000 (UTC) Received: (qmail 29723 invoked by uid 89); 16 Mar 2009 02:41:59 -0000 Received: from unknown (HELO rgr.rgrjr.com) (192.168.57.1) by home with SMTP; 16 Mar 2009 02:41:59 -0000 Received: by rgr.rgrjr.com (Postfix, from userid 500) id 1748E4858E; Sun, 15 Mar 2009 22:41:59 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18877.48246.888724.693852@rgr.rgrjr.com> Date: Sun, 15 Mar 2009 22:41:58 -0400 From: Bob Rogers To: Chong Yidong CC: 2680@debbugs.gnu.org In-Reply-To: <87ab7mi6lj.fsf@cyd.mit.edu> References: <87ab7mi6lj.fsf@cyd.mit.edu> X-Mailer: VM 7.19 under Emacs 23.0.91.1 From: Chong Yidong Date: Sun, 15 Mar 2009 21:44:56 -0400 > The attached patch to tooltip-show-help-non-mode appears to fix the > problem, though I suspect it is not TRT. Shouldn't the third "cond" > clause in this function take care of this case? I'm afraid the net monsters ate your attachment. Could you resend it? It's probably easiest to just put it in the body of your email. Here it is. (I was trying to distinguish the patch from the M-x report-emacs-bug spew that came before it. I guess I succeeded too well.) -- Bob ------------------------------------------------------------------------ Index: lisp/tooltip.el =================================================================== RCS file: /sources/emacs/emacs/lisp/tooltip.el,v retrieving revision 1.91 diff -u -r1.91 tooltip.el --- lisp/tooltip.el 5 Jan 2009 03:19:50 -0000 1.91 +++ lisp/tooltip.el 15 Mar 2009 19:45:29 -0000 @@ -334,7 +334,7 @@ (cond ((stringp help) (unless tooltip-previous-message - (setq tooltip-previous-message (current-message))) + (setq tooltip-previous-message (or (current-message) ""))) (let ((message-truncate-lines t) (message-log-max nil)) (message "%s" (replace-regexp-in-string "\n" ", " help)))) From unknown Sun Jun 15 08:52:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Bob Rogers Subject: bug#2680 closed by Chong Yidong (Re: 23.0.91; Tooltip persists inappropriately with tooltip-mode off) Message-ID: References: <87ocw29ofo.fsf@cyd.mit.edu> <20090315195201.808034858E@rgr.rgrjr.com> X-Emacs-PR-Message: they-closed 2680 X-Emacs-PR-Package: emacs Reply-To: 2680@debbugs.gnu.org Date: Mon, 16 Mar 2009 02:50:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1237171807-21823-1" This is a multi-part message in MIME format... ------------=_1237171807-21823-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2680: 23.0.91; Tooltip persists inappropriately with tooltip-mode off It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 2680: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2680 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1237171807-21823-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2680-done) by emacsbugs.donarmstrong.com; 16 Mar 2009 02:43:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G2h8JY020270 for <2680-done@emacsbugs.donarmstrong.com>; Sun, 15 Mar 2009 19:43:09 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6CE7C57E21C; Sun, 15 Mar 2009 22:44:27 -0400 (EDT) From: Chong Yidong To: 2680-done@debbugs.gnu.org Subject: Re: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Date: Sun, 15 Mar 2009 22:44:27 -0400 Message-ID: <87ocw29ofo.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix. ------------=_1237171807-21823-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 15 Mar 2009 19:52:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2FJq88S005152 for ; Sun, 15 Mar 2009 12:52:10 -0700 Received: from mx10.gnu.org ([199.232.76.166]:34939) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LiwNU-00067z-Cz for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:08 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LiwNQ-00047M-18 for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:08 -0400 Received: from rgrjr.com ([216.146.47.5]:60424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiwNP-000477-Lo for emacs-pretest-bug@gnu.org; Sun, 15 Mar 2009 15:52:03 -0400 Received: from rgrjr.dyndns.org (c-66-30-196-77.hsd1.ma.comcast.net [66.30.196.77]) by rgrjr.com (Postfix on CentOS) with ESMTP id 5924C1600D6 for ; Sun, 15 Mar 2009 19:52:02 +0000 (UTC) Received: (qmail 18148 invoked by uid 89); 15 Mar 2009 19:52:01 -0000 Received: from unknown (HELO rgr.rgrjr.com) (192.168.57.1) by home with SMTP; 15 Mar 2009 19:52:01 -0000 Received: by rgr.rgrjr.com (Postfix, from userid 500) id 808034858E; Sun, 15 Mar 2009 15:52:01 -0400 (EDT) From: Bob Rogers To: emacs-pretest-bug@gnu.org Subject: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Message-Id: <20090315195201.808034858E@rgr.rgrjr.com> Date: Sun, 15 Mar 2009 15:52:01 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) According to the tooltip-mode docstring: When Tooltip mode is disabled, Emacs displays one line of the help text in the echo area, and does not make a pop-up window. Under certain circumstances, the full tooltip is redisplayed in the message area after moving the mouse to a spot where no tooltip applies, when it should be erased. To reproduce: 1. "emacs -Q" 2. "M-x tooltip-mode RET". This is on by default, so it should display "Tooltip mode disabled" in the message area. 3. Invoke "C-b" (or whatever) in order to clear the message area; the bug manifests only if nothing is displayed there. 4. Move the mouse into the "-----" part of the right edge of the mode line. The message area will show the tooltip correctly, combined into a single line and (if the frame is narrow enough) truncated at the right. 5. Now move the mouse back into either the *scratch* buffer or the message area. The tooltip will still be displayed -- incorrectly, as it no longer applies. Furthermore, it won't be truncated; if the frame is sufficiently narrow, the message area will grow in height to accomodate the full message. 6. Moving the mouse out of the frame restores the message area. The attached patch to tooltip-show-help-non-mode appears to fix the problem, though I suspect it is not TRT. Shouldn't the third "cond" clause in this function take care of this case? -- Bob Rogers http://www.rgrjr.com/ ------------------------------------------------------------------------ In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-03-06 on rgr Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t mouse-wheel-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-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-SPC C-M-b M-w TAB C-SPC C-u C-SPC C-u C-n C-n C-n C-n M-f M-f SPC [ x ] C-c C-c C-n C-n C-n C-n C-p M-b M-d " " C-c C-c C-b [ y ] C-c C-c C-u C-p C-u C-p C-p C-M-f C-M-f C-M-b ( o r SPC C-M-f SPC " " ) C-c C-c C-b C-b [ ` z ] C-e C-M-b C-M-f C-c C-c M-f M-f C-n C-M-f C-M-f C-x C-e C-u C-n M-b C-b C-b C-n C-n C-n C-b C-f n i l C-e C-M-b C-M-f C-c C-c C-c C-c M-b C-u C-p C-u C-p M-b M-b M-b C-d C-d C-e C-M-b C-M-f C-c C-c C-f M-b M-b M-b C-u C-u C-n C-u C-p C-p C-p C-p M-b M-b M-. C-c b C-h f M-, C-x o C-e M-b C-v C-p C-p M-v C-s m e s s a g e ( C-r C-e C-f C-u C-SPC C-s m e s s a g e SPC ( C-r C-r C-s C-s C-s C-s C-s C-e C-f C-u C-SPC C-x C-b C-n C-n SPC C-u C-p C-p C-p C-p C-p C-p C-e C-b C-b C-b C-f C-M-b C-e C-M-b C-M-f C-c C-c C-f C-u C-n C-u C-n C-n M-b M-d " " C-c C-c C-b C-_ C-_ C-_ C-_ C-_ C-_ C-_ C-e C-M-b C-M-f ) C-c C-c C-f C-c C-c C-x h C-u C-SPC C-u C-SPC C-M-h M-w C-h c C-c C-c M-x e m a c - s - b u g C-a C-k a p r SPC C-y M-x r e p o r Recent messages: Done -- 510 definition lines. Mark saved where search started [2 times] tooltip-show-help-non-mode [2 times] Auto-saving... Undo! [7 times] tooltip-show-help-non-mode [2 times] Auto-saving...done Mark set [4 times] C-c C-c runs the command compile-defun Auto-saving...done [ATTACHMENT /usr/src/emacs/fix-tooltip-persistence.patch, text/plain] ------------=_1237171807-21823-1--