Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Sun, 07 Dec 2003
Posted by Pingback from Ted Leung on the air : computers/operating_systems/macosx/738 : How to get remote X clients to work X11.app at Wed Dec 24 16:21:53 2003
Gnuserv for Mac OS X Emacs
The Emacs that I'm using on Mac OS X is a CVS HEAD of GNU Emacs 21.3.50??. This version can be built natively for Mac OS X and doesn't rely on X in order to run. I also wanted to use the gnuserv package that extends the Emacs server functionality. In particular it creates a new frame when you use gnuclient to edit a file, and gnuclient is my choice for setting the EDITOR and VISUAL environment variables.
When I built Emacs last week, I couldn't get gnuserv to work. Turns out gnuserv wasn't accepting connections because of its built in security. I played with the GNU_SECURE security method figuring that MIT-MAGIC-COOKIE authentication wouldn't work because I had built without X. I could set the GNU_SECURE environment variable from zsh and have gnuserv pickup the connections, but when I did it inside Emacs, I couldn't get it to work. So I decided to try MIT-MAGIC-COOKIE. Turns out all I had to do was:
[23:26] |
[computers/operating_systems/macosx] |
# |
TB |
F |
G |
2 Comments |
That was enough to get gnuserv and gnuclient happily talking to each other.xauth add localhost:999 MIT-MAGIC-COOKIE-1 0000000 (insert your hex key here) exit
I simulated gnuclient with a shell script something like:
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n --eval '(find-file-other-frame "'"$1"'")'
Posted by Ian Bicking at Tue Dec 9 10:08:55 2003
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n --eval '(find-file-other-frame "'"$1"'")'
Posted by Ian Bicking at Tue Dec 9 10:08:55 2003
Posted by Pingback from Ted Leung on the air : computers/operating_systems/macosx/738 : How to get remote X clients to work X11.app at Wed Dec 24 16:21:53 2003
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk