Emacs server/emacsclient не соединится

Я просто установил Ubuntu 18.04, и GNU Emacs 26.1 (создайте 2, x86_64-pc-linux-gnu, GTK + Версия 3.22.30) на моем ноутбуке Lenovo W541. Под этой новой установкой, 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 вместо этого?

ОБНОВИТЕ 1 В ответ на предложение @waltinator, я вхожу, ^H+f запускают сервер и получают ответ:

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). Мысли?

0
задан 22 March 2019 в 05:31

1 ответ

Оказалось, что решение состояло в том, чтобы поместить следующие строки в мой файл запуска .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 и' открывает 'имя файла' прямо в основной буфер emacs. Странный, что 'emacsclient' больше не работает, но... там, у Вас есть он.

0
ответ дан 26 October 2019 в 00:23

Другие вопросы по тегам:

Похожие вопросы: