diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-07-01 17:56:49 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-07-02 10:57:39 +0200 |
commit | 22b64f7bac8d015f3d0e6a42e9d764a61656e7a1 (patch) | |
tree | 51ae35ec40d1129e61622aa7577b1aa5c2b991bd /lisp/emacs-lisp | |
parent | 5d99f1d01ee42e548afe6e2854d59a35fa0b7e91 (diff) | |
download | emacs-22b64f7bac8d015f3d0e6a42e9d764a61656e7a1.tar.gz emacs-22b64f7bac8d015f3d0e6a42e9d764a61656e7a1.tar.bz2 emacs-22b64f7bac8d015f3d0e6a42e9d764a61656e7a1.zip |
Better error message for C-h P RET
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index b60a8a136a1..43a9aa7f710 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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) |