[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp 2.26 emacs 24.3 plink
From: |
MM |
Subject: |
Re: tramp 2.26 emacs 24.3 plink |
Date: |
Tue, 16 Sep 2014 12:20:20 +0100 |
On 16 September 2014 07:48, Michael Albinus <address@hidden> wrote:
> MM <address@hidden> writes:
>
>>> And when yo have copied the 2.2.9 *.el files, likely the generated
>>> tramp-loaddefs.el does not fit.
>> I haven't copied. I've just compiled tramp 2.2.9 in its downloaded
>> directory with M-: (byte-recompile-directory "where your new tramp
>> is" 0) and (add-to-list 'load-path "where the new tramp is") before
>> the require tramp.
>
> This doesn't generate the tramp-loaddefs.el file.
>
> Let's postpone the 2.2.9 tests for later, and let's continue with
> 2.2.6. IIRC, the bug could be masked if all *.elc files from the lisp
> directory are removed (or moved away that they cannot be
> loaded). Restart Emacs then, in order to guarantee that no Tramp macro
> or whatever is leftover.
>
> Best regards, Michael.
Removed:
tramp-cache.elc
tramp-cmds.elc
tramp-compat.elc
tramp-ftp.elc
tramp-gvfs.elc
tramp-gw.elc
tramp-sh.elc
tramp-smb.elc
tramp-uu.elc
tramp.elc
trampver.elc
and left:
tramp-cache.el
tramp-cmds.el
tramp-compat.el
tramp-ftp.el
tramp-gvfs.el
tramp-gw.el
tramp-loaddefs.el
tramp-sh.el
tramp-smb.el
tramp-uu.el
tramp.el
trampver.el
and restarted emacs. My .emacs has:
(require 'tramp) ;; using 2.26
(require 'tramp-sh)
(setq tramp-verbose 6)
(add-to-list 'tramp-default-proxies-alist
'("myhost" nil "/plink:address@hidden:"))
(defconst my-tramp-prompt-regexp
(concat (regexp-quote "Host:") "\\s-*")
"Regular expression matching my login prompt question.")
(defun my-tramp-action (proc vec)
"Enter the host name in order to give a correct answer."
(save-window-excursion
(with-current-buffer (tramp-get-connection-buffer vec)
(tramp-message vec 6 "\n%s" (buffer-string))
(tramp-send-string vec "myhost"))))
(add-to-list 'tramp-actions-before-shell
'(my-tramp-prompt-regexp my-tramp-action))
And it works. Fantastic!!!!!!!!!!!!!!!!!!!!!!! (after 50-off emails:-)
Completion works, and performance is adequate. Saving files works too.
Now PATH is a subset of what I usually have when i login with the usual methods.
The PATH that tramp finds is:
/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
svn could not be found because it's not in that PATH
There are a couple of dirs to remove, and a couple to add.
I've tried (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
but then tramp hanged.
1. Is there a concept of a remote current directory? Do I change it
with M-x cd ?
2. How do I launche a remote compile?
3. Can I open a remote shell inside emacs, a la M-x shell ?
Thanks Michael,
- Re: tramp 2.26 emacs 24.3 plink, (continued)
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/15
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/15
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/15
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/15
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/15
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/16
- Re: tramp 2.26 emacs 24.3 plink,
MM <=
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/16
- Message not available
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/17
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/17
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/17
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/17
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/18
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/19
- Message not available
- Re: tramp 2.26 emacs 24.3 plink, Michael Albinus, 2014/09/19
- Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/22
Re: tramp 2.26 emacs 24.3 plink, MM, 2014/09/11