changeset 105504:a4b36898ee9a

(batch-update-autoloads): Fix last change to not error out of search for "^lisp=" fails.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 07 Oct 2009 09:58:11 +0000
parents 33c51c8b86b5
children 1ac34bb65afa
files lisp/emacs-lisp/autoload.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/autoload.el	Wed Oct 07 09:31:32 2009 +0000
+++ b/lisp/emacs-lisp/autoload.el	Wed Oct 07 09:58:11 2009 +0000
@@ -691,7 +691,7 @@
       (when (file-readable-p mfile)
 	(with-temp-buffer
 	  (insert-file-contents mfile)
-	  (when (re-search-forward "^lisp= ")
+	  (when (re-search-forward "^lisp= " nil t)
 	    (setq lim (line-end-position))
 	    (while (re-search-forward "\\${lispsource}\\([^ ]*\\)\\.elc?" lim t)
 	      (push (concat (expand-file-name (match-string 1) ldir) ".el")