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#4707: 23.1; Elisp manual: index constant variables for defconst Date: Mon, 12 Oct 2009 10:48:52 -0700 Message-ID: <861AFC71DFF34A2BACDC34D965D32133@us.oracle.com> Reply-To: Drew Adams , 4707@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255370854 13442 80.91.229.12 (12 Oct 2009 18:07:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 18:07:34 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 20:07:24 2009 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.50) id 1MxPIq-00030v-43 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 20:07:24 +0200 Original-Received: from localhost ([127.0.0.1]:54380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxPIp-0005fi-Cu for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 14:07:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxPIk-0005fS-ML for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 14:07:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxPIf-0005ds-1H for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 14:07:17 -0400 Original-Received: from [199.232.76.173] (port=46679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxPIe-0005dp-Oo for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 14:07:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40116) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxPIe-0007TX-7N for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 14:07:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9CI7AG9019932; Mon, 12 Oct 2009 11:07:10 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9CHt8VN017404; Mon, 12 Oct 2009 10:55:08 -0700 Resent-Date: Mon, 12 Oct 2009 10:55:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 12 Oct 2009 17:55:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4707 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125536975016502 (code B ref -1); Mon, 12 Oct 2009 17:55:07 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Oct 2009 17:49:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9CHn8Nj016499 for ; Mon, 12 Oct 2009 10:49:09 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxP18-00034I-D9 for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 13:49:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxP12-00031I-RC for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 13:49:05 -0400 Original-Received: from [199.232.76.173] (port=49375 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxP12-000315-9y for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 13:49:00 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:53427 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxP11-000599-KB for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 13:48:59 -0400 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9CHmZaa003010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 12 Oct 2009 17:48:36 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9C7oBWR002082 for ; Mon, 12 Oct 2009 17:49:28 GMT Original-Received: from abhmt004.oracle.com by acsmt357.oracle.com with ESMTP id 20354814971255369731; Mon, 12 Oct 2009 12:48:51 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Oct 2009 10:48:50 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpLZEMAC2Rdn26fQvmFZeLrGBYzog== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4AD36C06.024B:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 12 Oct 2009 14:07:17 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:31856 Archived-At: emacs -Q In the Elisp manual, `constant' is indexed for variables only for node `Constant Variables', which is really about keywords, nil, and t. I find no index entry for defconst in this regard, yet it is the way you define constant variables. Also, the node Constant Variables should mention defconst variables, and point out how they differ from the other constant variables, which are currently described in the node: Trying to set a defconst variable does not raise a `setting-constant' error. Trying to set a keyword, t, or nil does raise that error. IOW, there are really two different kinds of variables that we often call "constants" in Emacs Lisp. Some of them are truly constants (raise an error if you try to set them), some of them are only intended to be used as constants, with no check wrt setting them. This needs to be better documented and better indexed. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'