[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whats wrong with this defcustom?
From: |
Thorsten Jolitz |
Subject: |
Re: Whats wrong with this defcustom? |
Date: |
Mon, 28 Jul 2014 12:06:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Tassilo Horn <tsdh@gnu.org> writes:
> Thorsten Jolitz <tjolitz@gmail.com> writes:
Hi Tassilo,
>> 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)))
>> `----
>
> ,----[ C-h f defcustom RET ]
> | defcustom is a Lisp macro in `custom.el'.
> |
> | (defcustom SYMBOL STANDARD DOC &rest ARGS)
> |
> | Declare SYMBOL as a customizable variable.
> | SYMBOL is the variable name; it should not be quoted.
> | STANDARD is an expression specifying the variable's standard
> | value. It should not be quoted.
> | ^^^^^^^^^^^^^^^^^^^^^^^
> `----
Right, I fixed this too ... thx.
Quoting symbols is done so often that unquoted symbols somehow look
wrong (when unaware of dealing with a macro ...)
--
cheers,
Thorsten
Message not available
Re: Whats wrong with this defcustom?, Sebastian Wiesner, 2014/07/28