[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: Is there any way to use the bash completion feature from E

From: Eli Zaretskii
Subject: Re: Question: Is there any way to use the bash completion feature from Emacs shell mode.
Date: Mon, 10 Oct 2016 09:06:53 +0300

> From: Dan Hitt <>
> Date: Sun, 9 Oct 2016 11:11:24 -0700
> Cc:
> On Sat, Oct 8, 2016 at 12:14 PM, ISHIKAWA,chiaki <> 
> wrote:
> > Hi,
> > I have been using GNU emacs more than 30 years and thank you for maintaining
> > the great package.
> >
> > I have a question.
> >
> > Bash, the GNU shell interpreter has a feature called completion, and
> > over the years, people have created various completion databases for many
> > commands which are useful.
> >
> .......
> > However, due to various reasons, I prefer to run bash inside Emacs's shell
> > buffer. It is easy to copy&paste the result of bash output and reuse
> > commands is one reason. (I am so used to keyboard and copy&paste using mouse
> > or other pointing device takes much longer.)
> >
> > Unfortunately, bash's completion feature does not work in Emacs shell mode.
> > Obviously, [TAB] is stolen by Emacs for its own handling of TAB character.
> > Emacs's tab completion for filenames works great.
> > But I would like Bash's completion somehow works, too.
> This is also my experience (in almost every detail).
> As the OP says, emacs has improved over the decades, and all the time
> new features are showing up, such as ibuffer.  And emacs can do a lot
> of tricks, such as looking at jpg files.
> So, perhaps there is some mode like octave mode, that could run a bash
> shell with much deeper integration (perhaps by keeping a second
> interface to the inferior bash, such as through a socket or
> something?)?  Or perhaps instead of bash it could be some derivative
> of bash?  Or some derivative of zsh?

I guess I don't understand what you guys are saying, because
completion with TAB and M-? keys does work for me in shell-mode.  I
see completion on commands, files, and environment variables.

What am I missing?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]