GNU bug report logs - #7851
`customize's presentation of :type (repeat plist) declarations

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: MON KEY <monkey@HIDDEN>; dated Sun, 16 Jan 2011 21:43:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jan 2011 21:42:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 16 16:42:13 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PeaMW-0002tl-OF
	for submit <at> debbugs.gnu.org; Sun, 16 Jan 2011 16:42:12 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stan@HIDDEN>) id 1PeaMU-0002tZ-5b
	for submit <at> debbugs.gnu.org; Sun, 16 Jan 2011 16:42:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stan@HIDDEN>) id 1PeaTv-0004gR-96
	for submit <at> debbugs.gnu.org; Sun, 16 Jan 2011 16:49:52 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:54342)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stan@HIDDEN>) id 1PeaTv-0004gN-6x
	for submit <at> debbugs.gnu.org; Sun, 16 Jan 2011 16:49:51 -0500
Received: from [140.186.70.92] (port=39635 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PeaTu-0005nM-72
	for bug-gnu-emacs@HIDDEN; Sun, 16 Jan 2011 16:49:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stan@HIDDEN>) id 1PeaTt-0004gD-2v
	for bug-gnu-emacs@HIDDEN; Sun, 16 Jan 2011 16:49:50 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:50267)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stan@HIDDEN>) id 1PeaTs-0004g5-Oe
	for bug-gnu-emacs@HIDDEN; Sun, 16 Jan 2011 16:49:48 -0500
Received: by wyj26 with SMTP id 26so4619898wyj.0
	for <bug-gnu-emacs@HIDDEN>; Sun, 16 Jan 2011 13:49:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.163.69 with SMTP id z47mr2652322wek.43.1295214207391; Sun,
	16 Jan 2011 13:43:27 -0800 (PST)
Received: by 10.216.70.212 with HTTP; Sun, 16 Jan 2011 13:43:27 -0800 (PST)
Date: Sun, 16 Jan 2011 16:43:27 -0500
X-Google-Sender-Auth: Xy6z3nCJQBdY1MUVy6XyrTZegKc
Message-ID: <AANLkTin0h_s9P1+2CfZaaSS0zwekW5NF94aJ5VwXYK52@HIDDEN>
Subject: `customize's presentation of :type (repeat plist) declarations
From: MON KEY <monkey@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -5.2 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.2 (-----)

`customize's presentation of variables defined with a type speciifer:

 :type '(repeat plist :value-type (repeat symbol))

do not present a sensibly in customize buffers.

For example:

(defcustom *tt--ugly-plist-custom*
  '((:KEY-PL0-0 (sym0-0a sym0-0b sym0-0c)
     :KEY-PL0-1 (sym0-1a sym0-1b sym0-1c))
    (:KEY-PL1-0 (sym1-0a sym1-0b sym1-0c)
     :KEY-PL1-1 (sym1-1a sym1-1b sym1-1c)))
  "This variable will have an ugly customize presentation.
Evaluating the following form:\n
 \(customize-variable '*tt--ugly-plist-custom*\)\n
presents a buffer named \"*Customize *Tt  Ugly Plist Custom*\".\n
Notice that for each plist the first pair of nested buttons [INS]
\[DEL] is indented deeper than subsequent pairs within the same plist
element. IOW, Instead of prsenting:\n
\[INS] [DEL] Plist:
             [INS] [DEL] Key: :KEY-PL0-0
                            Value: \(sym0-0a sym0-0b sym0-0c\)
             [INS] [DEL] Key: :KEY-PL0-1
                            Value: \(sym0-1a sym0-1b sym0-1c\)
             [INS]\n
\[INS] [DEL] Plist:
             [INS] [DEL] Key: :KEY-PL1-0
                            Value: \(sym1-0a sym1-0b sym1-0c\)
             [INS] [DEL] Key: :KEY-PL1-1
                            Value: \(sym1-1a sym1-1b sym1-1c\)
             [INS]\n\n
We instead get a customize presentation like this:\n
\[INS] [DEL] Plist:
                            [INS] [DEL] Key: :KEY-PL0-0
                            Value: \(sym0-0a sym0-0b sym0-0c\)
             [INS] [DEL] Key: :KEY-PL0-1
                            Value: \(sym0-1a sym0-1b sym0-1c\)
             [INS]\n
\[INS] [DEL] Plist:
                            [INS] [DEL] Key: :KEY-PL1-0
                            Value: \(sym1-0a sym1-0b sym1-0c\)
             [INS] [DEL] Key: :KEY-PL1-1
                            Value: \(sym1-1a sym1-1b sym1-1c\)
             [INS]\n\n
This indentation style \"plist\" custom types is confusing.\n"
  :type '(repeat plist :value-type (repeat symbol))
  :group 'emacs)

(customize-variable '*tt--ugly-plist-custom*)

emacs-version => 23.2.1

--
/s_P\




Acknowledgement sent to MON KEY <monkey@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7851; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.