Commit e45dbdc3 authored by Sam Steingold's avatar Sam Steingold

package--ensure-init-file: widen requires save-restriction

parent 95cee7f6
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment