From 89fa7c4555f1c44c93ecdca23047bbfe3840cc33 Mon Sep 17 00:00:00 2001 From: Federico Tedin Date: Tue, 12 Mar 2019 21:34:31 -0300 Subject: [PATCH] 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). --- lisp/emacs-lisp/package.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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." (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) -- 2.39.2