1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

semantic/symref/grep: Don't use word boundaries

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-perform-search): Instead of wrapping input in
word boundaries, check that the characters before and after are
not word constituents.
This commit is contained in:
Dmitry Gutov 2015-05-10 20:43:54 +03:00
parent f37d86ed0b
commit ec13f4b344

View file

@ -158,7 +158,11 @@ This shell should support pipe redirect syntax."
(cond ((eq (oref tool :searchtype) 'regexp)
(oref tool searchfor))
(t
(concat "\\<" (oref tool searchfor) "\\>")))))
;; Can't use the word boundaries: Grep
;; doesn't always agrees with the language
;; syntax on those.
(format "\\(^\\|\\W\\)%s\\(\\W\\|$\\)"
(oref tool searchfor))))))
;; Misc
(b (get-buffer-create "*Semantic SymRef*"))
(ans nil)