From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#26661: compile, shell etc. should use bash-completion ! Date: Fri, 04 Sep 2020 13:05:38 +0200 Message-ID: <87k0x9by4d.fsf@gmail.com> References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36511"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 26661@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 13:06:08 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE9Xj-0009Oo-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 13:06:07 +0200 Original-Received: from localhost ([::1]:42278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE9Xi-00060m-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 07:06:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE9Xd-00060e-R4 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 07:06:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kE9Xd-0000gF-He for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 07:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kE9Xd-0003dm-BN for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 07:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26661 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 26661-submit@debbugs.gnu.org id=B26661.159921754913800 (code B ref 26661); Fri, 04 Sep 2020 11:06:01 +0000 Original-Received: (at 26661) by debbugs.gnu.org; 4 Sep 2020 11:05:49 +0000 Original-Received: from localhost ([127.0.0.1]:37582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE9XQ-0003aW-Q1 for submit@debbugs.gnu.org; Fri, 04 Sep 2020 07:05:49 -0400 Original-Received: from mail-wm1-f65.google.com ([209.85.128.65]:51521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE9XO-0003aI-Bs for 26661@debbugs.gnu.org; Fri, 04 Sep 2020 07:05:46 -0400 Original-Received: by mail-wm1-f65.google.com with SMTP id w2so5703574wmi.1 for <26661@debbugs.gnu.org>; Fri, 04 Sep 2020 04:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zz3JPA4x4LBZwKiAOsCjq+A8A4IiRPS1XFKNFdbmxSw=; b=YBNcHiL/uuBM9cQGAAOlW2/Lc3FS/qp2ywXg7Weh/pGI+QpbE+0ccJhrm/bMfJYTke uTQuC2ql15NpjJCCGG8ytGUz/zFjCyCzDV6xF3ReophOoC2iBi03UB01y2Vf1/j6lYbc PGeTTRIDF9ixhGEDJ1Mfe3lvXQFeKlwZ5tZw31t7cWj0LWyC5pyax46+nADgr/3rB02K HvZw5LAL1hWN9LEgdbJB0vN7GPo56zRgNYOTq9pbieJeE+6CmDavC6h36szqq+89mbHd w9OP/PSo3z0k0ffvbXEzQymqj2VI4T4Jth42QE50e6bjQi6e5+6hYgoyMmmPcq3RbI1g Vp1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zz3JPA4x4LBZwKiAOsCjq+A8A4IiRPS1XFKNFdbmxSw=; b=Q96CnxPNy/L26sdRCP9rW8HXvqJely5J4grKofViic1Chvbn5bGQADLCXMqR8IQ+u6 Ixls6lJr6WlHDMB17zgjpwLpu8Ke6OBOWXrieDjFC8klK2TGr4INFLYIy2qhBUHiBQwY MK/GZkOg/pKbwl3ikHXm6kRiHFgZBY9LqzH8b0hudDYNYXy9HWkqFyPLe2BhJvo9LKzu +1ygUTJBhZVdXtlVLBtpnlQA2g58ZRTnPcvnggO2qDTcb0dVKlmlt61YEXuvL+/jkat7 V2HkVpEEwIwVpofbN3v3goch7wGI+LayDg+Zgv3FSPOQKfMwWztsCnXQgpIJW+y8iw+o 3m9g== X-Gm-Message-State: AOAM53154+1H0wnUXLxShGKzv4lDeKgcqSMnu9fPkBqsUHP2BQ6R7QvL m37lQRCQfo4Nk01yzFnRslTw9J8lKxY= X-Google-Smtp-Source: ABdhPJw3lsGNGlB6lnnsf/0epWYbkWSWbqsePnnMWsDwdR6Ob2bwQfRHjK3AERYcfe1Yml4llwc8RA== X-Received: by 2002:a1c:a746:: with SMTP id q67mr7460909wme.128.1599217540219; Fri, 04 Sep 2020 04:05:40 -0700 (PDT) Original-Received: from hirondell ([2a01:e0a:20e:d340:41b7:7b2e:4aab:4832]) by smtp.gmail.com with ESMTPSA id b84sm12838042wmd.0.2020.09.04.04.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 04:05:39 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Wed, 2 Sep 2020 18:34:00 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187101 Archived-At: Stefan Kangas writes: > I think it's interesting as an alternative, but is it suitable as a > default? For example what happens if you don't have bash-completion > installed on your machine. IIRC it is a separate package in Debian. IIUC Debian's bash-completion package merely provides configuration for Bash's native completion facilities (`complete' is just a Bash builtin); I expect that if it's not installed, the MELPA package will just end up with an empty list of completion candidates. > Also, I doubt that it could ever be as powerful as pcomplete. It would probably have better program coverage though. Lots of authors of CLI tools now maintain their own completion configuration for e.g. Bash and/or Zsh, so by supporting Bash's native completion facilities we would leverage their efforts instead of re-developing ad-hoc completion functions. > My preference is that for this use-case we point users to use the > third-party package, but I guess YMMV. Any other opinions? All I can say is that I enjoy python.el offering the interpreter's native completions, and I wish shell-mode et al. could work the same way. Philosophically speaking, it would make sense IMO for one GNU project (Emacs) to leverage the API offered by another GNU project (Bash). I'm not saying pcomplete doesn't deserve some love and we could not implement smarter completions with it; I just think the benefit/cost ratio of enabling native Bash completions by default seems high.