unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* :format strings in Custom ending in %h
@ 2003-08-21  1:54 Luc Teirlinck
  2003-08-21 12:22 ` Per Abrahamsen
  0 siblings, 1 reply; 23+ messages in thread
From: Luc Teirlinck @ 2003-08-21  1:54 UTC (permalink / raw)
  Cc: Per Abrahamsen

Sorry, my original file had an inconsistency with the defgroup and the
:group.  The bug is real however and stays with the following
corrected file.  Only difference:

:group 'nifty-group gets replaced with:

:group 'nifty

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

(defcustom nifty-var nil
  "*Nifty doc string."
  :group 'nifty
  :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)))

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

^ permalink raw reply	[flat|nested] 23+ messages in thread
* :format strings in Custom ending in %h
@ 2003-08-21  1:42 Luc Teirlinck
  0 siblings, 0 replies; 23+ messages in thread
From: Luc Teirlinck @ 2003-08-21  1:42 UTC (permalink / raw)
  Cc: Per Abrahamsen

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.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-10-25 22:26 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2003-08-21  1:42 Luc Teirlinck

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).