From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Other potential problem with :format. Date: Sat, 23 Aug 2003 15:52:31 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308232052.h7NKqVW02469@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061673943 6637 80.91.224.253 (23 Aug 2003 21:25:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2003 21:25:43 +0000 (UTC) Cc: abraham@dina.kvl.dk Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Aug 23 23:25:41 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qftF-00056w-00 for ; Sat, 23 Aug 2003 23:25:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19qfy2-0000Nz-00 for ; Sat, 23 Aug 2003 23:30:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qfqj-0001my-Cr for emacs-devel@quimby.gnus.org; Sat, 23 Aug 2003 17:23:05 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19qfq4-0001km-H5 for emacs-devel@gnu.org; Sat, 23 Aug 2003 17:22:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19qfZK-00040a-Lg for emacs-devel@gnu.org; Sat, 23 Aug 2003 17:05:38 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qfUV-0008VG-Sc for emacs-devel@gnu.org; Sat, 23 Aug 2003 17:00:08 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.9/8.12.9) with ESMTP id h7NKsieQ025070; Sat, 23 Aug 2003 15:54:44 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7NKqVW02469; Sat, 23 Aug 2003 15:52:31 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16112 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.