gpt4 book ai didi

emacs - magit 和/usr/bin/emacsclient --socket-name=/tmp/emacs1000/server

转载 作者:行者123 更新时间:2023-12-03 21:22:02 27 4
gpt4 key购买 nike

emacs 客户端 26.1

Emacs 26.1

Magit 20180604.958、Git 2.17.1、Emacs 26.1、gnu/linux

我的 emacs 被配置为在守护进程模式下工作

当我尝试提交一个暂存文件时,我得到了这个:

GitError! There was a problem with the editor '/usr/bin/emacsclient --socket-name=/tmp/emacs1000/server

在 magit 进程窗口中,我看到了这个
  0 git … add -u .
1 git … commit --all --no-verify
hint: Waiting for your editor to close the file...
Waiting for Emacs...
*ERROR*: Symbol’s function definition is void: magit-process
error: There was a problem with the editor '/usr/bin/emacsclient --socket-name=/tmp/emacs1000/server'.
Please supply the message using either -m or -F option.

~/.config/systemd/user/emacsd.service
[Unit]
Description=Emacs: the extensible, self-documenting text editor
Documentation=man:emacs(1) info:Emacs

[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (kill emacs))"
Environment=DISPLAY=:%i
TimeoutStartSec=0
Restart=on-failure

[Install]
WantedBy=default.target

我有以下变量
alias emacs='lc_collate=c emacsclient -c -n "$@"'


➜  frontend git:(experiment) ✗ echo $EDITOR                                           
/usr/bin/eclient

➜ frontend git:(experiment) ✗ cat /usr/bin/eclient
#!/bin/bash
/usr/bin/emacsclient -c -nw "$@"

我也收到这些消息

从文件/home/dmitry/Projects/p/frontend/.git/COMMIT_EDITMSG 恢复缓冲区? (y 或 n)

最佳答案

将 Emacs 从 26 升级到 27 后,我遇到了同样的问题。清理后问题解决了 .emacs.d文件夹( git clean -xdf 如果配置保存在 git 中就可以了)。

关于emacs - magit 和/usr/bin/emacsclient --socket-name=/tmp/emacs1000/server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50998159/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com