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).
This commit is contained in:
Federico Tedin 2019-03-12 21:34:31 -03:00 committed by Stefan Monnier
parent a0b1c40233
commit 89fa7c4555

View file

@ -2484,7 +2484,8 @@ The description is read from the installed package files."
(insert ?\n)))
(setq readme-string (buffer-string))
t)
(insert readme-string))
(insert (or readme-string
"This package does not provide a description.")))
))))
(defun package-install-button-action (button)