Closed LdBeth closed 7 years ago
https://www.emacswiki.org/emacs/EmacsClient#toc43
I find something related to this problem, and it finally works!
Well, the solution (see below) in EmacsWiki is not perfect since some other packages such
as magit
would be affected.
(setq server-socket-dir (format "/tmp/emacs%d" (user-uid)))
A little bit more perfect is set editor_shell_command
to the value of
with-editor-emacsclient-executable
. For me, It is something like /private/var/folders/h6/9g_dxxxxxxxxxxxx0gn/T/AppTranslocation/1XXXXXXX5DF0C/d/Emacs.app/Contents/MacOS/bin/emacsclient
.
But it cannot permanently get work.
editor_shell_command = "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -s ${TMPDIR}emacs${UID}/server"
When Conkeror is opened from GUI and
run_external_editor_function
orrun_external_editor_function
is set toemacsclient
,emacsclient
cannot find the sever. But when Conkeror is invoked byApplications/Conkeror.app/Contents/MacOS/xulrunner_launcher
,emacsclient
can find the sever and open the file correctly.I think it is caused by the environment variables, or some other reasons, but I have no idea about how to solve the problem.