* lisp/progmodes/xref.el (xref-collect-matches):
Override --color=always in grep-find-template.
(require 'semantic/fw)
(grep-compute-defaults)
(defvar grep-find-template)
- (let* ((grep-find-template (replace-regexp-in-string "-e " "-E "
- grep-find-template t t))
+ (let* ((grep-find-template
+ (replace-regexp-in-string
+ ;; Override the use ot '--color=always' on MS-Windows.
+ "--color=always" ""
+ (replace-regexp-in-string "-e " "-E "
+ grep-find-template t t)
+ t t))
(command (rgrep-default-command (xref--regexp-to-extended regexp)
"*.*" dir))
(orig-buffers (buffer-list))