From: Alexander Shukaev <emacs@Alexander.Shukaev.name>
To: help-gnu-emacs@gnu.org
Subject: Find file locally from Tramp buffer
Date: Wed, 6 Jan 2016 20:35:52 +0100 [thread overview]
Message-ID: <568D6C98.1080006@Alexander.Shukaev.name> (raw)
Hey everyone,
Suppose I run builds on a dedicated build machine with `compile' via
Tramp. When there is an error displayed and one follows it, clearly
Emacs tries to access the corresponding file remotely. But in my case,
I have mounted the same source code directory structure as is on the
build machine in order to develop the code locally. Hence, 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. It would also be nice if the implementation of this
feature would apply not only to compilation buffers, but would be rather
located on a lower level to intercept all file finding requests from
Tramp buffers.
I do realize that the use case is very special and is not meant for
broad audience, so this should not be considered as a feature request.
That is I merely want to know how to implement it properly on my own.
Any suggestions or ideas on improvement or generalization of this idea
are very welcome.
Kind regards,
Alexander
next reply other threads:[~2016-01-06 19:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 19:35 Alexander Shukaev [this message]
2016-01-07 8:42 ` Find file locally from Tramp buffer tomas
2016-01-07 20:14 ` Michael Albinus
2016-01-08 7:54 ` tomas
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=568D6C98.1080006@Alexander.Shukaev.name \
--to=emacs@alexander.shukaev.name \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).