]> git.eshelyaron.com Git - emacs.git/commitdiff
(update-file-autoloads): Use anchored regexp search instead of requiring
authorRoland McGrath <roland@gnu.org>
Thu, 7 Aug 1997 15:53:39 +0000 (15:53 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 7 Aug 1997 15:53:39 +0000 (15:53 +0000)
leading newline before generate-autoload-cookie, which gave false negative
if sole cookie in file was at bob.

lisp/emacs-lisp/autoload.el

index 986cb74661c760c6d21a2fb320357059bee403d3..adc8b6fb2244122692f3c614940b30a423d16371 100644 (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)