# HG changeset patch # User Roland McGrath # Date 820958244 0 # Node ID 1c331f9332aea2e58bf895776fedd7505d9a3dcb # Parent d44a43c284e7e6f3a8a7190f7ec227cf7592f5e3 (update-file-autoloads): Fix placement of new sections. diff -r d44a43c284e7 -r 1c331f9332ae lisp/emacs-lisp/autoload.el --- a/lisp/emacs-lisp/autoload.el Sat Jan 06 18:38:41 1996 +0000 +++ b/lisp/emacs-lisp/autoload.el Sat Jan 06 19:57:24 1996 +0000 @@ -330,8 +330,14 @@ ;; insert one before the section here. (goto-char (match-beginning 0)) (setq found 'new))))) + (or found + (progn + (setq found 'new) + ;; No later sections in the file. Put before the last page. + (goto-char (point-max)) + (search-backward "\f"))) (or (eq found 'up-to-date) - (and (memq found '(nil new)) + (and (eq found 'new) ;; Check that FILE has any cookies before generating a ;; new section for it. (save-excursion