[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Yet another global/gtags package into elpa..
From: |
Michael Albinus |
Subject: |
Re: Yet another global/gtags package into elpa.. |
Date: |
Tue, 29 Mar 2022 12:08:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Ergus <spacibba@aol.com> writes:
> Hi:
Hi,
>>Why only the host? The user name could also be relevant. I wouldn't
>>think too much about, and use just
>>(connection-local-criteria-for-default-directory).
>>
> Agree, but the problem is that I need to create a unique name for
> connection-local-profile-alist entries, and avoid the excessive calls to
> executable-find when possible. I am not sure if there is a more standard
> approach?
I would create the profile symbol like
(intern (concat "global-xref--" (file-remote-p default-directory) "-vars"))
There might be some optimizations in case of multi-hops and ports, but
it is a starter.
Best regards, Michael.