aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-17 20:02:15 +0000
committerRichard M. Stallman1994-09-17 20:02:15 +0000
commitd0cb5e047d1ae957f4698cd42d9d10011130c060 (patch)
treec875e120206b8be14d95cf2fc04833d485618df9
parent2eb1d6a2a2bd29464f56567a9dc8d63fbfaa2ab2 (diff)
downloademacs-d0cb5e047d1ae957f4698cd42d9d10011130c060.tar.gz
emacs-d0cb5e047d1ae957f4698cd42d9d10011130c060.zip
(generate-file-autoloads): Warn if we put a line
in loaddefs.el that is long enough to cause trouble.
-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)))