From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: help-echo in Custom Date: Fri, 15 Aug 2003 09:40:17 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308151440.h7FEeHf01531@raven.dms.auburn.edu> References: <200308141646.h7EGku827416@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060958609 16876 80.91.224.253 (15 Aug 2003 14:43:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 14:43:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Aug 15 16:43:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nfnb-0007jw-00 for ; Fri, 15 Aug 2003 16:43:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19nfoe-0007t2-00 for ; Fri, 15 Aug 2003 16:44:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nfnQ-0002Y4-I2 for emacs-devel@quimby.gnus.org; Fri, 15 Aug 2003 10:43:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nfn2-0002Uo-JH for emacs-devel@gnu.org; Fri, 15 Aug 2003 10:42:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nfmV-0001Pz-1G for emacs-devel@gnu.org; Fri, 15 Aug 2003 10:42:51 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nfmT-0001Nh-HH for emacs-devel@gnu.org; Fri, 15 Aug 2003 10:42:17 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.9/8.12.9) with ESMTP id h7FEgBeQ018947; Fri, 15 Aug 2003 09:42:11 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7FEeHf01531; Fri, 15 Aug 2003 09:40:17 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: abraham@dina.kvl.dk In-reply-to: (message from Per Abrahamsen on Fri, 15 Aug 2003 13:52:07 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15969 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15969 Per Abrahamsen wrote: The correct solution would probably be for the code to carefully translate the argument to :help-echo into the format expected by help-echo, probably by creating a helper function on the fly. Actually, that appears to be exactly what is done. What confused me was that the Elisp manual suggests that the rules for correct arguments to :help-echo are exactly the same as for 'help-echo values. I have no problem with them actually being different, as long as that would be clearly mentioned in the Elisp manual. The usual arguments to 'help-echo make indeed no sense in the case of widgets. The only change I suggest (apart from the change in the Elisp manual) is to allow expressions that evaluate to strings in :help-echo, as they are for `help-echo values. This is easy to do by making the minor change in `widget-echo-help' I suggested. Otherwise, authors who only check their code using mouse-over are going to believe such arguments work anyway, whereas with the present version of `widget-echo-help', they do not work with . Sincerely, Luc.