Emacs Daily Build 2013-09-11 »:
Universal Binary built on Mac OS X 10.6.8, 45.89 MB.
See the differences from the last build.
Category: emacs
-
my latest GNU Emacs on OS X: Emacs Daily Build 2013-09-11
-
Emacs + tramp + putty = you can edit your UNIX files remotely “anywhere”, even on Windows
TRAMP extends the capabilities of the emacs “directory editor” (dired) to allow you to also deal with remote files. “Remote” as in:
- you can reach the file or directory through ssh
- or sftp
- or ftp
- or …
SSH on Windows – PuTTY:
On Windows platforms it can make use of the PuTTY family of utilities in order to achieve ssh and sftp tasks.(setq tramp-default-method “pscp”)
I personally chose pscp to be my tramp-default-method on Windows with PuTTY, I “customised” it (so I don’t really do a setq as show above), and the resp. setting lives in my .emacs.d/gnu-emacs-custom.el .
… According to my experience (having tried various ways resp. methods) plink resp. plinkx occasionally corrupt files, and you avoid that using the TRAMP method pscp, which is actually a nice combination of plinkx and PuTTY pscp (??? looks weird !!!), i.e. you are passing a named saved session (→ PuTTY) rather than a host name to it. (“THE manual” does not mention this bit, but you should be aware of it.)If you are able to add the PuTTY installation directory to the %Path% environment variable, this makes things easy, otherwise do it within your .emacs.d/init.el !
This also shows how to add the PuTTY directory to PATH (within .emacs.d/init.el):
Update 2013-01-15: tramp paths with ports:
Occasionally “sitting” on a VM (VirtualBox) host I copy / access files living in a VM Linux guest, whose SSH port is forwarded to the VM host’s port 2222.
VM-host $ env RSYNC_RSH=’ssh -p 2222′ rsync -vaz diary localhost:diary_
This is a useful emacs/tramp access path for those files:
/scpx:localhost#2222:diaryscpx and sshx as opposed to scp and ssh (without the ‘x’ in the end) seem to accept a port number within these emacs/tramp access paths.
Update 2013-04-30: problem with preserving emacs tramp file permissions:
Somebody else experiences this problem as well [link].Update 2013-04-30 evening:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-filemodes.html : I think, this doesn’t concern TRAMP, as TRAMP has its own means to enquire and set file modes.Update 2013-10-__:
Found “vc-handled-backends” and reduced it on my Windows emacs / tramp / putty platform.Update 2017-09-08: Every now and then I come across this error message:
Cannot find local copy program: pscp
This only occurs for “bigger” files (e.g. a 40k file), not for small files, because small files are being dealt with by plink.
tramp-do-copy-or-rename-file-out-of-band (in lisp/net/tramp-sh.el) tries to find the copy-program on exec-path instead of PATH, so we have to add putty-directory to exec-path as well. I amended this page to deal with the situation:
Fixed 😆
-
GNU Emacs for Microsoft Windows resp. Mac OS X
- http://oreilly.com/catalog/9780596006488 – “Learning GNU Emacs“
The quoted book points for Mac OS X and Windows implementations exclusively to these web pages, but pls regard both as outdated:
- http://sourceforge.net/projects/nqmacs/
- http://www.apple.com/downloads/macosx/unix_open_source/carbonemacspackage.html
Update:
As of 2016-01 here are the best sites for Windows “Emacsen”:
- cygwin provides w32 and also X11 binaries — I am about to give them a try
- http://www.emacswiki.org/emacs/?EmacsForWindows
- http://www.gnu.org/software/emacs/windows/
- http://sourceforge.net/projects/emacs-bin/ – !!! – seems to be bleeding edge
- http://sourceforge.net/projects/emacsbinw64/ (have not tried it yet)
- http://ftp.gnu.org/gnu/emacs/windows/ – a little outdated, but not too bad
- https://code.google.com/p/emacs-for-windows/ – rather outdated
As of 2016-01 here is my favourite site for Mac OS X “Emacsen”:
- http://EmacsForMacOSX.com – seems to be bleeding edge – they have RSS feeds for misc. variants