diff options
| author | Stefan Monnier | 2013-10-29 10:48:08 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-29 10:48:08 -0400 |
| commit | 7e3561eec6fe69e5ef37dca29008ca6eaf587b23 (patch) | |
| tree | 796895e597999cfc89e7c67b9ef28fac8fecf2f8 | |
| parent | dee4ba59792238f9fd69ba7f5bf4f2711da52030 (diff) | |
| download | emacs-7e3561eec6fe69e5ef37dca29008ca6eaf587b23.tar.gz emacs-7e3561eec6fe69e5ef37dca29008ca6eaf587b23.zip | |
* lisp/emacs-lisp/package.el (package--download-one-archive)
(describe-package-1): Don't query the user about final newline.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 23 |
2 files changed, 22 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f2d0d598c38..885540cdba4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/package.el (package--download-one-archive) | ||
| 4 | (describe-package-1): Don't query the user about final newline. | ||
| 5 | |||
| 1 | 2013-10-29 Daniel Colascione <dancol@dancol.org> | 6 | 2013-10-29 Daniel Colascione <dancol@dancol.org> |
| 2 | 7 | ||
| 3 | * net/tramp.el (tramp-methods): Document new functionality. | 8 | * net/tramp.el (tramp-methods): Document new functionality. |
| @@ -14,8 +19,8 @@ | |||
| 14 | 2013-10-28 Daiki Ueno <ueno@gnu.org> | 19 | 2013-10-28 Daiki Ueno <ueno@gnu.org> |
| 15 | 20 | ||
| 16 | * epa-file.el | 21 | * epa-file.el |
| 17 | (epa-file-cache-passphrase-for-symmetric-encryption): Document | 22 | (epa-file-cache-passphrase-for-symmetric-encryption): |
| 18 | that this option has no effect with GnuPG 2.0 (bug#15552). | 23 | Document that this option has no effect with GnuPG 2.0 (bug#15552). |
| 19 | 24 | ||
| 20 | 2013-10-27 Xue Fuqiao <xfq.free@gmail.com> | 25 | 2013-10-27 Xue Fuqiao <xfq.free@gmail.com> |
| 21 | 26 | ||
| @@ -25,8 +30,8 @@ | |||
| 25 | 2013-10-27 Alan Mackenzie <acm@muc.de> | 30 | 2013-10-27 Alan Mackenzie <acm@muc.de> |
| 26 | 31 | ||
| 27 | Indent statements in macros following "##" correctly. | 32 | Indent statements in macros following "##" correctly. |
| 28 | * progmodes/cc-engine.el (c-crosses-statement-barrier-p): Modify | 33 | * progmodes/cc-engine.el (c-crosses-statement-barrier-p): |
| 29 | the "#" arm of a cond form to handle "#" and "##" operators. | 34 | Modify the "#" arm of a cond form to handle "#" and "##" operators. |
| 30 | 35 | ||
| 31 | 2013-10-27 Nathan Trapuzzano <nbtrap@nbtrap.com> (tiny change) | 36 | 2013-10-27 Nathan Trapuzzano <nbtrap@nbtrap.com> (tiny change) |
| 32 | 37 | ||
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index cdf210498ce..420980e77f6 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1238,7 +1238,8 @@ similar to an entry in `package-alist'. Save the cached copy to | |||
| 1238 | (when (listp (read buffer)) | 1238 | (when (listp (read buffer)) |
| 1239 | (make-directory dir t) | 1239 | (make-directory dir t) |
| 1240 | (setq buffer-file-name (expand-file-name file dir)) | 1240 | (setq buffer-file-name (expand-file-name file dir)) |
| 1241 | (let ((version-control 'never)) | 1241 | (let ((version-control 'never) |
| 1242 | (require-final-newline nil)) | ||
| 1242 | (save-buffer)))) | 1243 | (save-buffer)))) |
| 1243 | (when good-signatures | 1244 | (when good-signatures |
| 1244 | ;; Write out good signatures into archive-contents.signed file. | 1245 | ;; Write out good signatures into archive-contents.signed file. |
| @@ -1472,15 +1473,17 @@ If optional arg NO-ACTIVATE is non-nil, don't activate packages." | |||
| 1472 | ;; For elpa packages, try downloading the commentary. If that | 1473 | ;; For elpa packages, try downloading the commentary. If that |
| 1473 | ;; fails, try an existing readme file in `package-user-dir'. | 1474 | ;; fails, try an existing readme file in `package-user-dir'. |
| 1474 | (cond ((condition-case nil | 1475 | (cond ((condition-case nil |
| 1475 | (package--with-work-buffer | 1476 | (save-excursion |
| 1476 | (package-archive-base desc) | 1477 | (package--with-work-buffer |
| 1477 | (format "%s-readme.txt" name) | 1478 | (package-archive-base desc) |
| 1478 | (setq buffer-file-name | 1479 | (format "%s-readme.txt" name) |
| 1479 | (expand-file-name readme package-user-dir)) | 1480 | (setq buffer-file-name |
| 1480 | (let ((version-control 'never)) | 1481 | (expand-file-name readme package-user-dir)) |
| 1481 | (save-buffer)) | 1482 | (let ((version-control 'never) |
| 1482 | (setq readme-string (buffer-string)) | 1483 | (require-final-newline t)) |
| 1483 | t) | 1484 | (save-buffer)) |
| 1485 | (setq readme-string (buffer-string)) | ||
| 1486 | t)) | ||
| 1484 | (error nil)) | 1487 | (error nil)) |
| 1485 | (insert readme-string)) | 1488 | (insert readme-string)) |
| 1486 | ((file-readable-p readme) | 1489 | ((file-readable-p readme) |