From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: re-loading an elisp file Date: Thu, 24 Mar 2011 11:57:33 -0700 Message-ID: <5D373AF908DB4E399340127C41602731@us.oracle.com> References: <4D7253C7.2020502@mousecar.com><95E4E1EE722B4C2CBA1441CF03F2C2C4@us.oracle.com><4D72C90E.7090709@mousecar.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 1300993919 14745 80.91.229.12 (24 Mar 2011 19:11:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 19:11:59 +0000 (UTC) To: "'David Combs'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 20:11:55 2011 Return-path: Envelope-to: geh-help-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 1Q2pwn-0003s9-7i for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 20:11:53 +0100 Original-Received: from localhost ([127.0.0.1]:51763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2pls-0004U6-NA for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 15:00:36 -0400 Original-Received: from [140.186.70.92] (port=56074 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2plX-0003y5-Mk for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 15:00:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2piz-0000DW-N0 for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 14:57:38 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:59083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2piz-0000DS-Gc for help-gnu-emacs@gnu.org; Thu, 24 Mar 2011 14:57:37 -0400 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 p2OIvXtn010341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Mar 2011 18:57:35 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2OIvXV8025749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Mar 2011 18:57:33 GMT Original-Received: from abhmt017.oracle.com (abhmt017.oracle.com [141.146.116.26]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2OIvWb0032416; Thu, 24 Mar 2011 13:57:32 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Mar 2011 11:57:32 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcvqUzRAfxCpoYfGSKqMCmhfPO4IugAAd2cw X-Source-IP: acsmt357.oracle.com [141.146.40.157] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4D8B941D.00D3,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80409 Archived-At: > >Think of defvar as defining a variable. If the variable is already > >defined, there's nothing for defvar to do. Setting the variable's > ... > > Suppose the default value is 5, and then you reset (via setq) it > to 0, or null, or the like. > > Then you read in a .el-file containing a defvar on it -- > what happens then? Nothing. C-h f defvar RET ...INITVALUE is evaluated, and used to set SYMBOL, only if SYMBOL's value is void. After your `setq' the symbol's value is not void, so `defvar' does nothing.