From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Question: Is there any way to use the bash completion feature from Emacs shell mode.
Date: Mon, 10 Oct 2016 16:40:02 +0300 [thread overview]
Message-ID: <87r37o5nm5.fsf@gavenkoa.example.com> (raw)
In-Reply-To: 51ed4bfc-fbb1-9c29-afe9-fafabab3b7ce@yk.rim.or.jp
On 2016-10-08, ISHIKAWA,chiaki wrote:
> 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.
Please look to my answer:
http://stackoverflow.com/a/28618762/173149
In short you should learn ``M-x term`` mode and a few key binding:
* ``C-C C-j``
* ``C-c C-k``
* ``C-c ...``
There is attempts to define ``comint-dynamic-complete-functions``:
--8<---------------cut here---------------start------------->8---
(defun comint-completion-at-point ()
(run-hook-with-args-until-success 'comint-dynamic-complete-functions))
--8<---------------cut here---------------end--------------->8---
for readline-enabled programs:
https://github.com/szermatt/emacs-bash-completion
--
http://defun.work/
next prev parent reply other threads:[~2016-10-10 13:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-08 19:14 Question: Is there any way to use the bash completion feature from Emacs shell mode ISHIKAWA,chiaki
2016-10-09 18:11 ` Dan Hitt
2016-10-10 6:06 ` Eli Zaretskii
2016-10-10 14:05 ` Dan Hitt
2016-10-10 14:13 ` Dan Hitt
2016-10-11 1:02 ` Bob Proulx
2016-10-11 0:59 ` Bob Proulx
2016-10-11 12:12 ` Filipp Gunbin
2016-10-10 0:49 ` Bob Proulx
2016-10-10 13:40 ` Oleksandr Gavenko [this message]
2016-10-10 23:24 ` Dmitry Gutov
2016-10-12 0:25 ` ISHIKAWA,chiaki
2016-10-12 18:50 ` Oleksandr Gavenko
2016-10-19 1:12 ` Robert Thorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r37o5nm5.fsf@gavenkoa.example.com \
--to=gavenkoa@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).