From unknown Sat Aug 16 16:21:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword 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: To: 7386@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.128957989827277 (code B ref -1); Fri, 12 Nov 2010 16:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2010 16:38:18 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 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 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 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 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 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 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 Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 774435541289580177; Fri, 12 Nov 2010 08:42:57 -0800 Received: from dradamslap1 (/10.159.219.63) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 12 Nov 2010 08:42:57 -0800 From: "Drew Adams" Date: Fri, 12 Nov 2010 08:42:47 -0800 Message-ID: <96F2D9A2458C40E6920A379C76DF75F8@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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' From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 02 09:37:01 2011 Received: (at control) by debbugs.gnu.org; 2 Jul 2011 13:37:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd0NZ-0005JR-0k for submit@debbugs.gnu.org; Sat, 02 Jul 2011 09:37:01 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd0NX-0005JA-Ny for control@debbugs.gnu.org; Sat, 02 Jul 2011 09:37:00 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qd0NM-0005Rs-AS for control@debbugs.gnu.org; Sat, 02 Jul 2011 15:36:48 +0200 Date: Sat, 02 Jul 2011 15:36:47 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #7386 X-MailScanner-ID: 1Qd0NM-0005Rs-AS X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310218608.7362@srTnWl8uKBGoYHqz1f3hlA X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) tags 7386 fixed close 7386 From unknown Sat Aug 16 16:21:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7386: 24.0.50; (elisp)Type Keywords: incorrect description of :value keyword Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2011 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7386 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: "Drew Adams" Cc: 7386@debbugs.gnu.org Received: via spool by 7386-submit@debbugs.gnu.org id=B7386.130961489325382 (code B ref 7386); Sat, 02 Jul 2011 13:55:02 +0000 Received: (at 7386) by debbugs.gnu.org; 2 Jul 2011 13:54:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd0eq-0006bA-8V for submit@debbugs.gnu.org; Sat, 02 Jul 2011 09:54:52 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qd0eo-0006au-Ho for 7386@debbugs.gnu.org; Sat, 02 Jul 2011 09:54:51 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qd0ec-0005iU-Qa; Sat, 02 Jul 2011 15:54:38 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: <96F2D9A2458C40E6920A379C76DF75F8@us.oracle.com> (Drew Adams's message of "Fri, 12 Nov 2010 08:42:47 -0800") Date: Sat, 02 Jul 2011 15:36:45 +0200 Message-ID: References: <96F2D9A2458C40E6920A379C76DF75F8@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXCipbe8NLa4cri9Nfm 99qra3/Ru7SuXXrCyuUSAAACa0lEQVQ4jVXTQY+iQBAF4GKRcAUZPA8Kw1WE9axAPAsb4LoOGq6E BObv76vqdtY5kU7683VXP8k2NnMQTS6+o+fXiX3j9eLS6A6V2wXO6MZV0u2OYxpV6y7YEIDrT4lt HGbPn9LBPDRYuxYFAzYCeHFV2OFlzCKsb86VNti4AKxnz6nLwcybNwfAIAa3jSTY98tYRoC9c/UI Gxd3ELCkwwpgv6QPY021awvAQe9HBe7HqxtToMHuCU5L+TAPMz2Ba/dHPlKJpGsa1/S+JAPuEDAw JQEgnwNSR5o0qAVkfpWQJHwBMGxCSTgDEoCngRfVhQJ1wSMxDl87p/UGMxEQAYT7lj5Uwk2GDpBf S38qrJ4YqLsA7Blglqe2IE5INCgZZPuptO45VYdOEoxnAg+/zTCSaEosgDedwODR5yNtO5kSwI4T /ggoY4Mk4cgJqd3njYBVPnr0hY3JT3AFOBOe8XYYXS6OzFAAXo3w7mnMQIojAMPfYCS2ycWp9dAn Gbr7aOl9TNEDBpk8K0AM0JNqmgYnSWg+/7Ypj6Q6Wy+gjNoPq7/QLy5OK9VUPQB4x5oCJFgvPQDY AWAkM26mAPdgJa9UDCYNuFmv7yDPqkBJeCWVECrQfe7bbDBlJKo4qST4007WPknTUBwkZShOh2fF D5wb2uqmofycwD1gwBX1+NKS8AJCqag0jTf+Rg/wrAAlfRcHGwsGZWwWVnihT900Bqo4+OLPSFvp MhIGU/fALAG4oq9NezzBHf9atwkv303TCRjJHAAMPYCjwQnr1ZnqdafAWRVHA5+20VQM9/9Ne1Og 4YoeX5uGAzOo/gHSowqYV1z4nAAAAABJRU5ErkJggg== X-Now-Playing: Boris's _Variations_: "Korosu" X-Hashcash: 1:23:110702:drew.adams@oracle.com::UJ6MJ2n3ddp+PszC:0000000000000000000000000000000000000000FOwe X-Hashcash: 1:23:110702:7386@debbugs.gnu.org::Ew2ycWz3mxZS5P2z:00000000000000000000000000000000000000000PCdm MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qd0ec-0005iU-Qa X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310219678.91546@bGM772k71OenNcElzzQSOA X-Spam-Status: No X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) "Drew Adams" writes: > 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...". Ok; I've now clarified the manual here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/