summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-21 20:20:46 +0000
committerRoland McGrath <roland@gnu.org>1996-01-21 20:20:46 +0000
commitd5aa62ec563dc0cf63bed02433c7c8f6d375b97a (patch)
tree5a03b4e98b9a7060b5ee0856306c9fe254ff2968 /lisp/emacs-lisp
parent994a65f39611c9e1283ad946452556ce15adc436 (diff)
downloademacs-d5aa62ec563dc0cf63bed02433c7c8f6d375b97a.tar.gz
emacs-d5aa62ec563dc0cf63bed02433c7c8f6d375b97a.tar.bz2
emacs-d5aa62ec563dc0cf63bed02433c7c8f6d375b97a.zip
(update-file-autoloads): Only give "up to date" msg if (interactive-p).
(update-autoloads-from-directory): Call expand-file-name on arg.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/autoload.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 439f13cd515..4490cb7533d 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -309,7 +309,6 @@ autoloads go somewhere else.")
(let ((begin (match-beginning 0))
(last-time (nth 4 form))
(file-time (nth 5 (file-attributes file))))
- (message "%s: las %s vs %s" file last-time file-time)
(if (and (or (null existing-buffer)
(not (buffer-modified-p existing-buffer)))
(listp last-time) (= (length last-time) 2)
@@ -318,8 +317,10 @@ autoloads go somewhere else.")
(>= (nth 1 last-time)
(nth 1 file-time)))))
(progn
- (message "Autoload section for %s is up to date."
- file)
+ (if (interactive-p)
+ (message "\
+Autoload section for %s is up to date."
+ file))
(setq found 'up-to-date))
(search-forward generate-autoload-section-trailer)
(delete-region begin (point))
@@ -375,6 +376,7 @@ autoloads go somewhere else.")
Update loaddefs.el with all the current autoloads from DIR, and no old ones.
This uses `update-file-autoloads' (which see) do its work."
(interactive "DUpdate autoloads from directory: ")
+ (setq dir (expand-file-name dir))
(let ((files (directory-files dir nil "^[^=].*\\.el$")))
(save-excursion
(set-buffer (find-file-noselect