Hi, I'm missing something obvious here. My lack of Lisp experience is stopping me see the wood for the trees. I have a problem whereby the variable temporary-file-directory on Windows is a standard Windows file but with a *nix path separators. I.e. C:/Users/.... This causes cygwin bash (at least I assume it is cygwin) to barf when transferring files. The command to bring the file across is:
scp -p -q -r user@machine:/file g:/Users/Andy/AppData/Local/Temp/tramp.12808BAn.sh which causes cygwin bash to freeze. If I replace g: with /cygdrive/g/ everything works well at the shell. On further inspection, tramp uses the variable temporary-file-directory in function tramp-compat-temporary-file-directory to generate the local temporary file name, so I try and override that in my .emacs file with the line: (setq temporary-file-directory "/cygdrive/g/Users/Andy/AppData/Local/Temp/") but the function still returns the original temporary-file-directory name starting with g:/ even though the variable is set correctly. With some debug, this is due to this line: (eval (car (get 'temporary-file-directory 'standard-value))) which pulls the original value of temporary-file-directory from the variable. Is there any way to override the variable without resorting to changing the code in tramp-compat.el? I'm assuming this is an easier question to answer than my other one ;) Thanks Andy _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
