From: Markus Triska <markus.triska@gmx.at>
To: help-gnu-emacs@gnu.org
Subject: Re: re-defvar a variable without reloading emacs
Date: Sat, 13 Jun 2009 15:54:32 +0200 [thread overview]
Message-ID: <m2fxe4me7b.fsf@gmx.at> (raw)
In-Reply-To: mailman.563.1244897480.2239.help-gnu-emacs@gnu.org
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.
next parent reply other threads:[~2009-06-13 13:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.563.1244897480.2239.help-gnu-emacs@gnu.org>
2009-06-13 13:54 ` Markus Triska [this message]
2009-06-13 12:51 re-defvar a variable without reloading emacs ken
2009-06-13 13:15 ` Eli Zaretskii
2009-06-13 15:19 ` Drew Adams
2009-06-13 23:48 ` ken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2fxe4me7b.fsf@gmx.at \
--to=markus.triska@gmx.at \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.