all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ramestica@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: tramp and how to source remote environment
Date: Thu, 5 Mar 2009 06:49:15 -0800 (PST)	[thread overview]
Message-ID: <622d9fe4-3b8e-4016-8283-dd5518189264@33g2000yqm.googlegroups.com> (raw)
In-Reply-To: mailman.2422.1236261821.31690.help-gnu-emacs@gnu.org

On Mar 5, 9:05 am, Michael Albinus <michael.albi...@gmx.de> wrote:
> I don't understand. Do you mean this line:
>
> (setq remote-path (delq 'tramp-default-remote-path remote-path)))
>
> This deletes the *symbol* `tramp-default-remote-path', and nothing else.

I mean the code after the comment ";; Remove non-existing
directories.".

In general I find a bit too intrusive from tramp to go and do
something with my PATH in the remote machine. I would like the call to
tramp-set-remote-pat in tramp-open-connection-setup-interactive-shell
to be a choice left to the user. What do you think of the attached
patch?

Rodrigo

 *** tramp.el.orig       2009-03-05 09:40:40.000000000 -0500
--- tramp.el    2009-03-05 08:48:53.000000000 -0500
***************
*** 871,876 ****
--- 871,881 ----
       (tramp-set-completion-function
        "fcp" tramp-completion-function-alist-ssh)))

+ (defcustom tramp-override-remote-path t
+   "To guess or not to guess a 'good' remote PATH."
+   :group 'tramp
+   :type 'boolean)
+
  (defconst tramp-echo-mark-marker "_echo"
    "String marker to surround echoed commands.")

***************
*** 6048,6054 ****
          500 0))))

    ;; Set remote PATH variable.
!   (tramp-set-remote-path vec)

    ;; Search for a good shell before searching for a command which
    ;; checks if a file exists. This is done because Tramp wants to
use
--- 6053,6060 ----
          500 0))))

    ;; Set remote PATH variable.
!   (if (eq tramp-override-remote-path t)
!       (tramp-set-remote-path vec))

    ;; Search for a good shell before searching for a command which
    ;; checks if a file exists. This is done because Tramp wants to
use


  parent reply	other threads:[~2009-03-05 14:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18  1:17 tramp and how to source remote environment ramestica
2009-02-18  1:43 ` ramestica
2009-02-18 21:30   ` Michael Albinus
     [not found]   ` <mailman.1109.1234992614.31690.help-gnu-emacs@gnu.org>
2009-02-27  2:18     ` ramestica
2009-03-03 16:36       ` Michael Albinus
     [not found]       ` <mailman.2278.1236098043.31690.help-gnu-emacs@gnu.org>
2009-03-05  4:59         ` ramestica
2009-03-05 14:05           ` Michael Albinus
     [not found]           ` <mailman.2422.1236261821.31690.help-gnu-emacs@gnu.org>
2009-03-05 14:49             ` ramestica [this message]
2009-03-17 20:25               ` Michael Albinus

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=622d9fe4-3b8e-4016-8283-dd5518189264@33g2000yqm.googlegroups.com \
    --to=ramestica@gmail.com \
    --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.
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.