comparison lisp/emacs-lisp/autoload.el @ 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 ecc4375537e3
children ec8fe53ace41
comparison
equal deleted inserted replaced
19208:1d24f0a03f75 19209:50857b41060a
374 (save-excursion 374 (save-excursion
375 (save-restriction 375 (save-restriction
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)
384 (message "%s has no autoloads" file)) 385 (message "%s has no autoloads" file))
385 t) 386 t)