diff options
| author | Dmitry Gutov | 2014-12-30 21:54:03 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2014-12-30 21:54:03 +0200 |
| commit | 0d7f85fbca16fbbce83e8d41387218c97c09cf45 (patch) | |
| tree | 3f9f3d25641b4bcd179fa6e198c95e69d0acf8ab | |
| parent | 01827de4518c8da974821da0439f2ad4984d49da (diff) | |
| download | emacs-0d7f85fbca16fbbce83e8d41387218c97c09cf45.tar.gz emacs-0d7f85fbca16fbbce83e8d41387218c97c09cf45.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6249a3084bb..9bbc92eb733 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-12-30 Dmitry Gutov <dgutov@yandex.ru> | 1 | 2014-12-30 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 2 | ||
| 3 | * progmodes/xref.el (xref-find-definitions): Mention "no | ||
| 4 | identifier at point" case in the docstring. | ||
| 5 | |||
| 3 | * menu-bar.el (menu-bar-goto-uses-etags-p): New function. | 6 | * menu-bar.el (menu-bar-goto-uses-etags-p): New function. |
| 4 | (menu-bar-goto-menu): Use it to show or hide the `set-tags-name' | 7 | (menu-bar-goto-menu): Use it to show or hide the `set-tags-name' |
| 5 | and `separator-tag-file' items. | 8 | and `separator-tag-file' items. |
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 ...)) ...)." | |||
| 467 | ;;;###autoload | 467 | ;;;###autoload |
| 468 | (defun xref-find-definitions (identifier) | 468 | (defun xref-find-definitions (identifier) |
| 469 | "Find the definition of the identifier at point. | 469 | "Find the definition of the identifier at point. |
| 470 | With prefix argument, prompt for the identifier." | 470 | With prefix argument or when there's no identifier at point, |
| 471 | prompt for it." | ||
| 471 | (interactive (list (xref--read-identifier "Find definitions of: "))) | 472 | (interactive (list (xref--read-identifier "Find definitions of: "))) |
| 472 | (xref--find-definitions identifier nil)) | 473 | (xref--find-definitions identifier nil)) |
| 473 | 474 | ||