1

访问本地系统中的 repos/dirs/文件时,我的 emacs + egg 工作正常。

此外,通过 ssh 打开和编辑文件也可以正常工作,例如

ctrl-f /ssh:jds@dev.acme.com:/home/jds/src/test.py

但是当执行 egg-status 时,我得到......

Opening input file: no such file or directory, /HEAD

请注意,如果我打开一个 shell 并 ssh 进入远程系统,所有 git 命令都可以正常工作。

感谢您提供任何帮助以使其正常工作。

4

2 回答 2

2

我同意Alex 的回答,即您应该使用更高级和更棒的magit 包

关于为什么 egg 不能按照您想要的方式工作的更长的故事是这样的:egg 的编写方式不能使用 TRAMP 对远程文件进行操作,因为 egg.el 使用该call-process功能,而magit使用远程进程start-file-process中描述的支持TRAMP 手册的部分

5.4 Integration with other Emacs packages.

tramp supports running processes on a remote host. This allows to
exploit Emacs packages without modification for remote file names.
[...]
process-file and start-file-process work on the remote host when the
variable default-directory is remote:

     (let ((default-directory "/ssh:remote.host:"))
       (start-file-process "grep" (get-buffer-create "*grep*")
                           "/bin/sh" "-c" "grep -e tramp *"))
于 2012-12-15T10:09:35.980 回答
0

magit适用于远程文件(刚刚重新检查:-)。而且我认为,它是所有 Emacs/Git 软件包中最先进的。

于 2012-12-15T09:20:35.687 回答