From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: abraham@dina.kvl.dk, emacs-devel@gnu.org
Subject: Re: help-echo in Custom
Date: Thu, 14 Aug 2003 13:14:42 -0500 (CDT) [thread overview]
Message-ID: <200308141814.h7EIEgm27566@raven.dms.auburn.edu> (raw)
In-Reply-To: <200308141725.h7EHPS127484@raven.dms.auburn.edu> (message from Luc Teirlinck on Thu, 14 Aug 2003 12:25:28 -0500 (CDT))
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 <tab>-ing around.
`silly-string-var' will not display "Silly string" after <tab>,
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
<tab> 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.
next prev parent reply other threads:[~2003-08-14 18:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 16:46 help-echo in Custom Luc Teirlinck
2003-08-14 17:25 ` Luc Teirlinck
2003-08-14 18:14 ` Luc Teirlinck [this message]
2003-08-14 19:00 ` Luc Teirlinck
2003-08-14 19:32 ` Luc Teirlinck
2003-08-14 19:56 ` Luc Teirlinck
2003-08-15 11:52 ` Per Abrahamsen
2003-08-15 14:40 ` Luc Teirlinck
2003-08-17 0:36 ` Richard Stallman
2003-08-17 5:00 ` Luc Teirlinck
-- strict thread matches above, loose matches on Subject: below --
2003-08-14 16:56 Luc Teirlinck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200308141814.h7EIEgm27566@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=abraham@dina.kvl.dk \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).