GNU bug report logs -
#35737
xref--original-command
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 14 May 2019 20:58:02 UTC
Severity: wishlist
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 35737 <at> debbugs.gnu.org (full text, mbox):
On 24.05.2019 21:40, Juri Linkov wrote:
> Thanks, I tried xref revert and it works fine.
> Also I agree with Eli regarding the command name,
> documentation and NEWS.
Should be good now.
> But I don't want to write a new function. I just need to check
> if the xref buffer was created by a particular command.
I think you need to make a choice here.
Do you want to customize your personal Emacs, or do you want to improve
the default behavior?
If it's the former, I think the advice you posted will work as well as
any other solution.
I was kind of expecting the latter.
> If despite a chain of indirections, xref still can't distinguish
> different commands that created the xref buffer, I'd rather close
> this feature request and use 'advice-add' in customization.
Do we really need to be able to distinguish between xref-find-references
and project-find-regexp as well?
TBH, xref--original-command is easy to add, but then we'll have an
internal variable that isn't used anywhere. Somebody will just delete it
someday.
This bug report was last modified 5 years and 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.