diff options
| author | Roland McGrath | 1997-08-07 15:53:39 +0000 |
|---|---|---|
| committer | Roland McGrath | 1997-08-07 15:53:39 +0000 |
| commit | f0646ca0d47f9552f18a66c3119ac05d58f73ec5 (patch) | |
| tree | 2ee4cf0293bcee01a64679c07261e38bfb9e8d84 | |
| parent | 7050d53077c688c259520841687b963c605f57f3 (diff) | |
| download | emacs-f0646ca0d47f9552f18a66c3119ac05d58f73ec5.tar.gz 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.
| -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." | |||
| 376 | (widen) | 376 | (widen) |
| 377 | (goto-char (point-min)) | 377 | (goto-char (point-min)) |
| 378 | (prog1 | 378 | (prog1 |
| 379 | (if (search-forward | 379 | (if (re-search-forward |
| 380 | (concat "\n" generate-autoload-cookie) | 380 | (concat "^" (regexp-quote |
| 381 | generate-autoload-cookie)) | ||
| 381 | nil t) | 382 | nil t) |
| 382 | nil | 383 | nil |
| 383 | (if (interactive-p) | 384 | (if (interactive-p) |