tags:

views:

85

answers:

1

I am using GNU Emacs 23.1.50.1 (i486-pc-linux-gnu).

What I want is conceptually simple, [TAB] indicates that I press the TAB key.

M-x shell

erik@furby:~$ ls
bin Desktop Documents Dropbox R.tools

erik@furby:~$ cd Drop[TAB]

and tab completion works fine (i.e., Dropbox is completed)

However, as soon as I ssh, this no longer works.

ssh [email protected]
Terminal = dumb
erik@remote:~> ls
bin private

erik@remote:~> cd priv[TAB]

and the minibuffer displays "No completions of priv"

I've found others with the same problems, but could not discern the solution.

http://www.linuxforums.org/forum/red-hat-fedora-linux/56103-tab-completion-problem-ssh-shell-through-emacs.html

http://stackoverflow.com/questions/1134149

+3  A: 

OK, after I posted the question, I stumbled on http://nflath.com/2009/09/dirtrack-mode/ , which appears to have a solution, although not entirely trivial. It uses dirtrack-mode, and the author says:

"It took me a long time to figure out how to get tab-completion working in shell-mode when I was ssh’d into another computer."

It's been annoying me for years; I'm glad I'm not the only one!

Erik Iverson