Bash `smart' completion in Emacs shell mode

Bash `smart' completion in Emacs shell mode

Post by W Dan Meye » Thu, 09 Jul 2009 18:59:44


Hi,

As you know Bash readline implementation allows `smart' program specific
completion for things like program options or allowed arguments. Since
Emacs shell mode uses non-interactive Bash shell the readline
functionality is suppressed, and replaced with more less equivalent
comint interface. That is, more or less... I wish to have all this
features in Shell comint interface.

So the question is: anybody knows any project that includes this
functionality?

I am tempted to start a project like this, maybe generate completion
stuff from shell scripts and maybe C files (and convert this to Emacs
Lisp).

What do you think about it?

cheers;
Wojciech Dan
 
 
 

Bash `smart' completion in Emacs shell mode

Post by Vagn Johan » Sat, 11 Jul 2009 02:47:48

Take a look at eshell (M-x eshell RET). It has some smart completion.
--
Vagn Johansen