This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: emacsclient from cygwin distro does not work with Cygwin emacs


Ken Brown <kbrown@cornell.edu> was heard to say:

I can confirm that Emacs does not honor server-auth-dir. I did not
customize this variable or alter it otherwise. Its value is
"~/.emacs.d/server/" which is apparently a hard-coded default. However,
my server file is in "/tmp/emacs45021/", not in "~/.emacs.d/server/". If
I quit Emacs and create "~/.emacs.d/server/" (which did not exist on my
system), Emacs still does not use this directory when I start it again.


Thanks for chiming in. I went back to the sources (lisp/server.el) and found out that Emacs does what it is told there. The directory specified in "server-auth-dir" is honored only if the server is supposed to use TCP sockets instead of local sockets. Local sockets end up in /tmp/emacsXY/ which is what I observe here. In order to use TCP sockets, you have to set "server-use-tcp" to a non-nil value. However, attempting to start the server throws me into the debugger if I do that. I'll leave that to the OP as I don't use TCP sockets.


regards,
Markus

--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]