Mercurial > emacs
diff lisp/emacs-lisp/autoload.el @ 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 | 410395998370 |
children | ccb1fb62bba6 |
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