From: Sam Steingold Date: Tue, 14 Apr 2015 03:27:02 +0000 (-0400) Subject: package--ensure-init-file: widen before looking for "(package-initialize)" X-Git-Tag: emacs-25.0.90~2435 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=845cb4a2ce9e32b12f2a916e3f5812d96ea56c77;p=emacs.git package--ensure-init-file: widen before looking for "(package-initialize)" --- 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