diff options
| author | Paul Eggert | 2016-01-30 11:27:34 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 11:27:34 -0800 |
| commit | 82b089783e71b2aeef950eaecfe4cbc0735e64a2 (patch) | |
| tree | a826c20768071bda95a69b2632718c1641c6d0cc /lisp/progmodes | |
| parent | d27c8078ef766dae3587bc82b70128a70efaa223 (diff) | |
| parent | f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc (diff) | |
| download | emacs-82b089783e71b2aeef950eaecfe4cbc0735e64a2.tar.gz emacs-82b089783e71b2aeef950eaecfe4cbc0735e64a2.zip | |
-
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 53f8a6bb4c0..e3fe315f3bd 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -102,7 +102,7 @@ | |||
| 102 | 102 | ||
| 103 | (eval-and-compile | 103 | (eval-and-compile |
| 104 | (defconst ruby-here-doc-beg-re | 104 | (defconst ruby-here-doc-beg-re |
| 105 | "\\(<\\)<\\(-\\)?\\(\\([a-zA-Z0-9_]+\\)\\|[\"]\\([^\"]+\\)[\"]\\|[']\\([^']+\\)[']\\)" | 105 | "\\(<\\)<\\([~-]\\)?\\(\\([a-zA-Z0-9_]+\\)\\|[\"]\\([^\"]+\\)[\"]\\|[']\\([^']+\\)[']\\)" |
| 106 | "Regexp to match the beginning of a heredoc.") | 106 | "Regexp to match the beginning of a heredoc.") |
| 107 | 107 | ||
| 108 | (defconst ruby-expression-expansion-re | 108 | (defconst ruby-expression-expansion-re |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 2bccd857576..d32da371771 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -861,7 +861,13 @@ tools are used, and when." | |||
| 861 | (cl-assert (directory-name-p dir)) | 861 | (cl-assert (directory-name-p dir)) |
| 862 | (require 'semantic/symref) | 862 | (require 'semantic/symref) |
| 863 | (defvar semantic-symref-tool) | 863 | (defvar semantic-symref-tool) |
| 864 | (let* ((default-directory dir) | 864 | |
| 865 | ;; Some symref backends use `ede-project-root-directory' as the root | ||
| 866 | ;; directory for the search, rather than `default-directory'. Since | ||
| 867 | ;; the caller has specified `dir', we bind `ede-minor-mode' to nil | ||
| 868 | ;; to force the backend to use `default-directory'. | ||
| 869 | (let* ((ede-minor-mode nil) | ||
| 870 | (default-directory dir) | ||
| 865 | (semantic-symref-tool 'detect) | 871 | (semantic-symref-tool 'detect) |
| 866 | (res (semantic-symref-find-references-by-name symbol 'subdirs)) | 872 | (res (semantic-symref-find-references-by-name symbol 'subdirs)) |
| 867 | (hits (and res (oref res hit-lines))) | 873 | (hits (and res (oref res hit-lines))) |