From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: :format strings in Custom ending in %h Date: Thu, 21 Aug 2003 14:22:04 +0200 Organization: The Church of Emacs Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200308210154.h7L1sJc21082@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061475560 3470 80.91.224.253 (21 Aug 2003 14:19:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2003 14:19:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 21 16:19:18 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 19pqHW-00040F-00 for ; Thu, 21 Aug 2003 16:19:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19pqLG-0003xh-00 for ; Thu, 21 Aug 2003 16:23:11 +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 19ppjS-0001YB-W7 for emacs-devel@quimby.gnus.org; Thu, 21 Aug 2003 09:44:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19pooj-0003Mj-UK for emacs-devel@gnu.org; Thu, 21 Aug 2003 08:45:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ponv-00039U-6Z for emacs-devel@gnu.org; Thu, 21 Aug 2003 08:45:10 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19poS8-0005ay-3x for emacs-devel@gnu.org; Thu, 21 Aug 2003 08:22:08 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19poT3-00087g-00 for ; Thu, 21 Aug 2003 14:23:05 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19poT3-00087Y-00 for ; Thu, 21 Aug 2003 14:23:05 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19poS6-0004zF-00 for ; Thu, 21 Aug 2003 14:22:06 +0200 Original-Lines: 64 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ Mail-Copies-To: nobody User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:Rl1sCdWCx62MtU0puwV0p7xkba8= 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:16041 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16041 Does this fix the problem? We should probably always call widget-children-value-delete, as any widget may have children if they have a long doc string. -- Per 2003-08-21 Per Abrahamsen * wid-edit.el (item): Delete children (due to doc-string). *** wid-edit.el.~1.120.~ Thu Aug 21 14:17:37 2003 --- wid-edit.el Thu Aug 21 14:19:14 2003 *************** *** 1556,1562 **** "Constant items for inclusion in other widgets." :convert-widget 'widget-value-convert-widget :value-create 'widget-item-value-create ! :value-delete 'ignore :value-get 'widget-value-value-get :match 'widget-item-match :match-inline 'widget-item-match-inline --- 1556,1562 ---- "Constant items for inclusion in other widgets." :convert-widget 'widget-value-convert-widget :value-create 'widget-item-value-create ! :value-delete 'widget-children-value-delete :value-get 'widget-value-value-get :match 'widget-item-match :match-inline 'widget-item-match-inline Luc Teirlinck writes: > 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))) > > ============================================================