Recompiling a Directory of LISP Files in Emacs
Use the command: byte-recompile-directory
But notice that .el files are NOT recompiled if no .elc files exist! To get around this chicken/egg issue, you can to add a 0 prefix when you invoke the command:
1) Press ESC
2) Press 0 (zero)
3) Press 0 (zero)
4) Press M-x
5) Type byte-recompile-directory
6) Press RETURN
7) Specify directory (I chose my site directory)
8) Press RETURN
Here is the actual function information ...
=== BEGIN ===
byte-recompile-directory is an interactive compiled Lisp function in
`bytecomp'.
(byte-recompile-directory DIRECTORY &optional ARG FORCE)
Recompile every `.el' file in DIRECTORY that needs recompilation.
This is if a `.elc' file exists but is older than the `.el' file.
Files in subdirectories of DIRECTORY are processed also.
If the `.elc' file does not exist, normally the `.el' file is *not*
compiled.
But a prefix argument (optional second arg) means ask user,
for each such `.el' file, whether to compile it. Prefix argument 0
means
don't ask and compile the file anyway.
A nonzero prefix argument also means ask about each subdirectory.
If the third argument FORCE is non-nil,
recompile every `.el' file that already has a `.elc' file.
=== END ===
But notice that .el files are NOT recompiled if no .elc files exist! To get around this chicken/egg issue, you can to add a 0 prefix when you invoke the command:
1) Press ESC
2) Press 0 (zero)
3) Press 0 (zero)
4) Press M-x
5) Type byte-recompile-directory
6) Press RETURN
7) Specify directory (I chose my site directory)
8) Press RETURN
Here is the actual function information ...
=== BEGIN ===
byte-recompile-directory is an interactive compiled Lisp function in
`bytecomp'.
(byte-recompile-directory DIRECTORY &optional ARG FORCE)
Recompile every `.el' file in DIRECTORY that needs recompilation.
This is if a `.elc' file exists but is older than the `.el' file.
Files in subdirectories of DIRECTORY are processed also.
If the `.elc' file does not exist, normally the `.el' file is *not*
compiled.
But a prefix argument (optional second arg) means ask user,
for each such `.el' file, whether to compile it. Prefix argument 0
means
don't ask and compile the file anyway.
A nonzero prefix argument also means ask about each subdirectory.
If the third argument FORCE is non-nil,
recompile every `.el' file that already has a `.elc' file.
=== END ===


0 Comments:
Post a Comment
<< Home