From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: abraham@dina.kvl.dk
Subject: Other potential problem with :format.
Date: Sat, 23 Aug 2003 15:52:31 -0500 (CDT) [thread overview]
Message-ID: <200308232052.h7NKqVW02469@raven.dms.auburn.edu> (raw)
Is the following a bug or is one just not supposed to use %h before %v
in the 'integer choice in the file below? Putting the %v in front of
the %h makes the problem go away. I do not know whether there is a
relation with the other problem we are discussing.
Do:
emacs-21.3.50 -q --eval "(blink-cursor-mode 0)" &
and load:
===File ~/editable-field.el=================================
(defgroup nifty nil
"Single item group"
:group 'convenience)
(defcustom nifty-var 0
"*Nifty doc string."
:group 'nifty
:type '(choice (const :tag "True"
:format "%t\n%h"
:doc
"True stuff.
Second line of true stuff."
t)
(integer :tag "Number"
:format "%t\n%h%v"
:doc
"Some integer.
Choose it wisely."
0)))
============================================================
M-x customize-group 'nifty
Click on the "More" next to: "Some integer".
Result: the documentation is now part of the editable field.
Does not happen if one replaces the :format string of "integer" with
"%t\n%v%h", that is, if one switches %h and %v. Is the above a bug or
is one just supposed to _always_ put %h _after_ &v, except in `defface'?
Sincerely,
Luc.
next reply other threads:[~2003-08-23 20:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-23 20:52 Luc Teirlinck [this message]
2003-08-24 15:51 ` Other potential problem with :format Per Abrahamsen
2003-08-25 3:30 ` Richard Stallman
2003-08-25 13:02 ` Per Abrahamsen
2003-08-26 1:38 ` Richard Stallman
2003-08-26 9:00 ` Per Abrahamsen
2003-08-26 13:12 ` Robert J. Chassell
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200308232052.h7NKqVW02469@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=abraham@dina.kvl.dk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.