# Git Bash Completion Not Working In Emacs

3 messages from 2018-04-16 to 2018-04-23. Participants: Marko Vasic, Andreas Schwab.
Thread: https://gitlist.dev/t/48300

## Marko Vasic, 2018-04-16 15:44

Subject: Git Bash Completion Not Working In Emacs
Message-ID: <CALH-0NbMxkQewnrr6S_xtyVH0BrC2J6gpB5r-hx8=PpekP1VKw@mail.gmail.com>
URL: https://gitlist.dev/e/CALH-0NbMxkQewnrr6S_xtyVH0BrC2J6gpB5r-hx8%3DPpekP1VKw%40mail.gmail.com

```
Hello,

Git bash completion script works perfectly under the terminal,
however, it does not work in Emacs (neither shell nor gui mode). Did
anyone encounter this issues and how can it be solved?

System I use:
OS: Ubuntu 17.10
Emacs: 25.2.2

Thanks,
Marko

```

## Andreas Schwab, 2018-04-16 16:25

Subject: Re: Git Bash Completion Not Working In Emacs
Message-ID: <87tvsb5db1.fsf@linux-m68k.org>
URL: https://gitlist.dev/e/87tvsb5db1.fsf%40linux-m68k.org
In-Reply-To: <CALH-0NbMxkQewnrr6S_xtyVH0BrC2J6gpB5r-hx8=PpekP1VKw@mail.gmail.com>

```
On Apr 16 2018, Marko Vasic <vasic@utexas.edu> wrote:

> Git bash completion script works perfectly under the terminal,
> however, it does not work in Emacs (neither shell nor gui mode). Did
> anyone encounter this issues and how can it be solved?

Depend on how you run the command in Emacs.  If you use M-x shell then
Emacs handles special keys like TAB itself (and the started shell
usually disables its own command line editing).  If you use M-x term
then Emacs emulates a terminal and lets the running process handle all
special keys.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

```

## Marko Vasic, 2018-04-23 19:51

Subject: Re: Git Bash Completion Not Working In Emacs
Message-ID: <CALH-0Nbh1-ckO1O7zayjXZ1gMRBKFv3RtSSkGS=4Tu23uqM-ZA@mail.gmail.com>
URL: https://gitlist.dev/e/CALH-0Nbh1-ckO1O7zayjXZ1gMRBKFv3RtSSkGS%3D4Tu23uqM-ZA%40mail.gmail.com
In-Reply-To: <87tvsb5db1.fsf@linux-m68k.org>

```
Thank you Andreas,

Is there a way to use git bash completion with "M-x shell"?

Marko

On Mon, Apr 16, 2018 at 11:25 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Apr 16 2018, Marko Vasic <vasic@utexas.edu> wrote:
>
>> Git bash completion script works perfectly under the terminal,
>> however, it does not work in Emacs (neither shell nor gui mode). Did
>> anyone encounter this issues and how can it be solved?
>
> Depend on how you run the command in Emacs.  If you use M-x shell then
> Emacs handles special keys like TAB itself (and the started shell
> usually disables its own command line editing).  If you use M-x term
> then Emacs emulates a terminal and lets the running process handle all
> special keys.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."

```
