File: grep.el.html

This package provides the grep facilities documented in the Emacs user's manual.

Defined variables (51)

find-programThe default find program.
grep--heading-formatFormat string of grep headings.
grep--heading-stateVariable to keep track of the ‘grep--heading-filter’ state.
grep-commandThe default grep command for M-x grep.
grep-command-positionWhere to put point when prompting for a grep command.
grep-compilation-transform-finished-rulesRules added to ‘compilation-transform-file-match-alist’ in ‘grep-mode’
grep-context-faceFace name to use for grep context lines.
grep-edit-mode-hookHooks run when changing to Grep-Edit mode.
grep-edit-mode-mapKeymap for ‘grep-edit-mode’.
grep-errorMessage to print when no matches are found.
grep-error-faceFace name to use for grep error messages.
grep-error-screen-columnsIf non-nil, column numbers in grep hits are screen columns.
grep-expand-keywordsList of substitutions performed by ‘grep-expand-template’.
grep-files-aliasesAlist of aliases for the FILES argument to ‘lgrep’ and ‘rgrep’.
grep-find-abbreviateIf non-nil, hide part of rgrep/lgrep/zrgrep command line.
grep-find-abbreviate-propertiesProperties of button-like ellipsis on part of rgrep command line.
grep-find-commandThe default find command for M-x grep-find.
grep-find-historyHistory list for ‘grep-find’.
grep-find-ignored-directoriesList of names of sub-directories which ‘rgrep’ shall not recurse into.
grep-find-ignored-filesList of file names which ‘rgrep’ and ‘lgrep’ shall exclude.
grep-find-templateThe default command to run for M-x rgrep.
grep-find-use-xargsHow to invoke find and grep.
grep-first-columnValue to use for ‘compilation-first-column’ in grep buffers.
grep-heading-regexpRegexp used to create headings from grep output lines.
grep-highlight-matchesUse special markers to highlight grep matches.
grep-historyHistory list for grep.
grep-hit-faceFace name to use for grep hits.
grep-host-defaults-alistDefault values depending on target host.
grep-last-bufferThe most recent grep buffer.
grep-match-faceFace name to use for grep matches.
grep-match-regexpRegular expression matching grep markers to highlight.
grep-menu-mapMenu for grep buffers.
grep-mode-abbrev-tableAbbrev table for ‘grep-mode’.
grep-mode-font-lock-keywordsAdditional things to highlight in grep output.
grep-mode-hookHook run after entering ‘grep-mode’.
grep-mode-mapKeymap for grep buffers.
grep-mode-syntax-tableSyntax table for ‘grep-mode’.
grep-programThe default grep program for ‘grep-command’ and ‘grep-find-command’.
grep-quoting-styleWhether to use POSIX-like shell argument quoting.
grep-regexp-alistRegexp used to match grep hits.
grep-save-buffersIf non-nil, save buffers before running the grep commands.
grep-scroll-outputNon-nil to scroll the *grep* buffer window as output appears.
grep-search-pathList of directories to search for files named in grep messages.
grep-setup-hookList of hook functions run by ‘grep-process-setup’ (see ‘run-hooks’).
grep-templateThe default command to run for M-x lgrep.
grep-use-headingsIf non-nil, subdivide grep output into sections, one per file.
grep-use-null-deviceIf t, append the value of ‘null-device’ to ‘grep’ commands.
grep-use-null-filename-separatorIf non-nil, use ‘grep’s ‘--null’ option.
grep-window-heightNumber of lines in a grep window. If nil, use ‘compilation-window-height’.
rgrep-find-ignores-in-If nil, when ‘rgrep’ expands ‘grep-find-template’, file ignores go in <X>.
xargs-programThe default xargs program for ‘grep-find-command’.

Defined functions (31)

find-grep(COMMAND-ARGS)
grep(COMMAND-ARGS)
grep--filter-list-by-dir(LIST DIR)
grep--heading-filter()
grep-apply-setting(SYMBOL VALUE)
grep-change-to-grep-edit-mode()
grep-compute-defaults()
grep-default-command()
grep-edit--prepare-buffer()
grep-edit-mode()
grep-edit-save-changes()
grep-exit-message(STATUS CODE MSG)
grep-expand-template(TEMPLATE &optional REGEXP FILES DIR EXCL MORE-OPTS)
grep-file-at-point(POINT)
grep-filter()
grep-find(COMMAND-ARGS)
grep-find-ignored-files(DIR)
grep-find-toggle-abbreviation()
grep-menu-map(ARG1)
grep-mode()
grep-probe(COMMAND ARGS &optional FUNC RESULT)
grep-process-setup()
grep-read-files(REGEXP)
grep-read-regexp()
kill-grep()
lgrep(REGEXP &optional FILES DIR CONFIRM)
rgrep(REGEXP &optional FILES DIR CONFIRM)
rgrep-default-command(REGEXP FILES DIR)
rgrep-find-ignored-directories(DIR)
rzgrep(REGEXP &optional FILES DIR CONFIRM TEMPLATE)
zrgrep(REGEXP &optional FILES DIR CONFIRM TEMPLATE)

Defined faces (1)

grep-headingFace of headings when ‘grep-use-headings’ is non-nil.