all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Skip Montanaro <skip.montanaro@gmail.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Enabling vc commands when visiting a remote file via Tramp?
Date: Mon, 18 Sep 2017 17:33:37 +0200	[thread overview]
Message-ID: <87wp4wowby.fsf@gmx.de> (raw)
In-Reply-To: <CANc-5UySF7xvi-q_yFr+qRDN5P6Vrar+qPXQd80NfWeDDKqxrw@mail.gmail.com> (Skip Montanaro's message of "Mon, 18 Sep 2017 09:56:21 -0500")

Skip Montanaro <skip.montanaro@gmail.com> writes:

> Michael,

Hi Skip,

> Thanks for the quick response. I would be in software support heaven
> if my corporate and vendor support staff were as responsive as you
> have always been. In my mind, Tramp is one of the "killer apps" for
> Emacs.

Well, that makes the difference: Tramp is my pet project. @work, I'm
slower. (Not too much, if somebody from my company is reading this)

> Aha! Our git executable is in an atypical location. This isn't a
> problem locally, as that directory is in PATH when Emacs is run, but
> it appears not to use that location when hunting for a remote git
> executable. Explicitly setting vc-git-program to the full path to the
> executable seems to have solved the problem. Fortunately, the path to
> git is the same on the local machine as the remote. To be on the safe
> side, is there a way to force it to use a specific remote path for
> git, but just continue to rely on PATH for local use?

Yep. There is tramp-remote-path. Apply

(setq tramp-remote-path (cons "/path/to/git/dir" tramp-remote-path)

> Finally, in the answer to the "how to speed up Tramp?" question in the
> documentation, you might want to mention that users can (I think)
> safely trim the vc-handled-backends to just those they care about.
> It's not a big deal when operating over a LAN, but would result in
> many fewer needless probes for nonexistent files when operating over
> slower networks. I set mine like so in ~/.emacs:
>
> (setq vc-handled-backends '(SVN Git))

Thanks for the hint, I'll do so.

> Skip

Best regards, Michael.



      reply	other threads:[~2017-09-18 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 13:09 Enabling vc commands when visiting a remote file via Tramp? Skip Montanaro
2017-09-18 13:55 ` Michael Albinus
2017-09-18 14:56   ` Skip Montanaro
2017-09-18 15:33     ` Michael Albinus [this message]

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=87wp4wowby.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=skip.montanaro@gmail.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.