aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorNoam Postavsky2016-09-13 20:48:09 -0400
committerNoam Postavsky2017-07-19 20:03:00 -0400
commit644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8 (patch)
treee32e53f267c7607806d0a88d239fd4e79ba2f965 /etc
parenteda9aa0d314ca8e8919d4c17927aa86290449f8d (diff)
downloademacs-644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8.tar.gz
emacs-644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS16
1 files changed, 12 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 0c2db0c398b..954fe0d547e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -705,6 +705,18 @@ this is controlled by the 'wdired-create-parent-directories' variable.
705*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for 705*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
706viewing HTML files and the like. 706viewing HTML files and the like.
707 707
708** Grep
709
710---
711*** Grep commands will now use GNU grep's '--null' option if
712available, which allows distinguishing the filename from contents if
713they contain colons. This can be controlled by the new custom option
714'grep-use-null-filename-separator'.
715
716*** The grep/rgrep/lgrep functions will now ask about saving files
717before running. This is controlled by the 'grep-save-buffers'
718variable.
719
708** Edebug 720** Edebug
709 721
710*** Edebug can be prevented from pausing 1 second after reaching a 722*** Edebug can be prevented from pausing 1 second after reaching a
@@ -1053,10 +1065,6 @@ things like forward-word in readline work.
1053** hideshow mode got four key bindings that are analogous to outline 1065** hideshow mode got four key bindings that are analogous to outline
1054mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.' 1066mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
1055 1067
1056** The grep/rgrep/lgrep functions will now ask about saving files
1057before running. This is controlled by the 'grep-save-buffers'
1058variable.
1059
1060--- 1068---
1061** Customizable variable 'query-replace-from-to-separator' 1069** Customizable variable 'query-replace-from-to-separator'
1062now doesn't propertize the string value of the separator. 1070now doesn't propertize the string value of the separator.