package--ensure-init-file: widen requires save-restriction
This commit is contained in:
parent
95cee7f6a6
commit
e45dbdc386
1 changed files with 4 additions and 3 deletions
|
@ -1782,9 +1782,10 @@ using `package-compute-transaction'."
|
|||
(if buffer
|
||||
(with-current-buffer buffer
|
||||
(save-excursion
|
||||
(widen)
|
||||
(goto-char (point-min))
|
||||
(search-forward "(package-initialize)" nil 'noerror)))
|
||||
(save-restriction
|
||||
(widen)
|
||||
(goto-char (point-min))
|
||||
(search-forward "(package-initialize)" nil 'noerror))))
|
||||
(with-temp-buffer
|
||||
(insert-file-contents user-init-file)
|
||||
(goto-char (point-min))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue