changeset 19209:50857b41060a

(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.
author Roland McGrath <roland@gnu.org>
date Thu, 07 Aug 1997 15:53:39 +0000
parents 1d24f0a03f75
children ad26cf3804c3
files lisp/emacs-lisp/autoload.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/autoload.el	Thu Aug 07 09:01:52 1997 +0000
+++ b/lisp/emacs-lisp/autoload.el	Thu Aug 07 15:53:39 1997 +0000
@@ -376,8 +376,9 @@
 			 (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)