]> git.eshelyaron.com Git - emacs.git/commitdiff
Better error message for C-h P RET
authorMattias Engdegård <mattiase@acm.org>
Mon, 1 Jul 2019 15:56:49 +0000 (17:56 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 2 Jul 2019 08:57:39 +0000 (10:57 +0200)
Previously:
  package--incompatible-p: Wrong type argument: package-desc, nil
Now:
  No package specified

* lisp/emacs-lisp/package.el (describe-package): Don't use ## as input.

lisp/emacs-lisp/package.el

index b60a8a136a11952736a1868565b77696dd0c71f4..43a9aa7f710adb13361094c0e243f860f2a6b407 100644 (file)
@@ -2254,7 +2254,7 @@ will be deleted."
                                  "Describe package: ")
                                packages nil t nil nil (when guess
                                                         (symbol-name guess)))))
-         (list (intern val))))))
+         (list (and (> (length val) 0) (intern val)))))))
   (if (not (or (package-desc-p package) (and package (symbolp package))))
       (message "No package specified")
     (help-setup-xref (list #'describe-package package)