]> git.eshelyaron.com Git - emacs.git/commit
New variable 'project-files-relative-names'
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 5 May 2024 03:27:39 +0000 (06:27 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:50:21 +0000 (18:50 +0200)
commitcda94c4607be25aeab93454b23ab6ca72b124ed6
tree5244c57e3a67eb2c4e8d945258a6046285def3be
parentf686f18e7884b003c530037b066b7181ad074386
New variable 'project-files-relative-names'

* lisp/progmodes/project.el (project-files-relative-names):
New variable (bug#69233).
(project--files-in-directory): Honor it.
(project--vc-list-files): Here too.
(project-find-regexp): Use it to improve performance.
(project-or-external-find-regexp): Add a TODO.
(project-find-file): Use it here too.
(project--read-file-cpd-relative, project--read-file-absolute):
Try to handle file lists with absolute and relative files names.
(project-find-file-in): Set default-directory, so relative names
are interpreted correctly.

* lisp/progmodes/xref.el (xref-matches-in-files):
Consider that the first in FILES can be a relative file name.

* test/lisp/progmodes/project-tests.el (project-find-regexp):
New test.

* etc/NEWS: Mention it.

(cherry picked from commit 370b216f08699bdd85b910868642df441c06306c)
etc/NEWS
lisp/progmodes/project.el
lisp/progmodes/xref.el
test/lisp/progmodes/project-tests.el