diff options
author | Roland McGrath <roland@gnu.org> | 1997-08-07 15:53:39 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1997-08-07 15:53:39 +0000 |
commit | f0646ca0d47f9552f18a66c3119ac05d58f73ec5 (patch) | |
tree | 2ee4cf0293bcee01a64679c07261e38bfb9e8d84 /lisp | |
parent | 7050d53077c688c259520841687b963c605f57f3 (diff) | |
download | emacs-f0646ca0d47f9552f18a66c3119ac05d58f73ec5.tar.gz emacs-f0646ca0d47f9552f18a66c3119ac05d58f73ec5.tar.bz2 emacs-f0646ca0d47f9552f18a66c3119ac05d58f73ec5.zip |
(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.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 5 |
1 files 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) |