1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

* lisp/emacs-lisp/package.el: Fix package--ensure-init-file

This commit is contained in:
Artur Malabarba 2015-04-13 20:50:33 +01:00
parent 13634dec03
commit 2bad549b95

View File

@ -1781,7 +1781,9 @@ using `package-compute-transaction'."
(contains-init
(if buffer
(with-current-buffer buffer
(search-forward "(package-initialize)" nil 'noerror))
(save-excursion
(goto-char (point-min))
(search-forward "(package-initialize)" nil 'noerror)))
(with-temp-buffer
(insert-file-contents user-init-file)
(goto-char (point-min))