Function: consult--grep-exclude-args

consult--grep-exclude-args is a byte-compiled function defined in consult.el.

Signature

(consult--grep-exclude-args)

Documentation

Produce grep exclude arguments.

Take the variable grep-find-ignored-directories and the variable grep-find-ignored-files into account.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defun consult--grep-exclude-args ()
  "Produce grep exclude arguments.
Take the variable `grep-find-ignored-directories' and the variable
`grep-find-ignored-files' into account."
  (unless (boundp 'grep-find-ignored-files) (require 'grep))
  (nconc (mapcar (lambda (s) (concat "--exclude=" s))
                 (bound-and-true-p grep-find-ignored-files))
         (mapcar (lambda (s) (concat "--exclude-dir=" s))
                 (bound-and-true-p grep-find-ignored-directories))))