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

(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
(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.
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