From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Find file locally from Tramp buffer Date: Thu, 07 Jan 2016 21:14:21 +0100 Message-ID: <87poxdrvtu.fsf@gmx.de> References: <568D6C98.1080006@Alexander.Shukaev.name> <20160107084237.GB2936@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452197701 21357 80.91.229.3 (7 Jan 2016 20:15:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2016 20:15:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 07 21:14:51 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHGxN-0007Ul-PS for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jan 2016 21:14:49 +0100 Original-Received: from localhost ([::1]:60877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHGxM-0000W6-V7 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jan 2016 15:14:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHGx8-0000Uy-GU for help-gnu-emacs@gnu.org; Thu, 07 Jan 2016 15:14:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHGx3-0004Yb-HD for help-gnu-emacs@gnu.org; Thu, 07 Jan 2016 15:14:34 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:50809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHGx3-0004XH-8O for help-gnu-emacs@gnu.org; Thu, 07 Jan 2016 15:14:29 -0500 Original-Received: from detlef.gmx.de ([87.146.59.136]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lxu7U-1aBcAU3z4W-015LAL; Thu, 07 Jan 2016 21:14:23 +0100 In-Reply-To: <20160107084237.GB2936@tuxteam.de> (tomas@tuxteam.de's message of "Thu, 7 Jan 2016 09:42:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:QDvNgac0Ddo3UiqmX4U9fnG9ojh9QJLe+sA1zHpb9OAU9tGJgLv PyT+k5hQl6Nx8ctz7ZHJ5Xr11geAOFFv+iw801lbY+LHVIvdWGxIXpLlyepFzlkdJsQow+5 XUrBGuVyXiOQn8rpWDZkQyCbiUvoAfzesXYZL6Cu+EXKRIMGqOuBhxB9SNz7D8k1llVpjn+ q2v0840+tGshgFc+Pr10Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:A4uylFxq2Fg=:HAvBTAu8oaHEy0P/f+LYJe 6GVFsIUAPT16EPMS1EnbyJ5lXsHvdz1x/tY/Tr5tOzGMihMexIe2v/rkiELE5lxnGeKdiy4ww usBLpt+pexgA4XI7sNayPVySGnb/2WICkPZLXGFhM+lbDw9JBAMsBpF7gs602G7Uxxoq6iQt7 5Lf5xAYGltQVmRrC874UVCuXrbgzPmGnWLurYZBD/TgNWxvE86Pq078jtjh0KXmsY284p90Ra Tkuk62sQvXF1XwrMPV7li51fofAouZ49vYTBbT7DNwY3XqsbwAMdUBgvP1c3LYvl/H1REnqJr 5TfIl6jdNpLStrUM/eFPPBtMCqDE5TjdeQFKxTG0QwrYh5tRodyDY7BC86eCyCHIzVT5X4jFm u/WCg+RU/XExBghXE1hIzuqRvGeqZ7fZgEgHr+twWq+sOACfEg5QB2gBBNaBj8VN/RpSk6nCG P0FLZ0AnSB/nI3wOkEhhAeUzYXE1ij30IxQ9HlpY/MWSX4veD5R+BijOHBpBC07PWempFmLjf jzyVZYqIYr6xscrj4U3GBSpdVPdJP0EYN9gtaKUVNdjrjlBHXl4r+emyoOVnBAF40UJ6CiR9V Xt1Jowv7rw+041beiQX9r+AQk9H214j7tjbsvPcnvhMmWrjZS4huGp0HsJDP+/UvERrG7IiNK YnLLDO12FdpqxbdATok9qfSMo3oEU1HjZoP6UwlgkgBJV0exQ5LjzhU1mhm/Rj1UOXpb3D79D 3WVG1UuY/f52NQKOOiM4maZKvllmry957vRBHQk7q9A4lEwZ3vaoE7/80+td2++Q/manDPUj X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108644 Archived-At: writes: > On Wed, Jan 06, 2016 at 08:35:52PM +0100, Alexander Shukaev wrote: >> Hey everyone, >> >> Suppose I run builds on a dedicated build machine with `compile' via >> Tramp. [...] >> it would be nice to somehow teach Emacs to first probe whether it >> can access the corresponding file locally, and if not, fallback to >> accessing it remotely via Tramp [...] > >> I do realize that the use case is very special and is not meant for >> broad audience [...] > > This isn't as crazy as it sounds. Actually I would have had use for > that from time to time. > > Kind of a file name mapping layer (perhaps the local files have a > somewhat different path, typically one could get away by re-mapping > some stem of the complete path). In the compilation buffer, the buffer-local variable `default-directory' points to the remote directory. If you change it to the corresponding local directory path, it could do the trick. Just call in that buffer "M-x cd". > regards > -- t Best regards, Michael.