diff options
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 6 |
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, | |||
| 1065 | for each such `.el' file, whether to compile it. Prefix argument 0 means | 1065 | for each such `.el' file, whether to compile it. Prefix argument 0 means |
| 1066 | don't ask and compile the file anyway." | 1066 | don'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)) |