emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading source right after compiling


From: Sam Steingold
Subject: loading source right after compiling
Date: Wed, 26 Jan 2011 15:39:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
 of 2011-01-25 on tbox

emacs -Q
C-x C-f foo.el RET
insert some code, e.g., (defun f (x) (+ 1 x))
M-x emacs-lisp-byte-compile RET  answer yes to offer to save file.
file is saved and compiled.
now M-x emacs-lisp-byte-compile-and-load RET will load the sources:
Loading /home/sds/lisp/foo.el (source)...done
even though the compiled file is newer.

Note that if you touch the file and do
M-x emacs-lisp-byte-compile-and-load RET
then the compiled version is loaded.

This will happen even if foo.elc is newer
(just touch it before calling emacs-lisp-byte-compile-and-load).

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://openvotingconsortium.org http://honestreporting.com
http://truepeace.org http://palestinefacts.org http://thereligionofpeace.com
Sinners can repent, but stupid is forever.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]