diff options
| author | Noam Postavsky | 2016-09-13 20:48:09 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-07-19 20:03:00 -0400 |
| commit | 644cdd1aa0a10dbfffa3b9b4c7a97f8cddded0b8 (patch) | |
| tree | e32e53f267c7607806d0a88d239fd4e79ba2f965 /etc | |
| parent | eda9aa0d314ca8e8919d4c17927aa86290449f8d (diff) | |
| download | emacs-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/NEWS | 16 |
1 files changed, 12 insertions, 4 deletions
| @@ -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 |
| 706 | viewing HTML files and the like. | 706 | viewing HTML files and the like. |
| 707 | 707 | ||
| 708 | ** Grep | ||
| 709 | |||
| 710 | --- | ||
| 711 | *** Grep commands will now use GNU grep's '--null' option if | ||
| 712 | available, which allows distinguishing the filename from contents if | ||
| 713 | they 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 | ||
| 717 | before running. This is controlled by the 'grep-save-buffers' | ||
| 718 | variable. | ||
| 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 |
| 1054 | mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.' | 1066 | mode 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 | ||
| 1057 | before running. This is controlled by the 'grep-save-buffers' | ||
| 1058 | variable. | ||
| 1059 | |||
| 1060 | --- | 1068 | --- |
| 1061 | ** Customizable variable 'query-replace-from-to-separator' | 1069 | ** Customizable variable 'query-replace-from-to-separator' |
| 1062 | now doesn't propertize the string value of the separator. | 1070 | now doesn't propertize the string value of the separator. |