(batch-update-autoloads): Fix last change to not error out of search
authorEli Zaretskii <eliz@gnu.org>
Wed, 7 Oct 2009 09:58:54 +0000 (09:58 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 7 Oct 2009 09:58:54 +0000 (09:58 +0000)
for "^lisp=" fails.

lisp/ChangeLog
lisp/emacs-lisp/autoload.el

index cf0fab7..445aa4a 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-07  Eli Zaretskii  <eliz@gnu.org>
+
+       * emacs-lisp/autoload.el (batch-update-autoloads): Fix last change
+       to not error out of search for "^lisp=" fails.
+
 2009-10-07  Juanma Barranquero  <lekktu@gmail.com>
 
        * makefile.w32-in (WINS_UPDATES): New macro.
index 593cdb6..7a0a436 100644 (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")