diff options
| author | Sam Steingold | 2015-04-13 23:27:02 -0400 |
|---|---|---|
| committer | Sam Steingold | 2015-04-13 23:27:02 -0400 |
| commit | 845cb4a2ce9e32b12f2a916e3f5812d96ea56c77 (patch) | |
| tree | a2944f8ef659f96b3ac7762b52d939bab8f08963 /lisp | |
| parent | a9ccfaefc1ca8fa5b0177101984f64b3b186339b (diff) | |
| download | emacs-845cb4a2ce9e32b12f2a916e3f5812d96ea56c77.tar.gz emacs-845cb4a2ce9e32b12f2a916e3f5812d96ea56c77.zip | |
package--ensure-init-file: widen before looking for "(package-initialize)"
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 1 |
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'." | |||
| 1782 | (if buffer | 1782 | (if buffer |
| 1783 | (with-current-buffer buffer | 1783 | (with-current-buffer buffer |
| 1784 | (save-excursion | 1784 | (save-excursion |
| 1785 | (widen) | ||
| 1785 | (goto-char (point-min)) | 1786 | (goto-char (point-min)) |
| 1786 | (search-forward "(package-initialize)" nil 'noerror))) | 1787 | (search-forward "(package-initialize)" nil 'noerror))) |
| 1787 | (with-temp-buffer | 1788 | (with-temp-buffer |