Commit f0646ca0 authored by Roland McGrath's avatar Roland McGrath
Browse files

(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.
parent 7050d530
......@@ -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)
......
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