diff options
| author | Paul Eggert | 2017-11-08 19:22:26 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-11-08 19:22:26 -0800 |
| commit | 6ee827059463e4b95c9251ef22a21f9c67cf668d (patch) | |
| tree | 0612e1b84922cc43eeed5ea219104d4c5985cbdf /lisp/cedet | |
| parent | 83dc3f0e9b518e45bcfb0aaebcc706f79622f157 (diff) | |
| parent | 255ba01148f69f452937e67feb7af5d4c1466fed (diff) | |
| download | emacs-6ee827059463e4b95c9251ef22a21f9c67cf668d.tar.gz emacs-6ee827059463e4b95c9251ef22a21f9c67cf668d.zip | |
Merge from origin/emacs-26
255ba01148 Fix handling of nil PRED2 arg for completion-table-with-pr...
949b70a7d8 ; Minor comment copyedit in window.c
20f9bf30f0 Describe Lao rendering problem
3d61657694 Fix docstring of arabic-shaper-ZWNJ-handling
db949166ec Handle single-line comments correctly (Bug#26049)
795bb233a5 * test/lisp/net/tramp-tests.el (tramp-test16-file-expand-w...
ba00ea7d0d * etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug
4a6015811e ; In text.texi fix typo spotted by Štěpán Němec
93cd8415b2 Document new treatment of 'comment-auto-fill-only-comments'
ca2d94ba61 Do not load Tramp unless `tramp-mode' is non-nil
709478eaa8 Prefer `customize-set-variable' in tramp.texi
5d36f2227f Fix last change in hscroll_window_tree
72d07d1950 Ediff: add some missing documentation
18af404ef3 Support python virtualenv on w32 (Bug#24464)
efd0371c23 Improve dired deletion error handling (Bug#28797)
5d744e032f Don't replace user input when completion prefix is empty (...
ec6cf35c5f ; Describe xt-mouse problems with Evil mode
c572e1f329 Return non-nil from gnutls-available-p under GnuTLS 2.x
a2cc6d74c5 Fix Flymake help-echo functions across windows (bug#29142)
58bb3462ee Add tests for Flymake backends for Ruby and Perl
58e742b21d Add a Flymake backend for Perl
9dee764165 Add a Flymake backend for Ruby
3ad712ebc9 Add a Flymake backend for Python (bug#28808)
8db2b3a79b Allow "%" in Tramp host names
8c50842790 ; Fix typo in test/file-organization.org
00fa4449cd ; Fix typo
918a2dda07 Use hybrid malloc for FreeBSD (Bug#28308)
725ab635d9 Add html-, mhtml- and python-mode support to semantic symref
369da28702 Improve documentation of 'window-scroll-functions'
93818eed8a Fix subtle problems in tabulated-list-mode with line numbers
1f1de8e872 Make gdb-non-stop-setting default to nil on MS-Windows
680e8e119b Fix gdb-mi prompt after "attach PID" command
ff33074546 Fix doc string of 'window-configuration-change-hook'
787b75ad71 Improve documentation of window hooks
d9be8704ae Fix hscroll suspension after cursor motion
6f43d29d29 ; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'ema...
a0d30d6369 Introduce a function to CC Mode which displays the current...
383abc8898 ; Fix some comment typos
b02c2714c3 Fix typos in ediff-wind.el
4f38bdec74 Examine tex-chktex--process in the correct buffer
94b490529a * nt/INSTALL.W64: Update to current mingw64 install instru...
c25113d4ac Don't resignal errors in flymake-diag-region
e950f329c0 New xref-quit-and-goto-xref command bound to TAB (bug#28814)
5d34e1b288 Allow split-window-sensibly to split threshold in further ...
2a973edeac Honor window-switching intents in xref-find-definitions (b...
78e9065e9f * lisp/emacs-lisp/generator.el (iter-do): Add a debug decl...
caa63cc96c * lisp/progmodes/flymake.el (flymake-start): Fix dead buff...
9f4f130b79 Fix buffer name comparison in async shell-command
# Conflicts:
# etc/NEWS
# lisp/vc/ediff-wind.el
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/semantic/symref/grep.el | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/cedet/semantic/symref/grep.el b/lisp/cedet/semantic/symref/grep.el index bc19cd30c45..0b263d8cc2d 100644 --- a/lisp/cedet/semantic/symref/grep.el +++ b/lisp/cedet/semantic/symref/grep.el | |||
| @@ -38,16 +38,22 @@ | |||
| 38 | ( | 38 | ( |
| 39 | ) | 39 | ) |
| 40 | "A symref tool implementation using grep. | 40 | "A symref tool implementation using grep. |
| 41 | This tool uses EDE to find he root of the project, then executes | 41 | This tool uses EDE to find the root of the project, then executes |
| 42 | find-grep in the project. The output is parsed for hits | 42 | find-grep in the project. The output is parsed for hits and |
| 43 | and those hits returned.") | 43 | those hits returned.") |
| 44 | 44 | ||
| 45 | (defvar semantic-symref-filepattern-alist | 45 | (defvar semantic-symref-filepattern-alist |
| 46 | '((c-mode "*.[ch]") | 46 | '((c-mode "*.[ch]") |
| 47 | (c++-mode "*.[chCH]" "*.[ch]pp" "*.cc" "*.hh") | 47 | (c++-mode "*.[chCH]" "*.[ch]pp" "*.cc" "*.hh") |
| 48 | (html-mode "*.s?html" "*.php") | 48 | (html-mode "*.html" "*.shtml" "*.php") |
| 49 | (mhtml-mode "*.html" "*.shtml" "*.php") ; FIXME: remove | ||
| 50 | ; duplication of | ||
| 51 | ; HTML-related patterns. | ||
| 52 | ; Maybe they belong in the | ||
| 53 | ; major mode definition? | ||
| 49 | (ruby-mode "*.r[bu]" "*.rake" "*.gemspec" "*.erb" "*.haml" | 54 | (ruby-mode "*.r[bu]" "*.rake" "*.gemspec" "*.erb" "*.haml" |
| 50 | "Rakefile" "Thorfile" "Capfile" "Guardfile" "Vagrantfile") | 55 | "Rakefile" "Thorfile" "Capfile" "Guardfile" "Vagrantfile") |
| 56 | (python-mode "*.py" "*.pyi" "*.pyw") | ||
| 51 | (perl-mode "*.pl" "*.PL") | 57 | (perl-mode "*.pl" "*.PL") |
| 52 | (cperl-mode "*.pl" "*.PL") | 58 | (cperl-mode "*.pl" "*.PL") |
| 53 | (lisp-interaction-mode "*.el" "*.ede" ".emacs" "_emacs") | 59 | (lisp-interaction-mode "*.el" "*.ede" ".emacs" "_emacs") |
| @@ -58,7 +64,7 @@ See find -name man page for format.") | |||
| 58 | (defun semantic-symref-derive-find-filepatterns (&optional mode) | 64 | (defun semantic-symref-derive-find-filepatterns (&optional mode) |
| 59 | ;; FIXME: This should be moved to grep.el, where it could be used | 65 | ;; FIXME: This should be moved to grep.el, where it could be used |
| 60 | ;; for "C-u M-x grep" as well. | 66 | ;; for "C-u M-x grep" as well. |
| 61 | "Derive a list of file patterns for the current buffer. | 67 | "Derive a list of file (glob) patterns for the current buffer. |
| 62 | Looks first in `semantic-symref-filepattern-alist'. If it is not | 68 | Looks first in `semantic-symref-filepattern-alist'. If it is not |
| 63 | there, it then looks in `auto-mode-alist', and attempts to derive something | 69 | there, it then looks in `auto-mode-alist', and attempts to derive something |
| 64 | from that. | 70 | from that. |
| @@ -78,7 +84,7 @@ Optional argument MODE specifies the `major-mode' to test." | |||
| 78 | (error "Customize `semantic-symref-filepattern-alist' for %S" | 84 | (error "Customize `semantic-symref-filepattern-alist' for %S" |
| 79 | major-mode) | 85 | major-mode) |
| 80 | (let ((args `("-name" ,(car pat)))) | 86 | (let ((args `("-name" ,(car pat)))) |
| 81 | (if (null (cdr args)) | 87 | (if (null (cdr pat)) |
| 82 | args | 88 | args |
| 83 | `("(" ,@args | 89 | `("(" ,@args |
| 84 | ,@(mapcan (lambda (s) `("-o" "-name" ,s)) pat) | 90 | ,@(mapcan (lambda (s) `("-o" "-name" ,s)) pat) |
| @@ -149,7 +155,7 @@ This shell should support pipe redirect syntax." | |||
| 149 | (oref tool searchfor)) | 155 | (oref tool searchfor)) |
| 150 | (t | 156 | (t |
| 151 | ;; Can't use the word boundaries: Grep | 157 | ;; Can't use the word boundaries: Grep |
| 152 | ;; doesn't always agrees with the language | 158 | ;; doesn't always agree with the language |
| 153 | ;; syntax on those. | 159 | ;; syntax on those. |
| 154 | (format "\\(^\\|\\W\\)%s\\(\\W\\|$\\)" | 160 | (format "\\(^\\|\\W\\)%s\\(\\W\\|$\\)" |
| 155 | (oref tool searchfor))))) | 161 | (oref tool searchfor))))) |