diff options
| author | Dmitry Gutov | 2015-05-10 03:49:11 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-05-10 20:45:38 +0300 |
| commit | cc64f157883030c443b24692ca4304e047e2aaf9 (patch) | |
| tree | 6f46afdd4b10193bd878c4bd465a9eca33db5c09 | |
| parent | c7d601adefe130b773c1622a5aa8722d80709c1c (diff) | |
| download | emacs-cc64f157883030c443b24692ca4304e047e2aaf9.tar.gz emacs-cc64f157883030c443b24692ca4304e047e2aaf9.zip | |
semantic-symref-regexp: Allow to input an arbitrary string
* lisp/cedet/semantic/symref/list.el (semantic-symref-regexp):
Allow to input an arbitrary string interactively.
| -rw-r--r-- | lisp/cedet/semantic/symref/list.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/cedet/semantic/symref/list.el b/lisp/cedet/semantic/symref/list.el index c99fc5f1932..f72499bf88e 100644 --- a/lisp/cedet/semantic/symref/list.el +++ b/lisp/cedet/semantic/symref/list.el | |||
| @@ -84,9 +84,13 @@ This command uses the currently configured references tool within the | |||
| 84 | current project to find references to the input SYM. The | 84 | current project to find references to the input SYM. The |
| 85 | references are the organized by file and the name of the function | 85 | references are the organized by file and the name of the function |
| 86 | they are used in. | 86 | they are used in. |
| 87 | Display the references in`semantic-symref-results-mode'." | 87 | Display the references in `semantic-symref-results-mode'." |
| 88 | (interactive (list (semantic-tag-name (semantic-complete-read-tag-buffer-deep | 88 | (interactive (list (let ((tag (semantic-current-tag))) |
| 89 | "Symrefs for: ")))) | 89 | (read-string " Symrefs for: " nil nil |
| 90 | (when tag | ||
| 91 | (regexp-quote (semantic-tag-name tag))))))) | ||
| 92 | ;; FIXME: Shouldn't the input be in Emacs regexp format, for | ||
| 93 | ;; consistency? Converting it to extended is not hard. | ||
| 90 | (semantic-fetch-tags) | 94 | (semantic-fetch-tags) |
| 91 | (message "Gathering References...") | 95 | (message "Gathering References...") |
| 92 | ;; Gather results and tags | 96 | ;; Gather results and tags |