From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Enabling vc commands when visiting a remote file via Tramp? Date: Mon, 18 Sep 2017 17:33:37 +0200 Message-ID: <87wp4wowby.fsf@gmx.de> References: <871sn4qfge.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505749265 1809 195.159.176.226 (18 Sep 2017 15:41:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2017 15:41:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: Help GNU Emacs To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 18 17:40:56 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtyAH-0008Kq-JS for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2017 17:40:53 +0200 Original-Received: from localhost ([::1]:37356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtyAN-00050A-CR for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2017 11:40:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dty3M-000808-Nm for help-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:33:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dty3J-0000oL-Eb for help-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:33:44 -0400 Original-Received: from mout-xforward.gmx.net ([82.165.159.40]:59044) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dty3J-0000nC-5B for help-gnu-emacs@gnu.org; Mon, 18 Sep 2017 11:33:41 -0400 Original-Received: from detlef.gmx.de ([212.86.54.232]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ll0tl-1dJFix34hZ-00amKB; Mon, 18 Sep 2017 17:33:38 +0200 In-Reply-To: (Skip Montanaro's message of "Mon, 18 Sep 2017 09:56:21 -0500") X-Provags-ID: V03:K0:j0VfMVV2Jdt4uUsBo9TMxOFELzqIBi5fr69eOx9+i9zgzst84ZT RhLIPR5Mzz9XlQH8c/fa1DXEeyYxZvbdBrwMaKPkQ9qUqHfeStjxZddYyrUAAnGEtvhtfUN gnfXyk0yzko1L0WxVw1QOtCagZue4vdV5v1/HEtfKQ4iv2erwES8x1BnaCoFWiX7AJCqe/L jHcy44L3VePPUdNYUsUfw== X-UI-Out-Filterresults: junk:10;V01:K0:OSw9kG5Y1X8=:oKtXp+Qig0G/8Vq63ktVqsdR V3P4f/bDTLoDqo+J97DKRboDQbsMDDp+NXGp+Cdjd7+K5HuriVHPdvXPmCyuOkRxa1cFasLKP Vy8ecKcNMFMdOiUGPaeGSg7VoLRYF7MJNzU9LinZjIlkCJ0Ac9BSeZeuIO5ru8EChg8jn+ogT PDm/S6tqBjVE6D0QeEGnnpX6mih2REhCtJcn8xPUISLmSZZR/gT26wgS5wKU3T7xupRst5Rbj JHhU8EoyqzSv9H4cXlZ1EDM6Nznn5Rsw1NxuK1sZtMdg4dxY2tJJ7pz2vfhvLgEpIG2naibmr 5WHzuYzrpWAVFXUujHV+TfYAUFr4jGUBn8h0xy2A38PWeSGxF7X2oVwi9yRKSAwYrpmTSicyS z2C4RiHyDsH5XFeUNtBi6u+R3PhKp+9Tv57ASHhOot0hKyZsJbtThmhYYVbVbrtUCGRgYoxcW Rswfy7Ct61+/8sSvHhYbwrcpmE1tI40rd6Bkyd3MamIF4Ps21cgWRf4RQTktUVPuk/T3Y3Am3 F1tIWQNnt3aUBs5T1WVkeWgbpYkTdsnI+eRoTMi/hXibvDjHuPVaohdIa4eDC3TNJK3MGwdWi F9WWzeZLm1POjs79vrRjgbLXR5PRDf4JVkGHdDwDEk+B3TADfqLBqftn7FWrQh4YKvRcmd1+u EwOVrfvPVKQaw8MkHH1P7BAR3Tr90RwWkGtdGCfocBzFA4CDTgiZJEgCuK/bTxWP/KklmlHFn sUBHhn09F/OLXv8K7qYyUX+1mI+VaiqlH4p8n74eA/T9Zs4XDmXkKYDZF1PAiUtJGmL7o2eM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 82.165.159.40 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114303 Archived-At: Skip Montanaro 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.