[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6689b53 2/2: * package.el (describe-package): Use s
From: |
Nicolas Richard |
Subject: |
[Emacs-diffs] master 6689b53 2/2: * package.el (describe-package): Use symbol-at-point as additional guess |
Date: |
Mon, 29 Jun 2015 08:42:23 +0000 |
branch: master
commit 6689b537c84f27eb2dae70a2422f2da99b57aaab
Author: Nicolas Richard <address@hidden>
Commit: Nicolas Richard <address@hidden>
* package.el (describe-package): Use symbol-at-point as additional guess
---
lisp/emacs-lisp/package.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 88dd6ac..9f56345 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