comparison lisp/emacs-lisp/autoload.el @ 36743:783da1783d8b

(generate-file-autoloads): Remove warning about line lengths.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 12 Mar 2001 14:53:39 +0000
parents 6144bd28b9b5
children b174db545cfd
comparison
equal deleted inserted replaced
36742:4af1e8c6b318 36743:783da1783d8b
1 ;;; autoload.el --- maintain autoloads in loaddefs.el. 1 ;;; autoload.el --- maintain autoloads in loaddefs.el.
2 2
3 ;; Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. 3 ;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2001
4 ;; Free Software Foundation, Inc.
4 5
5 ;; Author: Roland McGrath <roland@gnu.org> 6 ;; Author: Roland McGrath <roland@gnu.org>
6 ;; Keywords: maint 7 ;; Keywords: maint
7 8
8 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
343 (skip-chars-forward "^ \n") 344 (skip-chars-forward "^ \n")
344 (or (eolp) 345 (or (eolp)
345 (insert "\n" generate-autoload-section-continuation))))) 346 (insert "\n" generate-autoload-section-continuation)))))
346 (insert ";;; Generated autoloads from " 347 (insert ";;; Generated autoloads from "
347 (autoload-trim-file-name file) "\n") 348 (autoload-trim-file-name file) "\n")
348 ;; Warn if we put a line in loaddefs.el
349 ;; that is long enough to cause trouble.
350 (while (< (point) output-end)
351 (let ((beg (point)))
352 (end-of-line)
353 (if (> (- (point) beg) 900)
354 (progn
355 (message "A line is too long--over 900 characters")
356 (sleep-for 2)
357 (goto-char output-end))))
358 (forward-line 1))
359 (goto-char output-end) 349 (goto-char output-end)
360 (insert generate-autoload-section-trailer))) 350 (insert generate-autoload-section-trailer)))
361 (message "Generating autoloads for %s...done" file))) 351 (message "Generating autoloads for %s...done" file)))
362 352
363 ;;;###autoload 353 ;;;###autoload