summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2015-04-13 23:27:02 -0400
committerSam Steingold <sds@gnu.org>2015-04-13 23:27:02 -0400
commit845cb4a2ce9e32b12f2a916e3f5812d96ea56c77 (patch)
treea2944f8ef659f96b3ac7762b52d939bab8f08963 /lisp/emacs-lisp/package.el
parenta9ccfaefc1ca8fa5b0177101984f64b3b186339b (diff)
downloademacs-845cb4a2ce9e32b12f2a916e3f5812d96ea56c77.tar.gz
emacs-845cb4a2ce9e32b12f2a916e3f5812d96ea56c77.tar.bz2
emacs-845cb4a2ce9e32b12f2a916e3f5812d96ea56c77.zip
package--ensure-init-file: widen before looking for "(package-initialize)"
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