GNU bug report logs -
#71115
[PATCH] Fix usage of cons cells in grep-find-ignored-files
Previous Next
Reported by: Spencer Baugh <sbaugh <at> janestreet.com>
Date: Wed, 22 May 2024 12:30:02 UTC
Severity: normal
Tags: patch
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 71115 <at> debbugs.gnu.org (full text, mbox):
Hi Spencer,
Thanks a lot.
On 22/05/2024 15:28, Spencer Baugh wrote:
> --- a/lisp/progmodes/project.el
> +++ b/lisp/progmodes/project.el
> @@ -295,7 +295,7 @@ project-name
> Nominally unique, but not enforced."
> (file-name-nondirectory (directory-file-name (project-root project))))
>
> -(cl-defgeneric project-ignores (_project _dir)
> +(cl-defgeneric project-ignores (_project dir)
> "Return the list of glob patterns to ignore inside DIR.
> Patterns can match both regular files and directories.
> To root an entry, start it with `./'. To match directories only,
> @@ -304,13 +304,13 @@ project-ignores
> ;; TODO: Document and support regexp ignores as used by Hg.
> ;; TODO: Support whitelist entries.
> (require 'grep)
> - (defvar grep-find-ignored-files)
> + (declare-function grep-find-ignored-files "grep" (dir))
> (nconc
> (mapcar
> (lambda (dir)
> (concat dir "/"))
> vc-directory-exclusion-list)
> - grep-find-ignored-files))
> + (grep-find-ignored-files dir)))
There is just one problem that project.el is supposed to be usable in
Emacs 26+.
I suppose that a little fboundp check will get us around the problem.
This bug report was last modified 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.