[MacPorts] #29794: emacs-app @23.3_0 Problem using tramp in emacs.app: "ControlPath too long"
MacPorts
noreply at macports.org
Sat Jun 18 19:02:26 PDT 2011
#29794: emacs-app @23.3_0 Problem using tramp in emacs.app: "ControlPath too long"
-------------------------------+--------------------------------------------
Reporter: gorzarg@… | Owner: css@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: emacs-app
-------------------------------+--------------------------------------------
Comment(by gorzarg@…):
Replying to [comment:4 css@…]:
> So is this an issue with the port or a more general platform
configuration issue?
Not sure. However, dmercer's workaround works. So, I dug around in the
tramp files, and I think I have a fix:
1) Open up /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/net
/tramp-compat.el.gz in emacs with root access (e.g. sudo emacs tramp-
compat.el.gz).
2) In tramp-compat.el.gz, delete lines 212-224.
3) Add the following text: (file-name-as-directory "/tmp"))
to line 212.
4) Control-x-s to save the file.
5) Meta-x, byte-compile-file, then enter in tramp-compat.el.gz and press
enter.
6) Meta-x, byte-compile-file, then enter in tramp.el.gz and press enter.
7) Adjust permissions of byte-compiled files so other people can use them:
sudo chmod go+r tramp.elc tramp-compat.elc.
Tramp should work now without having to set the $TMPDIR env variable.
Basically, I'm just modifying the tramp-compat-temporary-file-directory
function in tramp-compat.el.gz to just set the temporary directory as
"/tmp."
Maybe for the next release of this port, this change (or something
similar) could be incorporated so I don't have to manually do this every
time I update Emacs.app?
--
Ticket URL: <https://trac.macports.org/ticket/29794#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list