(update-file-autoloads): Go to the beginning of FILE before searching it
for generate-autoload-cookie.
This commit is contained in:
parent
f58c6f7023
commit
811eaa609c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue