help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Whats wrong with this defcustom?


From: Sebastian Wiesner
Subject: Re: Whats wrong with this defcustom?
Date: Mon, 28 Jul 2014 15:17:09 +0200

Am 26.07.2014 um 12:55 schrieb Thorsten Jolitz <tjolitz@gmail.com>:

> 
> Hi List, 
> 
> I'm probably overlooking the obvious, but what is wrong with this
> defcustom:
> 
> ,----
> | (defcustom org-x-style 'notes
> |   "Possible styles for diagrams."
> |   :group 'org-x
> |   :type '(choice (const :tag "Sync-bars" 'sync-bars)
> |              (const :tag "Partitions" 'partitions)
> |              (const :tag "Notes" 'notes)))
> `——

Remove the quotes from the symbols inside the `(const …)` expressions.  The 
outer `choice` is already quoted, so you are “double-quoting” the choices.  
Hence the mismatch: The symbol "notes" is different from the expression "(quote 
notes)".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]