[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with for tilde expansion (tramp 2.1.9)
From: |
Michael Albinus |
Subject: |
Re: problem with for tilde expansion (tramp 2.1.9) |
Date: |
Tue, 22 May 2007 22:20:02 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.91 (gnu/linux) |
Gilles Pion <address@hidden> writes:
Hi,
> To make tilde expansion work it has been necessary for me to modify
> the "tramp-handle-expand-file-name" function like this
The following patch shall be sufficient, keeping the cache for
optimization.
Thanks again for the report, and best regards, Michael.
*** /home/albinus/src/tramp/lisp/tramp.el.~2.557.~ 2007-04-23
23:38:25.000000000 +0200
--- /home/albinus/src/tramp/lisp/tramp.el 2007-05-22 22:00:38.000000000
+0200
***************
*** 3361,3367 ****
(string-match "\\`su\\(do\\)?\\'" method))
(setq uname (concat uname user)))
(setq uname
! (with-connection-property v "home-directory"
(tramp-send-command v (format "cd %s; pwd" uname))
(with-current-buffer (tramp-get-buffer v)
(goto-char (point-min))
--- 3361,3367 ----
(string-match "\\`su\\(do\\)?\\'" method))
(setq uname (concat uname user)))
(setq uname
! (with-connection-property v uname
(tramp-send-command v (format "cd %s; pwd" uname))
(with-current-buffer (tramp-get-buffer v)
(goto-char (point-min))