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: http://www.nabble.com/problem-with-for-tilde-expansion-%28tramp-2.1.9%29-tf3794765.html#a10733031 Sent from the Gnu - Tramp - Dev mailing list archive at Nabble.com.
_______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
