]> git.eshelyaron.com Git - emacs.git/commitdiff
package--ensure-init-file: widen before looking for "(package-initialize)"
authorSam Steingold <sds@gnu.org>
Tue, 14 Apr 2015 03:27:02 +0000 (23:27 -0400)
committerSam Steingold <sds@gnu.org>
Tue, 14 Apr 2015 03:27:02 +0000 (23:27 -0400)
lisp/emacs-lisp/package.el

index f3333751606c57370cf9d3956dd611e3cde935cb..dd1c5dfc056c9d5ebfc78056385db36e35e17652 100644 (file)
@@ -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