diff options
| author | Federico Tedin | 2019-03-12 21:34:31 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2019-03-22 00:08:06 -0400 |
| commit | 89fa7c4555f1c44c93ecdca23047bbfe3840cc33 (patch) | |
| tree | 8ee635db7185251d176446fff7aab9e09cb952f4 | |
| parent | a0b1c40233408f805eff6b440dbbe2bcba2994ee (diff) | |
| download | emacs-89fa7c4555f1c44c93ecdca23047bbfe3840cc33.tar.gz emacs-89fa7c4555f1c44c93ecdca23047bbfe3840cc33.zip | |
Correctly handle packages without description in describe-package
* lisp/emacs-lisp/package.el (describe-package-1): Do not call insert
if package description is nil (Bug#34147).
| -rw-r--r-- | lisp/emacs-lisp/package.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 4c75fa1e72e..61cf6906971 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -2484,7 +2484,8 @@ The description is read from the installed package files." | |||
| 2484 | (insert ?\n))) | 2484 | (insert ?\n))) |
| 2485 | (setq readme-string (buffer-string)) | 2485 | (setq readme-string (buffer-string)) |
| 2486 | t) | 2486 | t) |
| 2487 | (insert readme-string)) | 2487 | (insert (or readme-string |
| 2488 | "This package does not provide a description."))) | ||
| 2488 | )))) | 2489 | )))) |
| 2489 | 2490 | ||
| 2490 | (defun package-install-button-action (button) | 2491 | (defun package-install-button-action (button) |