summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
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 5ed050941e2..551bba03923 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -333,9 +333,11 @@ Update sections of the current buffer generated by \\[update-file-autoloads]."
(or (get-file-buffer file)
(file-exists-p file)))
()
- (setq file (if (y-or-n-p (format "Library \"%s\" (load \
-file \"%s\") doesn't exist. Remove its autoload section? "
- (nth 2 form) file))
+ (message "Can't find library \"%s\" (load file \"%s\")"
+ (nth 2 form) file)
+ (sit-for 2)
+ (setq file (if (y-or-n-p (format "Remove autoloads for \"%s\"? "
+ (nth 2 form)))
t
(condition-case ()
(read-file-name (format "Find \"%s\" load file: "