Emacs server 的异常的一次排查: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 July 2026

  • curprev 23:0523:05, 21 July 2026Mwroot talk contribs 663 bytes +663 Created page with "在 Emacs 里,<code>(emacs-pid)</code>,得到 Emacs 的 pid 号。 在 Terminal 里,<code>emacsclient -e '(emacs-pid)'</code>,得到 Terminal 里 Emacs 用的 pid 号。 二者若不一致,就无法通信。 再用 systemctl --user status emacs 能查到,Emacs 本身有个 daemon,应该会因为打开 Emacs Client 而自动启动。所谓的异常,就是两边的 client pid 对不上。 解决方法很简单,重启下电脑,没事别用 Emacs Clie..."