From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword Date: Fri, 12 Nov 2010 08:42:47 -0800 Message-ID: <96F2D9A2458C40E6920A379C76DF75F8@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289580367 23187 80.91.229.12 (12 Nov 2010 16:46:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 16:46:07 +0000 (UTC) To: 7386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 12 17:46:03 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGwlG-0003vY-Oe for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Nov 2010 17:46:03 +0100 Original-Received: from localhost ([127.0.0.1]:42692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwlG-00039B-82 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Nov 2010 11:46:02 -0500 Original-Received: from [140.186.70.92] (port=52802 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwjP-0001TY-Ub for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:44:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwjN-0000El-RI for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:44:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwjN-0000Eg-PW for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:44:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PGweU-00076G-Da; Fri, 12 Nov 2010 11:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Nov 2010 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7386 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128957989827277 (code B ref -1); Fri, 12 Nov 2010 16:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Nov 2010 16:38:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PGwdl-00075u-H6 for submit@debbugs.gnu.org; Fri, 12 Nov 2010 11:38:18 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PGwdk-00075p-GE for submit@debbugs.gnu.org; Fri, 12 Nov 2010 11:38:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwiO-0008NG-NI for submit@debbugs.gnu.org; Fri, 12 Nov 2010 11:43:05 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:33890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwiO-0008N9-LB for submit@debbugs.gnu.org; Fri, 12 Nov 2010 11:43:04 -0500 Original-Received: from [140.186.70.92] (port=52053 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwiN-0000hT-Pc for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:43:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwiM-0008MM-GW for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:43:03 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:51176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwiM-0008M6-9Y for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2010 11:43:02 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oACGgxt6015058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Nov 2010 16:43:01 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oACGcXhh025696 for ; Fri, 12 Nov 2010 16:42:59 GMT Original-Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 774435541289580177; Fri, 12 Nov 2010 08:42:57 -0800 Original-Received: from dradamslap1 (/10.159.219.63) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 12 Nov 2010 08:42:57 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuCiKNYkZVKrpqdQk6kWeogBDifRQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 12 Nov 2010 11:39:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41521 Archived-At: emacs -Q The description of :value is misleading/incorrect: `:value DEFAULT' This is used for a type that appears as an alternative inside of `choice'; it specifies the default value to use, at first, if and when the user selects this alternative with the menu in the customization buffer. Of course, if the actual value of the option fits this alternative, it will appear showing the actual value, not DEFAULT. If `nil' is not a valid value for the alternative, then it is essential to specify a valid default with `:value'. This gives the impression that :value can be used only within a `choice', which is incorrect. The truth is that :value just provides a default value - in all cases, not just "...if and when the user selects this alternative with the menu...". Here is an example where :value is used to specify the command `ignore' (instead of `nil') as the default value: ;; Use `symbolp' in case the library defining the command is not yet loaded. (restricted-sexp :tag "Command" :match-alternatives (symbolp) :value ignore) In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-09 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'