Variable: grep-use-headings
grep-use-headings is a customizable variable defined in grep.el.gz.
Value
nil
Documentation
If non-nil, subdivide grep output into sections, one per file.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
(defcustom grep-use-headings nil
"If non-nil, subdivide grep output into sections, one per file."
:type 'boolean
:version "30.1")