all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Ergus <spacibba@aol.com>
Cc: emacs-devel@gnu.org
Subject: Re: Yet another global/gtags package into elpa..
Date: Tue, 29 Mar 2022 12:08:56 +0200	[thread overview]
Message-ID: <87czi59ikn.fsf@gmx.de> (raw)
In-Reply-To: <20220329095636.au4sehkv5ai4p6jy@Ergus> (Ergus's message of "Tue,  29 Mar 2022 11:56:36 +0200")

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.



  reply	other threads:[~2022-03-29 10:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220328232754.feeavepjtqauvnv5.ref@Ergus>
2022-03-28 23:27 ` Yet another global/gtags package into elpa Ergus
2022-03-29  8:21   ` Michael Albinus
2022-03-29  9:56     ` Ergus
2022-03-29 10:08       ` Michael Albinus [this message]
2022-03-29 12:16     ` Dmitry Gutov
2022-03-29 16:07       ` Ergus
2022-03-29 16:16         ` Dmitry Gutov
2022-03-29 17:15           ` Ergus
2022-04-02  0:47   ` Daniel Martín

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czi59ikn.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=spacibba@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.