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: :format strings in Custom ending in %h Date: Wed, 20 Aug 2003 20:42:41 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308210142.h7L1gfZ21022@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061512350 3928 80.91.224.253 (22 Aug 2003 00:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 00:32:30 +0000 (UTC) Cc: Per Abrahamsen Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Aug 22 02:32:29 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 19pzqv-0003aF-00 for ; Fri, 22 Aug 2003 02:32:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19pzur-0001L0-00 for ; Fri, 22 Aug 2003 02:36:33 +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 19pzKj-0006js-AR for emacs-devel@quimby.gnus.org; Thu, 21 Aug 2003 19:59:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19pz51-0004EK-Ly for emacs-devel@gnu.org; Thu, 21 Aug 2003 19:42:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19pyB1-0005AT-Ij for emacs-devel@gnu.org; Thu, 21 Aug 2003 18:45:39 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19peVW-0002uj-Ei for emacs-devel@gnu.org; Wed, 20 Aug 2003 21:44:58 -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 h7L1ineQ008473; Wed, 20 Aug 2003 20:44:49 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7L1gfZ21022; Wed, 20 Aug 2003 20:42:41 -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:16045 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16045 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.