all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: reloading mode
Date: Sat, 27 Nov 2004 21:14:21 +0100	[thread overview]
Message-ID: <86k6s7oxr6.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: 87ekikbxh5.fsf@enki.rimspace.net

Daniel Pittman <daniel@rimspace.net> writes:

> On 23 Nov 2004, Alex Polite wrote:
>> I'm altering a mode (transcript.el). Restarting emacs after every edit
>> to the mode file is very tedious. What's the right way of doing it?
>
> You can put your cursor at or after the closing bracket in the
> expression and hit 'C-M-x' to run `eval-defun' and, as such, execute the
> changed code.

C-M-x is used *inside* the expression to evaluate.  C-x C-e is used
after the closing parenthesis.

One other difference is that C-M-x only evaluates top-level
expressions, but C-x C-e can be used inside expressions, too.

C-M-x handles defvar specially, I think that C-x C-e does not.
(The special handling means that changing the value in a defvar and
then doing C-M-x in it changes the value of the variable in Emacs,
although the standard definition of defvar does not change the
variable's value, if it already has one.)

Kai

  reply	other threads:[~2004-11-27 20:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23  9:58 reloading mode Alex Polite
2004-11-23 11:45 ` Daniel Pittman
2004-11-27 20:14   ` Kai Grossjohann [this message]
2004-11-23 11:55 ` David Raleigh Arnold
     [not found] ` <mailman.919.1101211520.27204.help-gnu-emacs@gnu.org>
2004-11-23 12:09   ` Alex Polite
2004-11-23 19:56     ` Joe Corneli
2004-11-23 20:55     ` Stefan Monnier
2004-11-23 12:09 ` Albert Reiner

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=86k6s7oxr6.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /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.