From f0646ca0d47f9552f18a66c3119ac05d58f73ec5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 7 Aug 1997 15:53:39 +0000 Subject: [PATCH] (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. --- lisp/emacs-lisp/autoload.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 986cb74661c..adc8b6fb224 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -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) -- 2.39.2