From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: defconst Date: Wed, 17 Nov 2004 16:36:13 -0800 Message-ID: References: <200411180021.iAI0LBK00437@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100738237 10189 80.91.229.6 (18 Nov 2004 00:37:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2004 00:37:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 18 01:37:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CUaII-0007iV-00 for ; Thu, 18 Nov 2004 01:37:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUaR7-0004rD-Hw for ged-emacs-devel@m.gmane.org; Wed, 17 Nov 2004 19:46:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUaQu-0004pv-2J for emacs-devel@gnu.org; Wed, 17 Nov 2004 19:45:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUaQt-0004pY-9Q for emacs-devel@gnu.org; Wed, 17 Nov 2004 19:45:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUaQt-0004pV-2s for emacs-devel@gnu.org; Wed, 17 Nov 2004 19:45:55 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CUaHf-00061X-NJ for emacs-devel@gnu.org; Wed, 17 Nov 2004 19:36:24 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by agminet01.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iAI0aFrX011751; Wed, 17 Nov 2004 16:36:15 -0800 Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id iAI0aFb8010798; Wed, 17 Nov 2004 17:36:15 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id iAI0aEd3010788; Wed, 17 Nov 2004 17:36:15 -0700 Original-To: "Luc Teirlinck" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <200411180021.iAI0LBK00437@raven.dms.auburn.edu> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29992 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29992 The concrete effect of `(defconst var value)' is that it is equivalent with `(defvar var value)' followed by `(setq var value)' Just a nit-picking reminder: The example you gave, without doc strings, is correct. However, in general, defconst is not exactly the same as defvar followed by setq. Like defvar, defconst lets you change the doc string, as well as the value. - Drew