[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: re-defvar a variable without reloading emacs
From: |
Markus Triska |
Subject: |
Re: re-defvar a variable without reloading emacs |
Date: |
Sat, 13 Jun 2009 15:54:32 +0200 |
ken <gebser@mousecar.com> 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.