From: MON KEY <monkey@sandpframing.com>
To: 7851@debbugs.gnu.org
Subject: bug#7851: `customize's presentation of :type (repeat plist) declarations
Date: Sun, 16 Jan 2011 16:43:27 -0500 [thread overview]
Message-ID: <AANLkTin0h_s9P1+2CfZaaSS0zwekW5NF94aJ5VwXYK52@mail.gmail.com> (raw)
`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\
next reply other threads:[~2011-01-16 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-16 21:43 MON KEY [this message]
2019-09-24 21:22 ` bug#7851: `customize's presentation of :type (repeat plist) declarations Mauro Aranda
2019-09-25 12:52 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTin0h_s9P1+2CfZaaSS0zwekW5NF94aJ5VwXYK52@mail.gmail.com \
--to=monkey@sandpframing.com \
--cc=7851@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.