[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0d7f85f: (xref-find-definitions): Mention "no ident
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] master 0d7f85f: (xref-find-definitions): Mention "no identifier at point" case |
Date: |
Tue, 30 Dec 2014 19:54:20 +0000 |
branch: master
commit 0d7f85fbca16fbbce83e8d41387218c97c09cf45
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
(xref-find-definitions): Mention "no identifier at point" case
* lisp/progmodes/xref.el (xref-find-definitions): Mention "no
identifier at point" case in the docstring.
---
lisp/ChangeLog | 3 +++
lisp/progmodes/xref.el | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6249a30..9bbc92e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2014-12-30 Dmitry Gutov <address@hidden>
+ * progmodes/xref.el (xref-find-definitions): Mention "no
+ identifier at point" case in the docstring.
+
* menu-bar.el (menu-bar-goto-uses-etags-p): New function.
(menu-bar-goto-menu): Use it to show or hide the `set-tags-name'
and `separator-tag-file' items.
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 8221aeb..f3dc4bd 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 0d7f85f: (xref-find-definitions): Mention "no identifier at point" case,
Dmitry Gutov <=