]> code.delx.au - gnu-emacs/commitdiff
* package.el (describe-package): Use symbol-at-point as additional guess
authorNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 29 Jun 2015 07:08:47 +0000 (09:08 +0200)
committerNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 29 Jun 2015 07:14:58 +0000 (09:14 +0200)
lisp/emacs-lisp/package.el

index 88dd6ac70f3e3a4a07a9bd006560f7d82f77284d..9f5634577482188a986272cb86ca542d346436d6 100644 (file)
@@ -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