From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.bugs Subject: bug#2680: 23.0.91; Tooltip persists inappropriately with tooltip-mode off Date: Sun, 15 Mar 2009 22:41:58 -0400 Message-ID: <18877.48246.888724.693852@rgr.rgrjr.com> References: <87ab7mi6lj.fsf@cyd.mit.edu> Reply-To: Bob Rogers , 2680@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237172725 26443 80.91.229.12 (16 Mar 2009 03:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2009 03:05:25 +0000 (UTC) Cc: 2680@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 04:06:42 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lj38l-00073a-3t for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 04:05:45 +0100 Original-Received: from localhost ([127.0.0.1]:34601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lj37O-0006U1-8i for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Mar 2009 23:03:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lj37F-0006Rr-EZ for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 23:03:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lj37B-0006Qh-Q1 for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 23:03:49 -0400 Original-Received: from [199.232.76.173] (port=59188 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lj37B-0006QU-Ib for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 23:03:45 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42724) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lj37A-00089g-MU for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 23:03:45 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G33guK025457; Sun, 15 Mar 2009 20:03:42 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2G2o3eX021633; Sun, 15 Mar 2009 19:50:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Bob Rogers Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Mar 2009 02:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2680 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2680-submit@emacsbugs.donarmstrong.com id=B2680.123717132320255 (code B ref 2680); Mon, 16 Mar 2009 02:50:03 +0000 Original-Received: (at 2680) by emacsbugs.donarmstrong.com; 16 Mar 2009 02:42:03 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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) Original-Received: (qmail 29723 invoked by uid 89); 16 Mar 2009 02:41:59 -0000 Original-Received: from unknown (HELO rgr.rgrjr.com) (192.168.57.1) by home with SMTP; 16 Mar 2009 02:41:59 -0000 Original-Received: by rgr.rgrjr.com (Postfix, from userid 500) id 1748E4858E; Sun, 15 Mar 2009 22:41:59 -0400 (EDT) In-Reply-To: <87ab7mi6lj.fsf@cyd.mit.edu> X-Mailer: VM 7.19 under Emacs 23.0.91.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 15 Mar 2009 23:03:49 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26380 Archived-At: 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))))