comparison lisp/emacs-lisp/bytecomp.el @ 45842:288c321d3282

(byte-recompile-directory): Doc fix. (batch-byte-recompile-directory): Undo previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 15 Jun 2002 20:37:01 +0000
parents 26228dbfd782
children 503e1f14ba3d
comparison
equal deleted inserted replaced
45841:8fa323feac82 45842:288c321d3282
8 ;; Maintainer: FSF 8 ;; Maintainer: FSF
9 ;; Keywords: lisp 9 ;; Keywords: lisp
10 10
11 ;;; This version incorporates changes up to version 2.10 of the 11 ;;; This version incorporates changes up to version 2.10 of the
12 ;;; Zawinski-Furuseth compiler. 12 ;;; Zawinski-Furuseth compiler.
13 (defconst byte-compile-version "$Revision: 2.97 $") 13 (defconst byte-compile-version "$Revision: 2.98 $")
14 14
15 ;; This file is part of GNU Emacs. 15 ;; This file is part of GNU Emacs.
16 16
17 ;; GNU Emacs is free software; you can redistribute it and/or modify 17 ;; GNU Emacs is free software; you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by 18 ;; it under the terms of the GNU General Public License as published by
1307 (defun byte-recompile-directory (directory &optional arg force) 1307 (defun byte-recompile-directory (directory &optional arg force)
1308 "Recompile every `.el' file in DIRECTORY that needs recompilation. 1308 "Recompile every `.el' file in DIRECTORY that needs recompilation.
1309 This is if a `.elc' file exists but is older than the `.el' file. 1309 This is if a `.elc' file exists but is older than the `.el' file.
1310 Files in subdirectories of DIRECTORY are processed also. 1310 Files in subdirectories of DIRECTORY are processed also.
1311 1311
1312 If the `.elc' file does not exist, normally the `.el' file is *not* compiled. 1312 If the `.elc' file does not exist, normally this function *does not*
1313 But a prefix argument (optional second arg) means ask user, 1313 compile the corresponding `.el' file. However,
1314 for each such `.el' file, whether to compile it. Prefix argument 0 means 1314 if ARG (the prefix argument) is 0, that means do compile all those files.
1315 don't ask and compile the file anyway. 1315 A nonzero ARG means ask the user, for each such `.el' file,
1316 1316 whether to compile it.
1317 A nonzero prefix argument also means ask about each subdirectory. 1317
1318 A nonzero ARG also means ask about each subdirectory before scanning it.
1318 1319
1319 If the third argument FORCE is non-nil, 1320 If the third argument FORCE is non-nil,
1320 recompile every `.el' file that already has a `.elc' file." 1321 recompile every `.el' file that already has a `.elc' file."
1321 (interactive "DByte recompile directory: \nP") 1322 (interactive "DByte recompile directory: \nP")
1322 (if arg 1323 (if arg
3746 (if (not noninteractive) 3747 (if (not noninteractive)
3747 (error "batch-byte-recompile-directory is to be used only with -batch")) 3748 (error "batch-byte-recompile-directory is to be used only with -batch"))
3748 (or command-line-args-left 3749 (or command-line-args-left
3749 (setq command-line-args-left '("."))) 3750 (setq command-line-args-left '(".")))
3750 (while command-line-args-left 3751 (while command-line-args-left
3751 (byte-recompile-directory (car command-line-args-left) 0) 3752 (byte-recompile-directory (car command-line-args-left))
3752 (setq command-line-args-left (cdr command-line-args-left))) 3753 (setq command-line-args-left (cdr command-line-args-left)))
3753 (kill-emacs 0)) 3754 (kill-emacs 0))
3754 3755
3755 3756
3756 (make-obsolete 'dot 'point "before 19.15") 3757 (make-obsolete 'dot 'point "before 19.15")