]> git.eshelyaron.com Git - emacs.git/commit
Fix 'C-u C-x p g' globally and 'A' in dired-mode
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 17:42:08 +0000 (20:42 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 13 May 2024 08:38:17 +0000 (10:38 +0200)
commit68aab8b6697b42e2e30e73345ca2fc0d32813202
tree797f79e9cbfa57886dd2940d530c6fcbc8488f82
parentac4dcca44cbaad4a43557ace40fa674339b80f89
Fix 'C-u C-x p g' globally and 'A' in dired-mode

* lisp/progmodes/project.el (project-find-regexp): Ensure the
DEFAULT-DIRECTORY is set correctly for the 'C-u' case (bug#70888).

* lisp/progmodes/project.el (project--files-in-directory):
Ensure that the DIR argument ends with a slash --
'dired-do-find-regexp' passes it differently, for example.

* lisp/progmodes/xref.el (xref--group-name-for-display): Ensure
the project-relative and absolute display modes work well for
groups with "relative" file names.
(xref--analyze, xref--add-log-current-defun): Change accordingly.

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

(cherry picked from commit b20d4ab374fb9b3c80b968df6acd6444f763bd40)
lisp/progmodes/project.el
lisp/progmodes/xref.el
test/lisp/progmodes/project-tests.el