(batch-update-autoloads): Fix last change to not error out of search

for "^lisp=" fails.
This commit is contained in:
Eli Zaretskii 2009-10-07 09:58:54 +00:00
parent 8c4afe20df
commit 11be40a6f4
2 changed files with 6 additions and 1 deletions

View file

@ -691,7 +691,7 @@ Calls `update-directory-autoloads' on the command line arguments."
(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")