summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 8221aebd871..f3dc4bd4cfd 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -467,7 +467,8 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)."
;;;###autoload
(defun xref-find-definitions (identifier)
"Find the definition of the identifier at point.
-With prefix argument, prompt for the identifier."
+With prefix argument or when there's no identifier at point,
+prompt for it."
(interactive (list (xref--read-identifier "Find definitions of: ")))
(xref--find-definitions identifier nil))