aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/autoload.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 2c88f2e0bec..e2d7e156d8c 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -234,6 +234,17 @@ are used."
234 (terpri outbuf) 234 (terpri outbuf)
235 (insert ";;; Generated autoloads from " 235 (insert ";;; Generated autoloads from "
236 (autoload-trim-file-name file) "\n") 236 (autoload-trim-file-name file) "\n")
237 ;; Warn if we put a line in loaddefs.el
238 ;; that is long enough to cause trouble.
239 (while (< (point) output-end)
240 (let ((beg (point)))
241 (end-of-line)
242 (if (> (- (point) beg) 900)
243 (progn
244 (message "A line is too long--over 900 characters")
245 (sleep-for 2)
246 (goto-char output-end))))
247 (forward-line 1))
237 (goto-char output-end) 248 (goto-char output-end)
238 (insert generate-autoload-section-trailer))) 249 (insert generate-autoload-section-trailer)))
239 (message "Generating autoloads for %s...done" file))) 250 (message "Generating autoloads for %s...done" file)))