From 722064022ccbf594e2f74fa13b252b686c3ff0ea Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 7 Jun 2021 15:03:11 +0300 Subject: [PATCH] Fix rgrep abbreviation * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Update for the last change in grep-find-template (bug#48471). --- lisp/progmodes/grep.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 8647c7089d5..462ea51e2ce 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -473,7 +473,7 @@ buffer `default-directory'." (1 (if (eq (char-after (match-beginning 1)) ?\0) `(face nil display ,(match-string 2))))) ;; Hide excessive part of rgrep command - ("^find \\(\\. -type d .*\\(?:\\\\)\\|\")\"\\)\\)" + ("^find \\(\\(?:-H \\)?\\. -type d .*\\(?:\\\\)\\|\")\"\\)\\)" (1 (if grep-find-abbreviate grep-find-abbreviate-properties '(face nil abbreviated-command t)))) ;; Hide excessive part of lgrep command -- 2.39.5