From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Wedler Newsgroups: gmane.emacs.help Subject: Re: [BUG] in defcustom docstring (was Re: Whats wrong with this defcustom?) Date: Tue, 29 Jul 2014 18:48:38 +0200 Organization: SAP AG Message-ID: References: <87y4vgo0dp.fsf@gmail.com> <87ha21g8qr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406652631 26234 80.91.229.3 (29 Jul 2014 16:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 16:50:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 29 18:50:24 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 1XCAbY-0002FI-AY for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2014 18:50:24 +0200 Original-Received: from localhost ([::1]:47106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCAbY-0003gh-0D for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2014 12:50:24 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!rt.uk.eu.org!weretis.net!feeder4.news.weretis.net!news1.dtag.de!news.sap-ag.de!news1!news.sap-ag.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: nKU7bvDXFB5LzogK6rDeaQ.news.sap-ag.de Original-X-Trace: news.sap-ag.de 1406652518 25028 nKU7bvDXFB5LzogK6rDeaQ.news.sap-ag.de (29 Jul 2014 16:48:38 GMT) Original-X-Complaints-To: newsmaster@sap.com Original-NNTP-Posting-Date: Tue, 29 Jul 2014 16:48:38 +0000 (UTC) Cancel-Lock: sha1:tKR7MM10Nj+SUXcEETkrihTiJs4= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Original-Xref: usenet.stanford.edu gnu.emacs.help:206708 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:98983 Archived-At: Thorsten Jolitz writes: > Tassilo Horn writes: > >> Thorsten Jolitz writes: >> >> Hi Thorsten, >> >>> 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. >> | ^^^^^^^^^^^^^^^^^^^^^^^ That means: the EXPRESSION should not be quoted, but the expression might contain (or consist only of) a quoted symbol, of course... If you just have bar as an expression, it means the variable bar - if that is undefined... => > ,---- > | custom-initialize-reset: > | Symbol's value as variable is void: bar > `----