unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* evaluating .emacs file after revision
@ 2003-04-23 16:40 Hugh Lawson
  2003-04-23 16:46 ` David Kastrup
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hugh Lawson @ 2003-04-23 16:40 UTC (permalink / raw)



What is the most disciplined way to do this without restarting emacs?

--to debug the revised file

--to make it effective in the running session of emacs

I've looked, but I can't find the documentation on this.  

-- 
Hugh Lawson
hlawson@triad.rr.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: evaluating .emacs file after revision
  2003-04-23 16:40 evaluating .emacs file after revision Hugh Lawson
@ 2003-04-23 16:46 ` David Kastrup
  2003-04-23 17:01 ` Marco Parrone
  2003-04-25 12:40 ` Lute Kamstra
  2 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2003-04-23 16:46 UTC (permalink / raw)


Hugh Lawson <hlawson@triad.rr.com> writes:

> What is the most disciplined way to do this without restarting emacs?
> 
> --to debug the revised file
> 
> --to make it effective in the running session of emacs
> 
> I've looked, but I can't find the documentation on this.  

If you just added/changed a single Form, place your cursor behind it
and press C-x C-e.


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: evaluating .emacs file after revision
  2003-04-23 16:40 evaluating .emacs file after revision Hugh Lawson
  2003-04-23 16:46 ` David Kastrup
@ 2003-04-23 17:01 ` Marco Parrone
  2003-04-25 12:40 ` Lute Kamstra
  2 siblings, 0 replies; 4+ messages in thread
From: Marco Parrone @ 2003-04-23 17:01 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hugh Lawson <hlawson@triad.rr.com> writes:

> What is the most disciplined way to do this without restarting emacs?
> 
> --to debug the revised file

You can eval each single expression putting the mark before it
(`C-SPC'), moving the point after it (`C-M-f'), and evaluating it
(`C-x C-e').

> --to make it effective in the running session of emacs

With `M-x load-file'.

> I've looked, but I can't find the documentation on this.  

C-h i d m emacs RET i loading Lisp code RET

With emacs 21.3.50.

- -- 
Marco Parrone - marc0@autistici.org
www.autistici.org/marc0
2143 9E77 D5E6 115A 48AD  A170 D0EE F736 (4E88 99C2)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+psa80O73Nk6ImcIRArCaAJ41g9RmToSBp+wCLr8XP2LjQNwmqACeP9rG
BblMWCtErddgJrgPKptJdqk=
=6qSo
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: evaluating .emacs file after revision
  2003-04-23 16:40 evaluating .emacs file after revision Hugh Lawson
  2003-04-23 16:46 ` David Kastrup
  2003-04-23 17:01 ` Marco Parrone
@ 2003-04-25 12:40 ` Lute Kamstra
  2 siblings, 0 replies; 4+ messages in thread
From: Lute Kamstra @ 2003-04-25 12:40 UTC (permalink / raw)


Hugh Lawson <hlawson@triad.rr.com> writes:

> What is the most disciplined way to do this without restarting emacs?
>
> --to debug the revised file
>
> --to make it effective in the running session of emacs
>
> I've looked, but I can't find the documentation on this.  

If you changed more than a few lines in your .emacs, you can do 
M-x eval-buffer in the .emacs buffer.  Debugging Emacs Lisp is
described in the GNU Emacs Lisp Reference Manual.  Type 
C-h i d m elisp m debugging if you have its info file installed.  
It is not (yet) packaged together with Emacs.  A copy can be 
obtained from http://www.gnu.org/manual/elisp/

Lute.

-- 
(spook) => "ISEC embassy bemd"
(insert-file-contents "~/.signature") => (error "`~/.signature' too rude")

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-25 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 16:40 evaluating .emacs file after revision Hugh Lawson
2003-04-23 16:46 ` David Kastrup
2003-04-23 17:01 ` Marco Parrone
2003-04-25 12:40 ` Lute Kamstra

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).