all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <Michael.Albinus@alcatel-lucent.com>
To: "'Rodrigo Amestica'" <ramestica@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs tramp and the remote environment
Date: Fri, 22 Jan 2010 15:16:13 +0100	[thread overview]
Message-ID: <nqy6jqkyxe.fsf@alcatel-lucent.com> (raw)
In-Reply-To: <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org> (Drew Adams's message of "Thu, 21 Jan 2010 16:50:11 -0800")

"Drew Adams" <drew.adams@oracle.com> writes:

>> I use tramp every day from home (it is a so great tool!) to compile
>> and run applications in a remote set of machines. At this moment the
>> only thing I'm missing is a better way for moving around the remote
>> file system. I mean, in the remote environment I set a few variables
>> that when running emacs locally would quickly let me go to directories
>> I need to visit, that is, C-x C-f $MYVAR tab
>> 
>> But with tramp on a remote machine all variable keep their local value
>> and, therefore, I cannot use them to browse the remote file system.
>> 
>> I thought that hooking a function that would somehow replace process-
>> environment with the remote one would do the trick. Then I saw in
>> tramp that there is already a variable named tramp-remote-process-
>> environment, but it seems to be meant to some other purposes.
>> 
>> Would it be there and advice on how to accomplish what I'm looking
>> for?

`tramp-remote-process-environment' is meant to *set* environment
variables on the remote host. There is no Tramp function which *reads*
them. The following code snippet might help you:

(let ((default-directory "/ssh:remotehost:"))
  (with-output-to-string
    (shell-command "set" standard-output)))

> However, it might also help to know that you can bookmark remote locations:
> files and directories, and then visit the bookmarks. IOW, just go to the trouble
> once of getting to the right places, and set bookmarks to them for subsequent
> quick access.

The Tramp FAQ explains several approaches, how to shorten remote file
names. See

(info "(tramp)Frequently Asked Questions")

Best regards, Michael.




  parent reply	other threads:[~2010-01-22 14:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22  0:19 emacs tramp and the remote environment Rodrigo Amestica
2010-01-22  0:50 ` Drew Adams
     [not found] ` <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>
2010-01-22 14:16   ` Michael Albinus [this message]
2010-01-22 15:30     ` Drew Adams
2010-01-22 17:15       ` Drew Adams

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=nqy6jqkyxe.fsf@alcatel-lucent.com \
    --to=michael.albinus@alcatel-lucent.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ramestica@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.