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:
parent
13634dec03
commit
2bad549b95
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user