threads / discuss / 48300

Git Bash Completion Not Working In Emacs

Subject: Git Bash Completion Not Working In Emacs

## tl;dr

3 messages between Apr 16, 2018 and Apr 23, 2018.

replies: 2people: 2as markdown or json

Marko Vasic· Apr 16, 2018, 15:44 UTC · lore
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· Apr 16, 2018, 16:25 UTC · re: Marko Vasic · lore

Re: Git Bash Completion Not Working In Emacs

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· Apr 23, 2018, 19:51 UTC · re: Andreas Schwab · lore

Re: Git Bash Completion Not Working In Emacs

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:
Show 18 quoted lines
> 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."

← back to recent threads