unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
Subject: Re: reloading mode
Date: Tue, 23 Nov 2004 22:45:10 +1100	[thread overview]
Message-ID: <87ekikbxh5.fsf@enki.rimspace.net> (raw)
In-Reply-To: 20041123095847.GA4069@matijek.v10a.ath.cx

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.

Alternately, `M-x eval-buffer' in the mode buffer will run all the code
there, changing the definitions at runtime.

Finally, you can `M-x load-file', then specify which Lisp file to load,
or even `M-x byte-compile-file' to byte-compile it before you load it.


Anyway, if you change a function, or whatever, you can simply execute
that Lisp code at runtime and the change takes immediate effect within
Emacs.

Regards,
        Daniel

-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, especially if the goods are worthless.
        -- Sinclair Lewis

  reply	other threads:[~2004-11-23 11:45 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 [this message]
2004-11-27 20:14   ` Kai Grossjohann
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ekikbxh5.fsf@enki.rimspace.net \
    --to=daniel@rimspace.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).