(update-file-autoloads): Use anchored regexp search instead of requiring

leading newline before generate-autoload-cookie, which gave false negative
if sole cookie in file was at bob.
This commit is contained in:
Roland McGrath 1997-08-07 15:53:39 +00:00
parent 7050d53077
commit f0646ca0d4

View file

@ -376,8 +376,9 @@ Autoload section for %s is up to date."
(widen)
(goto-char (point-min))
(prog1
(if (search-forward
(concat "\n" generate-autoload-cookie)
(if (re-search-forward
(concat "^" (regexp-quote
generate-autoload-cookie))
nil t)
nil
(if (interactive-p)