emacsclient 启动错误

Debugger entered--Lisp error: (error "Error reading from stdin")
  read-from-minibuffer("M-x " nil (keymap (1 . move-beginning-of-line) (27 keymap (46 . smex-find-function)) (8 keymap (119 . smex-where-is) (102 . smex-describe-function)) (9 . minibuffer-complete) keymap (4 . ido-magic-delete-char) (6 . ido-magic-forward-char) (2 . ido-magic-backward-char) (63 . ido-completion-help) (left . ido-prev-match) (right . ido-next-match) (0 . ido-restrict-to-matches) (27 keymap (32 . ido-take-first-match)) (67108896 . ido-restrict-to-matches) (26 . ido-undo-merge-work-directory) (20 . ido-toggle-regexp) (67108908 . ido-prev-match) (67108910 . ido-next-match) (19 . ido-next-match) (18 . ido-prev-match) (16 . ido-toggle-prefix) (13 . ido-exit-minibuffer) (10 . ido-select-text) (32 . ido-complete-space) (9 . ido-complete) (5 . ido-edit-input) (3 . ido-toggle-case) (1 . ido-toggle-ignore) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "
" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (63 . session-minibuffer-history-help) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil extended-command-history)
  ido-read-internal(list "M-x " extended-command-history "shell" nil nil)
  ido-completing-read("M-x " ("shell" "color-theme-sanityinc-solarized-dark" "color-theme-sanityinc-solarized-light" "package-list-packages" "cd" "ri" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "vlf" "xdb" "calc" "dark" "diff" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "rake" "smex" "talk" "term" "undo" "yank" "yari" "zone" "align" "chmod" "debug" ...) nil nil nil extended-command-history "shell")
  smex-completing-read(("shell" "color-theme-sanityinc-solarized-dark" "color-theme-sanityinc-solarized-light" "package-list-packages" "cd" "ri" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "vlf" "xdb" "calc" "dark" "diff" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "rake" "smex" "talk" "term" "undo" "yank" "yari" "zone" "align" "chmod" "debug" ...) nil)
  smex-read-and-run(("shell" "color-theme-sanityinc-solarized-dark" "color-theme-sanityinc-solarized-light" "package-list-packages" "cd" "ri" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "vlf" "xdb" "calc" "dark" "diff" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "rake" "smex" "talk" "term" "undo" "yank" "yari" "zone" "align" "chmod" "debug" ...))
  smex()
  funcall-interactively(smex)
  call-interactively(smex nil nil)
  command-execute(smex)

启动命令

nohup emacsclient -a "" -c >/dev/null 2>log &

配置是purcell的配置只是修改了将elpa修改为本地.刚开始还是好的,后来就不行了中间也没改什么. 哪里有问题?要怎么看?

你的配置里有 (command-execute ‘smex),而 smex 是个交互命令,需要用户输入,daemon 模式启动不了。

我怎么确定它在哪?找到了怎么处理?删掉吗?

到配置目录grep?我一般用rg。可以先注释掉。

call-interactively也不行?daemon模式不行而正常的可以?

之前是daemon模式不行,正常的没试。在配置里没有找到(command-execute ‘smex),这个字段。因为急着用所以先覆盖了配置又可以了。现在才有空回复非常抱歉, 非常感谢你们的回答.

更新

重启电脑又出现了这个问题, 正常启动没有错误,debug也没有error或者warning,但是好像没加载完成一样.

因为没有 stdin 输入啊

不一定就是这句原样,smex 有关的最好都要排一遍

嗯…变成另一个错误了… 哪里有好的elisp教程吗?我学一下吧.

emacs 自带! C-h r u m Elisp RET