Emacs hangs when using tramp with su

after reinstalling my system, I found that emacs tramp was not working. Here's what exactly happens: I type Cx Cf / su: root @ localhost: Here emacs asks for my password, which I provide. Then it hangs showing the above line in minibuffer and then Tramp: Waiting for prompts from remote shell

This is what is in tramp / su root @ localhost:

Password: Password: 
su: incorrect password

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

      

And here's what's in the debug tramp / su root @ localhost

http://pastebin.com/0CKD1yM3

Last line:

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

      

it looks like the hangs are happening inside tramp-file-name-handler or file-exists-p / su: root @ localhost: but I really don't know what to do about it ...

My emacs version is 23.4.1

I would be glad if someone knows what might be causing this!

Edit: It turned out that this was due to my prompt being poorly configured ... My PS1 variable for roots contained colors and detecting color terminals was not working

+3
emacs su tramp


source to share


No one has answered this question yet

See similar questions:

35
Emacs: Tramp doesn't work

or similar:

660
Differences between Emacs and Vim
299
How can I make nrepl-ritz-jack-in work remotely over TRAMP / Emacs
292
How can I reload .emacs after changing it?
35
Emacs: Tramp doesn't work
6
Emacs tramp hangs with "Tramp: found remote shell prompt"
3
Troubleshooting the Emacs Tramp Connection Used to Work - Password or Shell Regexp Wrong?
2
emacs tramp ftp or ssh
2
Emacs Tramp hangs over "enter" after entering password
1
Emacs tramp error "Argument type argument error"
0
How do I sudo edit a local file with Emacs on Ubuntu?



All Articles
Loading...
X
Show
Funny
Dev
Pics