From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ye Wenbin" Newsgroups: gmane.emacs.devel Subject: Re: Is it possible to update tooltip text? Date: Sun, 30 Mar 2008 11:12:38 +0800 Message-ID: References: <47EE599B.2080309@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206846800 16580 80.91.229.12 (30 Mar 2008 03:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 03:13:20 +0000 (UTC) To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 05:13:50 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfnzR-0002lx-Up for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 05:13:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfnyq-0000tD-2G for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2008 23:13:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfnym-0000sv-4e for emacs-devel@gnu.org; Sat, 29 Mar 2008 23:13:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfnyj-0000sJ-Or for emacs-devel@gnu.org; Sat, 29 Mar 2008 23:13:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfnyj-0000sC-HF for emacs-devel@gnu.org; Sat, 29 Mar 2008 23:13:05 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.168]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfnyj-00007o-88 for emacs-devel@gnu.org; Sat, 29 Mar 2008 23:13:05 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 29so896705wff.24 for ; Sat, 29 Mar 2008 20:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:to:subject:from:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; bh=3LNb+F4QsNcZxDeHi8LwMLRP4pqX4XJAZqcKwwBSRL4=; b=fbbnH/NSzrb2AnJ6XIGvH0mbXwi0KF6jTI12eEmwM8EW8xmT+USP4ynPkwVb/zU1z0i4fE2QUq+XCMiBOola9DwGTabLyzdg7deMwV7pVWaRtpR2Z8USLv1ISCqhjqE+dGJcxDOs0EfBztPOKNZ3mowJWNZUai8E9Pur+lI2diI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=date:to:subject:from:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; b=SGGJzkUoZsH0h3zzoiyEJ6Dz8VwzAIqrOjlNeUPFb8NBQD8t8qtevQ5C90DfcfCDfzVxBaNTNIOl4oBgbJ42bI5Xo5KMGwXicfxNX5UZD+KBdK3ZLJXDik+f4YMJ1wWImmiwKTCgKQn3vmn+Oa9OuahCR9ZaJSknFdd+dvl0MJE= Original-Received: by 10.142.106.18 with SMTP id e18mr2929996wfc.33.1206846784710; Sat, 29 Mar 2008 20:13:04 -0700 (PDT) Original-Received: from ywb-laptop ( [121.15.171.116]) by mx.google.com with ESMTPS id 28sm5220878wfg.17.2008.03.29.20.12.59 (version=SSLv3 cipher=OTHER); Sat, 29 Mar 2008 20:13:03 -0700 (PDT) In-Reply-To: <47EE599B.2080309@gmail.com> User-Agent: Opera Mail/9.25 (Linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93864 Archived-At: On Sat, 29 Mar 2008 23:00:43 +0800, Lennart Borgman (gmail) wrote: > I searched for something like that too, but finally (for some other > reasons) decided to use an overlay instead. Maybe that was the wrong > approach and if you manage to get tooltips to work for you as you wanted > to above then please tell me. > > My "overlay workaround" is in tabkey2.el: > > http://www.emacswiki.org/cgi-bin/wiki/tabkey2.el A good idea, but I found a fatal bug that if I display message in the first line in an empty buffer, emacs will crash when I move backward. You can repeat it as following: 1. load "tabkey2" 2. open a new buffer or erase current buffer 3. input (tabkey2-overlay-message "hello") and C-x C-e eval it, the message overlay will appear in front of cursor right after the parenthesis. 4. C-b to move backward, then the emacs will crash. I try it in emacs22 and emacs23, both have the same problem. Anyway, I think make sure alway has a new line bellow is better, but it will change the content of buffer. -- Best Regards, Ye Wenbin