我刚刚在我的联想W541笔记本电脑上安装了Ubuntu18.04和GNUEmacs26.1 (build 2,x86_64-pc-linux- GNU,GTK+版本3.22.30)。在此新安装下,emacs服务器& emacsclient功能不再工作。在命令提示符中调用"emacsclient“将告诉我
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".但当我试着用emacs服务器启动时,
‘server-start’ is an obsolete command; use ‘gnuserv-start’ instead.
Server subprocess exited
You can run the command ‘server-start’ with M-x ser-s RET
Server subprocess exited这个解决方案是否只是按建议安装gnuserv呢?
响应@waltinator S的建议,我输入了^H+f服务器-start并得到响应:
server-start is an interactive autoloaded Lisp function in
‘server.el’.
(server-start &optional LEAVE-DEAD)
This function is obsolete;
use ‘gnuserv-start’ instead.
Use ‘gnuserv-start’ instead of this function.
Allow this Emacs process to be a server for client processes.
This starts a server communications subprocess through which
client "editors" can send your editing commands to this Emacs job.
To use the server, set up the program ‘emacsclient’ in the
Emacs distribution as your standard "editor".
--
Prefix arg means just kill any existing server communications subprocess.但是,“gnuserv”仍然没有匹配的地方,也不清楚如何在网上安装它(页面通常会注意到它应该随Emacs一起安装)。有什么想法?
发布于 2019-03-25 12:49:15
结果,解决方案是在我的.emacs启动文件中放置以下行:
(autoload 'gnuserv-start "gnuserv-compat"
"Allow this Emacs process to be a server for client processes."
t)
(gnuserv-start)
(setq gnuserv-frame (selected-frame))然后'gnuclient filename &‘打开’文件名‘右进入主emacs缓冲区。奇怪的是“残废”不再起作用了,但是.给你拿着。
https://askubuntu.com/questions/1127360
复制相似问题