tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with for tilde expansion (tramp 2.1.9)


From: Gilles Pion
Subject: problem with for tilde expansion (tramp 2.1.9)
Date: Tue, 22 May 2007 00:45:12 -0700 (PDT)

To make tilde expansion work it has been necessary for me to modify the "tramp-handle-expand-file-name" function like this

Replaced:
 (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))
             (buffer-substring (point) (tramp-line-end-position)))))
By
(setq uname
    (progn
        (tramp-send-command v (format "cd %s; pwd" uname))
        (with-current-buffer (tramp-get-buffer v)
            (goto-char (point-min))
            (buffer-substring (point) (tramp-line-end-position)))) )


Without making this change ~<username> always uses the home directory of the remote user of the ssh connection.

Is this correct?

View this message in context: problem with for tilde expansion (tramp 2.1.9)
Sent from the Gnu - Tramp - Dev mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]