[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45135: 28.0.50; [PATCH] Add option to print file names in *xref* buf
From: |
Dmitry Gutov |
Subject: |
bug#45135: 28.0.50; [PATCH] Add option to print file names in *xref* buffer relative to project root |
Date: |
Sat, 26 Dec 2020 04:21:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 23.12.2020 04:16, Dmitry Gutov wrote:
Re: patch 2, I have an idea that would make it a bit simpler and less
coupled to project.el, but behave the same in the usual cases. Stay tuned.
Not as clean as I hoped, but here's something that should work just as
well, and a lot faster to boot (project-current lookup for every file
name is slow when there are a lot of matches, even if each individual
project-current call looks fast).
We could remove the explicit dependency on the "current project" if it
was always passed in from the outside (e.g. by project-find-regexp's
setup), but we probably want this display mode to work with
xref-find-references as well.
Also simplified the docstring a bit.
Tobias, please try the attached patch.
xref-file-name-display-relative.diff
Description: Text Data