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: Thu, 14 Aug 2003 13:14:42 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308141814.h7EIEgm27566@raven.dms.auburn.edu> References: <200308141646.h7EGku827416@raven.dms.auburn.edu> <200308141725.h7EHPS127484@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060885591 12242 80.91.224.253 (14 Aug 2003 18:26:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 18:26:31 +0000 (UTC) Cc: abraham@dina.kvl.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 14 20:26:28 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 19nMns-0005D4-00 for ; Thu, 14 Aug 2003 20:26:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19nMoX-0000S5-00 for ; Thu, 14 Aug 2003 20:27:09 +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 19nMl0-0003cA-1Q for emacs-devel@quimby.gnus.org; Thu, 14 Aug 2003 14:23:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nMjV-00017a-73 for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:21:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nMin-0000cA-TM for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:21:45 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nMeM-0007Ik-Gd for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:16:38 -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 h7EIGYeQ016815; Thu, 14 Aug 2003 13:16:34 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7EIEgm27566; Thu, 14 Aug 2003 13:14:42 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-reply-to: <200308141725.h7EHPS127484@raven.dms.auburn.edu> (message from Luc Teirlinck on Thu, 14 Aug 2003 12:25:28 -0500 (CDT)) 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:15953 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15953 Since at least one of the things I described seems to be a bug, here is a test case anyway. Load: ===File ~/helpfun.el======================================== (defvar silly-string "Silly string") (defun silly-help (win obj pos) "Used as help-echo for debugging purposes." (format "%s %s %s" win obj pos)) (defun silly-custom-help (widget) (substring (format "%s" widget) 0 70)) (defcustom silly-string-var 7 "*This is a silly variable" :type '(integer :help-echo silly-string) :group 'convenience) (defcustom silly-help-var 7 "*This is an silly variable" :type '(integer :help-echo silly-help) :group 'convenience) (defcustom silly-custom-help-var 7 "*This is a silly variable" :type '(integer :help-echo silly-custom-help) :group 'convenience) ============================================================ Do "M-x customize-group convenience" and start -ing around. `silly-string-var' will not display "Silly string" after , although it will on mouse-over. This seems to be definitely a bug and is trivial to fix by adding two eval's, as I pointed out in my original message. `silly-help-var' produces a "Wrong number of arguments" error when gets there, even though `silly-help' works perfectly as a help-echo text or overlay property. Maybe not a bug, but pretty confusing, since the Elisp manual clearly suggests that my function needs to have three arguments. `silly-custom-help-var' displays the silly help string I wanted it to display. Maybe this is actually a useful feature, but if so, where is it documented and why does the Elisp manual not refer to that place, or, better, document it itself? Sincerely, Luc.