diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2007-02-13 12:07:26 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2007-02-13 12:07:26 +0000 |
commit | f9b4b5d86576362b82c6900187ed3fa45f4a2479 (patch) | |
tree | 6e9cc0b3a78764de2754c088f0ff9d24f1540cee /lisp/emacs-lisp | |
parent | 409d26134b3de40bac01dffab971ed18014ae355 (diff) | |
download | emacs-f9b4b5d86576362b82c6900187ed3fa45f4a2479.tar.gz emacs-f9b4b5d86576362b82c6900187ed3fa45f4a2479.tar.bz2 emacs-f9b4b5d86576362b82c6900187ed3fa45f4a2479.zip |
(byte-compile-dest-file, byte-compile-file): Doc fixes.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 025d862c11d..1d7cbfc422c 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -219,7 +219,9 @@ if you change this variable." ;; The user may want to redefine this along with emacs-lisp-file-regexp, ;; so only define it if it is undefined. (defun byte-compile-dest-file (filename) - "Convert an Emacs Lisp source file name to a compiled file name." + "Convert an Emacs Lisp source file name to a compiled file name. +If FILENAME matches `emacs-lisp-file-regexp' (by default, files +with the extension `.el'), add `c' to it; otherwise add `.elc'." (setq filename (byte-compiler-base-file-name filename)) (setq filename (file-name-sans-versions filename)) (cond ((eq system-type 'vax-vms) @@ -1615,7 +1617,8 @@ This is normally set in local file variables at the end of the elisp file: ;;;###autoload (defun byte-compile-file (filename &optional load) "Compile a file of Lisp code named FILENAME into a file of byte code. -The output file's name is made by appending `c' to the end of FILENAME. +The output file's name is generated by passing FILENAME to the +`byte-compile-dest-file' function (which see). With prefix arg (noninteractively: 2nd arg), LOAD the file after compiling. The value is non-nil if there were no errors, nil if errors." ;; (interactive "fByte compile file: \nP") |