diff options
author | Roland McGrath <roland@gnu.org> | 1993-07-18 20:01:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1993-07-18 20:01:03 +0000 |
commit | 811eaa609c80ca9381d1310028018cbfb1b673f1 (patch) | |
tree | 84349aeaceb5c5cc3a3ca329e3ba0a8d65228225 /lisp/emacs-lisp/autoload.el | |
parent | f58c6f70237e5106a1ca9b16cb50ab50afde31c8 (diff) | |
download | emacs-811eaa609c80ca9381d1310028018cbfb1b673f1.tar.gz |
(update-file-autoloads): Go to the beginning of FILE before searching it
for generate-autoload-cookie.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 0950a1af574..8c184070be3 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -263,7 +263,10 @@ autoloads go somewhere else.") (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 |