From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.help Subject: Re: re-defvar a variable without reloading emacs Date: Sat, 13 Jun 2009 15:54:32 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244914664 31865 80.91.229.12 (13 Jun 2009 17:37:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 17:37:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 19:37:40 2009 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.50) id 1MFXAc-0007wt-HX for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 19:37:34 +0200 Original-Received: from localhost ([127.0.0.1]:60891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFXAb-0000jZ-NZ for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 13:37:33 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:B1K/bByamALBtivjBJBw1qw67CU= Original-Lines: 11 Original-NNTP-Posting-Host: news-access-from.tuwien.ac.at Original-X-Trace: 1244901272 tunews.univie.ac.at 11094 192.35.241.118 Original-X-Complaints-To: abuse@tuwien.ac.at Original-Xref: news.stanford.edu gnu.emacs.help:170020 X-Mailman-Approved-At: Sat, 13 Jun 2009 13:34:23 -0400 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:65254 Archived-At: ken writes: > I've got a defvar'd variable in my .emacs which I want to redefine. But > rerunning (defvar somevar "someval") doesn't work Use C-M-x (`eval-defun') on the form instead; from its docstring: If the current defun is actually a call to `defvar' or `defcustom', evaluating it this way resets the variable using its initial value expression even if the variable already has some other value.