[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71115: [PATCH] Fix usage of cons cells in grep-find-ignored-files
|
From: |
Spencer Baugh |
|
Subject: |
bug#71115: [PATCH] Fix usage of cons cells in grep-find-ignored-files |
|
Date: |
Wed, 22 May 2024 08:28:53 -0400 |
Tags: patch
grep-find-ignored-files is documented to also include cons
cells, not just globs, but there were two places outside grep.el
where we were using it as if it was only a string list.
To fix this, add a helper function named grep-find-ignored-files
which handles grep-find-ignored-files properly and returns the
list of globs, and use it everywhere.
* lisp/dired-aux.el (dired-do-find-regexp): Use
grep-find-ignored-files function.
* lisp/progmodes/grep.el (grep--filter-list-by-dir)
(grep-find-ignored-files): Add.
(rgrep-find-ignored-directories): Use grep--filter-list-by-dir.
(lgrep, rgrep-default-command): Use grep-find-ignored-files
function.
* lisp/progmodes/project.el (project-ignores): Use
grep-find-ignored-files function.
In GNU Emacs 29.2.50 (build 11, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.15.12, Xaw scroll bars) of 2024-05-15 built on
igm-qws-u22796a
Repository revision: 734740051bd377d24899d08d00ec8e1bb8e00e00
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.9 (Green Obsidian)
Configured using:
'configure -C --with-x-toolkit=lucid --with-gif=ifavailable'
0001-Fix-usage-of-cons-cells-in-grep-find-ignored-files.patch
Description: Text Data
- bug#71115: [PATCH] Fix usage of cons cells in grep-find-ignored-files,
Spencer Baugh <=