]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/grep.el (grep-num-matches-found): New variable.
authorJuri Linkov <juri@linkov.net>
Mon, 12 Feb 2018 21:39:28 +0000 (23:39 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 12 Feb 2018 21:39:28 +0000 (23:39 +0200)
commit4fa467eefa6c8ef97a4e1526c809cdabeba98878
tree7275f8b85e808287fc5c4f0b670bcae32c1ccb39
parenta22820a31c191451334eec101125f7b621d6dbc0
* lisp/progmodes/grep.el (grep-num-matches-found): New variable.

(grep-mode-line-matches): New defconst.
(grep-mode-font-lock-keywords): Update the regexp for “Grep finished”
to include the number of matches found.
(grep-process-setup): Set grep-num-matches-found to 0.
(grep-exit-message): New function with body moved from lambda
in grep-process-setup.  Use grep-num-matches-found to return
the number of matches found.
(grep-filter): Increment grep-num-matches-found.
(grep-mode): Set compilation-mode-line-errors to grep-mode-line-matches.
(Bug#30397, bug#14017)
lisp/progmodes/grep.el