Commit 0f09bac6 authored by Roland McGrath's avatar Roland McGrath

(update-file-autoloads): Fix placement of new sections.

parent b59c7256
......@@ -330,8 +330,14 @@ autoloads go somewhere else.")
;; 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
......
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