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: Re: :format strings in Custom ending in %h Date: Thu, 21 Aug 2003 16:00:39 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308212100.h7LL0d125524@raven.dms.auburn.edu> References: <200308210154.h7L1sJc21082@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061544164 15635 80.91.224.253 (22 Aug 2003 09:22:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 09:22:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Aug 22 11:22:42 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 19q882-0007cu-00 for ; Fri, 22 Aug 2003 11:22:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19q8C9-0006Fi-00 for ; Fri, 22 Aug 2003 11:26:57 +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 19q4eB-0000ve-5Y for emacs-devel@quimby.gnus.org; Fri, 22 Aug 2003 01:39:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19pxr1-0006xP-VR for emacs-devel@gnu.org; Thu, 21 Aug 2003 18:24:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19pxqK-0006lu-4A for emacs-devel@gnu.org; Thu, 21 Aug 2003 18:24:16 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19pwa5-0002Eh-4w for emacs-devel@gnu.org; Thu, 21 Aug 2003 17:02:53 -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 h7LL2neQ012846; Thu, 21 Aug 2003 16:02:49 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7LL0d125524; Thu, 21 Aug 2003 16:00:39 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: abraham@dina.kvl.dk In-reply-to: (message from Per Abrahamsen on Thu, 21 Aug 2003 14:22:04 +0200) 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:16060 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16060 In my previous message, I of course meant that I would repost the corrected version, not the "correction". The description of the bug applies with or without your proposed change: Original message: 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 :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.