From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Whats wrong with this defcustom? Date: Mon, 28 Jul 2014 15:54:09 +0200 Message-ID: <871tt5mvwe.fsf@gmail.com> References: <87y4vgo0dp.fsf@gmail.com> <9C30F83D-4641-4C5E-9F57-85B95FF8BA94@lunaryorn.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1406555700 8204 80.91.229.3 (28 Jul 2014 13:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 13:55:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 28 15:54:53 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XBlO4-0004c4-Ct for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 15:54:48 +0200 Original-Received: from localhost ([::1]:39836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlO3-00088p-Ty for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 09:54:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlNl-00088g-Il for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 09:54:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBlNe-0001ZF-Kh for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 09:54:29 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:44411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlNe-0001Z7-Dx for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 09:54:22 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XBlNd-0004RA-GC for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 15:54:21 +0200 Original-Received: from g231225109.adsl.alicedsl.de ([92.231.225.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2014 15:54:21 +0200 Original-Received: from tjolitz by g231225109.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2014 15:54:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231225109.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:h+AfkfO53bb7H8T0i7f+x3pf19Y= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98964 Archived-At: Sebastian Wiesner writes: > Am 26.07.2014 um 12:55 schrieb Thorsten Jolitz : > >> >> 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)". Yes, thanks, I see it now but somehow did not see it before, there were 4 redundant quotes in that def, STANDARD and those inside the '(const ...)' expressions, I fixed that now. ,----[ 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. `---- -- cheers, Thorsten