summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorNicolas Richard <theonewiththeevillook@yahoo.fr>2015-06-29 09:08:47 +0200
committerNicolas Richard <theonewiththeevillook@yahoo.fr>2015-06-29 09:14:58 +0200
commit6689b537c84f27eb2dae70a2422f2da99b57aaab (patch)
tree0e2e27434a25e8d1371f87312cf4f46f1ccaf0eb /lisp
parenta4760a347ebd61e173e7aa5c229159f7c5ac227a (diff)
downloademacs-6689b537c84f27eb2dae70a2422f2da99b57aaab.tar.gz
* package.el (describe-package): Use symbol-at-point as additional guess
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/package.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 88dd6ac70f3..9f563457748 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2104,7 +2104,8 @@ will be deleted."
(defun describe-package (package)
"Display the full documentation of PACKAGE (a symbol)."
(interactive
- (let* ((guess (function-called-at-point)))
+ (let* ((guess (or (function-called-at-point)
+ (symbol-at-point))))
(require 'finder-inf nil t)
;; Load the package list if necessary (but don't activate them).
(unless package--initialized