unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Other potential problem with :format.
@ 2003-08-23 20:52 Luc Teirlinck
  2003-08-24 15:51 ` Per Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Luc Teirlinck @ 2003-08-23 20:52 UTC (permalink / raw)
  Cc: abraham

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.

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

end of thread, other threads:[~2003-08-26 13:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-23 20:52 Other potential problem with :format Luc Teirlinck
2003-08-24 15:51 ` 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

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