Commit 0b33ec46 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(update-file-autoloads): Give clean errors

if autoloads file is empty or can't be written.
parent 7f45de2d
......@@ -314,6 +314,10 @@ are used."
(expand-file-name generated-autoload-file
(expand-file-name "lisp"
source-directory)))))
(or (> (buffer-size) 0)
(error "Autoloads file %s does not exist" buffer-file-name))
(or (file-writable-p buffer-file-name)
(error "Autoloads file %s is not writable" buffer-file-name))
(save-excursion
(save-restriction
(widen)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment