unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: :format strings in Custom ending in %h
Date: Wed, 20 Aug 2003 20:42:41 -0500 (CDT)	[thread overview]
Message-ID: <200308210142.h7L1gfZ21022@raven.dms.auburn.edu> (raw)

Is it a rule that :format strings are not allowed to end in %h?
If so where is this mentioned in either the Elisp manual or the
(widget) documentation?

Such format strings produce trouble as described below.

Do:

emacs-21.3.50 -q --eval "(blink-cursor-mode 0)" &

and load the following file:

===File ~/customdoc.el======================================
(defgroup nifty nil
  "Single item group"
  :group 'convenience)

(defcustom nifty-var nil
  "*Nifty doc string."
  :group 'nifty-group
  :type '(choice (const :tag "True"
			:format "%t\n%h"
			:doc
			"True stuff.
Second line of true stuff."
			t)
		 (other :tag "False"
			:format "%t\n%h"
			:doc
			"Falsehoods.
Second line of falsehoods"
			nil)))

============================================================

Then do:

M-x customize-group RET nifty

Click on "More" next to "Falsehoods."

Then click on "Value Menu" and choose "True".

Now we have:

True stuff. More
Falsehoods. Hide Rest
Second line of falsehoods
 
We should not have those last two lines any more and if we add a space
to both :format strings, i.e :format "%t\n%h ", and repeat the
exercise, they indeed disappear and everything works wonderfully.

Sincerely,

Luc.

             reply	other threads:[~2003-08-21  1:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21  1:42 Luc Teirlinck [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-21  1:54 :format strings in Custom ending in %h Luc Teirlinck
2003-08-21 12:22 ` Per Abrahamsen
2003-08-21 20:50   ` Luc Teirlinck
2003-08-21 21:00   ` Luc Teirlinck
2003-08-22 11:22     ` Per Abrahamsen
2003-08-22 14:41       ` Luc Teirlinck
2003-08-24 15:38         ` Per Abrahamsen
2003-08-24 17:17           ` Luc Teirlinck
2003-08-24 18:30             ` Per Abrahamsen
2003-10-20 18:05               ` Luc Teirlinck
2003-10-20 21:10                 ` Luc Teirlinck
2003-10-22  9:24                   ` Richard Stallman
2003-10-22  9:41                     ` Per Abrahamsen
2003-10-23 18:37                       ` Richard Stallman
2003-10-24 16:00                         ` Per Abrahamsen
2003-10-25 22:26                           ` Richard Stallman
2003-10-21 12:03                 ` Per Abrahamsen
2003-08-23  2:44       ` Luc Teirlinck
2003-08-23 15:32       ` Luc Teirlinck
2003-08-23  3:25   ` Luc Teirlinck
2003-08-23 18:09     ` Luc Teirlinck
2003-08-23 18:32       ` 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=200308210142.h7L1gfZ21022@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 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).