aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-05-10 00:49:06 +0000
committerRoland McGrath1993-05-10 00:49:06 +0000
commit0dea0bbe3441a352db75e559c44ebb3ce91fca52 (patch)
tree045d0b4f10558e0ac3e96412d769fd724f43ef6f
parent32de648411142bd0b6d473b6e4a8c1f941ae94ad (diff)
downloademacs-0dea0bbe3441a352db75e559c44ebb3ce91fca52.tar.gz
emacs-0dea0bbe3441a352db75e559c44ebb3ce91fca52.zip
(byte-recompile-directory): If ARG is non-nil, set it to its prefix
numeric value. Test for ARG being zero with eq, not zerop.
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index c599fbcf9b2..7d686b10057 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1065,6 +1065,8 @@ But a prefix argument (optional second arg) means ask user,
1065for each such `.el' file, whether to compile it. Prefix argument 0 means 1065for each such `.el' file, whether to compile it. Prefix argument 0 means
1066don't ask and compile the file anyway." 1066don't ask and compile the file anyway."
1067 (interactive "DByte recompile directory: \nP") 1067 (interactive "DByte recompile directory: \nP")
1068 (if arg
1069 (setq arg (prefix-numeric-value arg)))
1068 (save-some-buffers) 1070 (save-some-buffers)
1069 (set-buffer-modified-p (buffer-modified-p)) ;Update the mode line. 1071 (set-buffer-modified-p (buffer-modified-p)) ;Update the mode line.
1070 (let ((directories (list (expand-file-name directory))) 1072 (let ((directories (list (expand-file-name directory)))
@@ -1082,7 +1084,7 @@ don't ask and compile the file anyway."
1082 (if (and (not (member (car files) '("." ".." "RCS" "CVS"))) 1084 (if (and (not (member (car files) '("." ".." "RCS" "CVS")))
1083 (file-directory-p source)) 1085 (file-directory-p source))
1084 (if (or (null arg) 1086 (if (or (null arg)
1085 (eq arg 0) 1087 (eq 0 arg)
1086 (y-or-n-p (concat "Check " source "? "))) 1088 (y-or-n-p (concat "Check " source "? ")))
1087 (setq directories 1089 (setq directories
1088 (nconc directories (list source)))) 1090 (nconc directories (list source))))
@@ -1092,7 +1094,7 @@ don't ask and compile the file anyway."
1092 (if (file-exists-p dest) 1094 (if (file-exists-p dest)
1093 (file-newer-than-file-p source dest) 1095 (file-newer-than-file-p source dest)
1094 (and arg 1096 (and arg
1095 (or (zerop arg) 1097 (or (eq 0 arg)
1096 (y-or-n-p (concat "Compile " source "? ")))))) 1098 (y-or-n-p (concat "Compile " source "? "))))))
1097 (progn (byte-compile-file source) 1099 (progn (byte-compile-file source)
1098 (setq file-count (1+ file-count)) 1100 (setq file-count (1+ file-count))