From: Roland McGrath Date: Thu, 7 Aug 1997 15:53:39 +0000 (+0000) Subject: (update-file-autoloads): Use anchored regexp search instead of requiring X-Git-Tag: emacs-20.1~738 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0646ca0d47f9552f18a66c3119ac05d58f73ec5;p=emacs.git (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. --- 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)