1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-12 17:10:43 -08:00

package--ensure-init-file: widen before looking for "(package-initialize)"

This commit is contained in:
Sam Steingold 2015-04-13 23:27:02 -04:00
parent a9ccfaefc1
commit 845cb4a2ce

View file

@ -1782,6 +1782,7 @@ using `package-compute-transaction'."
(if buffer
(with-current-buffer buffer
(save-excursion
(widen)
(goto-char (point-min))
(search-forward "(package-initialize)" nil 'noerror)))
(with-temp-buffer