From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: Question: Is there any way to use the bash completion feature from Emacs shell mode. Date: Tue, 11 Oct 2016 15:12:25 +0300 Message-ID: References: <51ed4bfc-fbb1-9c29-afe9-fafabab3b7ce@yk.rim.or.jp> <8337k4g2ki.fsf@gnu.org> <20161010183416123360523@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476188023 31467 195.159.176.226 (11 Oct 2016 12:13:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 12:13:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 14:13:38 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btvvo-00051b-6l for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2016 14:13:16 +0200 Original-Received: from localhost ([::1]:55391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btvvm-0002uR-S2 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2016 08:13:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btvvH-0002uJ-9P for help-gnu-emacs@gnu.org; Tue, 11 Oct 2016 08:12:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btvvD-0003yo-Ni for help-gnu-emacs@gnu.org; Tue, 11 Oct 2016 08:12:42 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btvvB-0003pu-Ch for help-gnu-emacs@gnu.org; Tue, 11 Oct 2016 08:12:39 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8A17920764 for ; Tue, 11 Oct 2016 08:12:27 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 11 Oct 2016 08:12:27 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=tuv8J gsFyX/wgt/fMwCLU235ayM=; b=bFmbM1hii0UA+E5eu/m919pbSmVVIvIvCm56s Iy7TeQbYkMq68qGYsFqqN2vRXRE86gcT4lSiZXKo3e23f9+lhpm0hb8bHLqf56Sh sCXZX1Sk/3InCb91xkfO8V7/5bLz1ttkaANMUh4VoX31DRRCEvf0IPw4h4DgfArc pkBqKI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=tuv8JgsFyX/wgt/fMwCLU235ayM=; b=VKiiF 5U/baVTBObdet28kFDTBGfNPpzRVNdPIQTYS99zOOMoyAsI2XlZhN7Zk7WYjJol2 D3Yn+tkQ4TIzcGJK1LMYqF/DGMoSlbplesEt/vP+7/dHO+qOB6WXkHo78AUBD8JM 3tdzFpZ9HUZICQ0v1NrDB4+VdJ/oW6lsxMVmdc= X-Sasl-enc: 7xtGp+1PIazxQ0a10shIJn7lLrgl52mzcqh9h0JrbLdC 1476187947 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id ECEF9F29CF for ; Tue, 11 Oct 2016 08:12:26 -0400 (EDT) In-Reply-To: <20161010183416123360523@bob.proulx.com> (Bob Proulx's message of "Mon, 10 Oct 2016 18:59:05 -0600") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111502 Archived-At: On 10/10/2016 18:59 -0600, Bob Proulx wrote: > Dan Hitt wrote: >> Tab completion certainly works, but it's the emacs completion, not the >> bash completion. > > Right. There are really (at least) three types of completion. > > 1) bash completion using bash only > http://tiswww.case.edu/php/chet/bash/bashtop.html > 2) bash-completion using the bash-completion 3rd party addon to bash > http://bash-completion.alioth.debian.org/ > 3) emacs shell-mode completion > https://www.gnu.org/software/emacs/manual/html_node/emacs/Shell.html You might want to look at emacs-bash-completion (https://github.com/szermatt/emacs-bash-completion) which integrates bash-completion (https://github.com/scop/bash-completion), which provides many completion functions. Filipp