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: [BUG] in defcustom docstring (was Re: Whats wrong with this defcustom?) Date: Tue, 29 Jul 2014 00:11:05 +0200 Message-ID: <87zjftuoau.fsf_-_@gmail.com> 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 1406585513 10344 80.91.229.3 (28 Jul 2014 22:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 22:11:53 +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 00:11:46 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 1XBt8x-00075l-FL for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2014 00:11:43 +0200 Original-Received: from localhost ([::1]:42595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBt8x-0002Mb-00 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 18:11:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBt8f-0002MU-Ma for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 18:11:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBt8Z-0002Lp-Pj for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 18:11:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBt8Z-0002Lf-JZ for help-gnu-emacs@gnu.org; Mon, 28 Jul 2014 18:11:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XBt8Y-0006xs-GH for help-gnu-emacs@gnu.org; Tue, 29 Jul 2014 00:11:18 +0200 Original-Received: from e178058217.adsl.alicedsl.de ([85.178.58.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 00:11:18 +0200 Original-Received: from tjolitz by e178058217.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 00:11:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178058217.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:UlmBzNwSLaeSfBf528/OVIXV+QI= 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:98965 Archived-At: 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. > | ^^^^^^^^^^^^^^^^^^^^^^^ > `---- If I don't quote STANDARD I get a load-error, so either the docstring is lying or I'm already confused about this whole issue ... Recipe: 1. emacs -Q 2. C-x C-f ~/junk/test.el ; new empty test file 3. insert '(defcustom foo bar "loo")' 4. C-x C-s 5. M-x eval-buffer -> ,---- | custom-initialize-reset: | Symbol's value as variable is void: bar `---- -- cheers, Thorsten