From: Eli Zaretskii Date: Wed, 7 Oct 2009 09:58:54 +0000 (+0000) Subject: (batch-update-autoloads): Fix last change to not error out of search X-Git-Tag: emacs-pretest-23.1.90~889 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11be40a6f4fa5b1fc128349c3061e62d33020fba;p=emacs.git (batch-update-autoloads): Fix last change to not error out of search for "^lisp=" fails. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cf0fab71488..445aa4ad7d7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-10-07 Eli Zaretskii + + * emacs-lisp/autoload.el (batch-update-autoloads): Fix last change + to not error out of search for "^lisp=" fails. + 2009-10-07 Juanma Barranquero * makefile.w32-in (WINS_UPDATES): New macro. diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 593cdb68284..7a0a43631de 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -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")