aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Tedin2019-03-12 21:34:31 -0300
committerStefan Monnier2019-03-22 00:08:06 -0400
commit89fa7c4555f1c44c93ecdca23047bbfe3840cc33 (patch)
tree8ee635db7185251d176446fff7aab9e09cb952f4
parenta0b1c40233408f805eff6b440dbbe2bcba2994ee (diff)
downloademacs-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.el3
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)