]> git.eshelyaron.com Git - emacs.git/commit
Use grep's --null option (Bug#6843)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 14 Sep 2016 00:48:09 +0000 (20:48 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 20 Jul 2017 00:03:00 +0000 (20:03 -0400)
commit644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8
treee32e53f267c7607806d0a88d239fd4e79ba2f965
parenteda9aa0d314ca8e8919d4c17927aa86290449f8d
Use grep's --null option (Bug#6843)

* lisp/progmodes/grep.el (grep-use-null-filename-separator): New option.
(grep--regexp-alist-column, grep--regexp-alist-bin-matcher)
(grep-with-null-regexp-alist, grep-fallback-regexp-alist): New
constants, replacing `grep-regexp-alist'.
(grep-regex-alist): Mark the variable obsolete, add a new function of
the same name to replace it.
(grep-compute-defaults): Compute default for
`grep-use-null-filename-separator'.
(grep-mode): Set compilation-error-regexp-alist (buffer locally) to the
value of `grep-with-null-regexp-alist' or `grep-fallback-regexp-alist'
according to `grep-use-null-filename-separator'.
* lisp/progmodes/xref.el (xref-collect-matches): Call
`grep-regex-alist' instead of the obsolete variable.  Don't hardcode
grep-regexp-alist match groups.
* etc/NEWS: Announce new use of --null.  Move 'grep-save-buffers'
item under "Grep" heading as well.
etc/NEWS
lisp/progmodes/grep.el
lisp/progmodes/xref.el