summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r--lisp/emacs-lisp/package.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index f3333751606..dd1c5dfc056 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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