changeset 4152:1e1a395e4718

(update-file-autoloads): Go to the beginning of FILE before searching it for generate-autoload-cookie.
author Roland McGrath <roland@gnu.org>
date Sun, 18 Jul 1993 20:01:03 +0000
parents e6d5beaca907
children 787df5416fba
files lisp/emacs-lisp/autoload.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/autoload.el	Sun Jul 18 19:56:35 1993 +0000
+++ b/lisp/emacs-lisp/autoload.el	Sun Jul 18 20:01:03 1993 +0000
@@ -263,7 +263,10 @@
 	  (if (save-excursion
 		(set-buffer (find-file-noselect file))
 		(save-excursion
-		  (search-forward generate-autoload-cookie nil t)))
+		  (save-restriction
+		    (widen)
+		    (goto-char (point-min))
+		    (search-forward generate-autoload-cookie nil t))))
 	      ;; There are autoload cookies in FILE.
 	      ;; Have the user tell us where to put the new section.
 	      (progn