]> git.eshelyaron.com Git - emacs.git/commitdiff
Correctly handle packages without description in describe-package
authorFederico Tedin <federicotedin@gmail.com>
Wed, 13 Mar 2019 00:34:31 +0000 (21:34 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Mar 2019 04:08:06 +0000 (00:08 -0400)
* lisp/emacs-lisp/package.el (describe-package-1): Do not call insert
  if package description is nil (Bug#34147).

lisp/emacs-lisp/package.el

index 4c75fa1e72e7e86095bf8378d140932c0d6f408c..61cf690697169e75ef3fd756a97b6fca68375919 100644 (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)