3

重新安装我的系统后,我发现emacs tramp 不工作......;。到底发生了什么: 我输入 Cx Cf /su:root@localhost: 这里 emacs 要求我提供密码。然后它挂起,在 minibuffer 中显示上面的字符串,然后 Tramp: Waiting for prompts from remote shell

这是 tramp/su root@localhost中的内容:

Password: Password: 
su: incorrect password

Process *tramp/su root@localhost* exited abnormally with code 125

这是 debug tramp/su root@localhost中的内容

http://pastebin.com/0CKD1yM3

最后一行:

17:13:59.988240 tramp-file-name-handler (1) # Interrupt received in operation (file-exists-p /su:root@localhost:) 

似乎说挂起发生在tramp-file-name-handlerfile-exists-p /su:root@localhost:内,但我真的不知道该怎么办......

我的 emacs 版本是 23.4.1

如果有人知道可能导致这种情况的原因,我会很高兴!

编辑:原来这是因为我的提示配置错误......我的根目录的 PS1 变量包含颜色,并且可着色终端的检测不起作用

4

0 回答 0