From unknown Sun Jun 15 08:25:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26661 <26661@debbugs.gnu.org> To: bug#26661 <26661@debbugs.gnu.org> Subject: Status: compile, shell etc. should use bash-completion ! Reply-To: bug#26661 <26661@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:25:57 +0000 retitle 26661 compile, shell etc. should use bash-completion ! reassign 26661 emacs submitter 26661 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 26661 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 19:37:19 2017 Received: (at submit) by debbugs.gnu.org; 25 Apr 2017 23:37:19 +0000 Received: from localhost ([127.0.0.1]:40252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3A1H-00036u-3N for submit@debbugs.gnu.org; Tue, 25 Apr 2017 19:37:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3A1F-00036h-SL for submit@debbugs.gnu.org; Tue, 25 Apr 2017 19:37:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3A19-0007dn-Rb for submit@debbugs.gnu.org; Tue, 25 Apr 2017 19:37:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d3A19-0007dh-Nm for submit@debbugs.gnu.org; Tue, 25 Apr 2017 19:37:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3A18-0005Y9-LM for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 19:37:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3A15-0007Zw-Im for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 19:37:10 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:52295 helo=homiemail-a2.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d3A15-0007XN-AR for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2017 19:37:07 -0400 Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id C133F280069 for ; Tue, 25 Apr 2017 16:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=ktP8Sray3vCedWs1DgiuRKqAHiI=; b=m/nesYC9FLXz4Boz FFqNesHRM1gUYWuFGvtchzIt0LPJd6bOS5VkSdq5QQjiQ1MQIoyExvhXNGrNQ4BR nVktPuPiuVVHT8vjL+LEfuRwkpEdP1nuHqvPjIfU2v3Fd8LxDdw80LQkxXP3Ajvk y5C60vuMQjAjTuUPtViJ2WAgfPs= Received: from jidanni.org (114-41-5-216.dynamic-ip.hinet.net [114.41.5.216]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id 8E0D3280063 for ; Tue, 25 Apr 2017 16:37:02 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs Subject: compile, shell etc. should use bash-completion ! Date: Wed, 26 Apr 2017 07:36:59 +0800 Message-ID: <878tmoxdno.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) M-x compile prompt, Compile command: cat -- M-x shell, $ cat -- etc. etc. should all use bash-completion ! If the user has it turned on in his shell, emacs should recognize it. https://www.google.com/search?q=bash-completion+emacs From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 01 19:15:07 2020 Received: (at 26661) by debbugs.gnu.org; 1 Sep 2020 23:15:07 +0000 Received: from localhost ([127.0.0.1]:57624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDFUZ-0000KY-0T for submit@debbugs.gnu.org; Tue, 01 Sep 2020 19:15:07 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:40116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDFUV-0000Jb-VF for 26661@debbugs.gnu.org; Tue, 01 Sep 2020 19:15:05 -0400 Received: by mail-ej1-f68.google.com with SMTP id z22so3987569ejl.7 for <26661@debbugs.gnu.org>; Tue, 01 Sep 2020 16:15:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=ou8P0OzucjbS8xDE3/yImblnux6daC7rhNzkl9/hU4E=; b=EIA4zzSeZhPZzqmYg2S1sA9j7R4w/CES9OGf3C7rbiwyaBCZHsjlwXRZtcgT150LFe 7lKawQRebNfM7gaaKZDa6fQTR9cea0cLsPe1LMpEJ+iL7ktlvfONTGTfJ9IASFvZhbFt krMTIq91niDHq/owFg+DlvpzCdQzZ0i6j7bsWmEDj7tplWJM84SBOHf+qV33OMfg/OxN IoM/p/RjCjd3CiMFLZ0lmgClpkgKeu/b7Swzc+RyyiuTtax0IFieto1qCR6tE/ujWlCt KWL0QqvcWoMOjxxxiJDXnMtKVhrPFFJ+OYqenWdpVBE6XXtOjRF6ZpnDPkV00Ve9+04C 08WA== X-Gm-Message-State: AOAM5300BqtEX5jn7+idkyz+oWTxgp8Cl8Ex31K0/vwMmso9J1QorrCF XwTUh6Z2obHSvbafOTY2EgIgbCys72iPvQ+fb0k= X-Google-Smtp-Source: ABdhPJxyVrVzZoPYyl4nzz1o880w08rTkje+RTzJB3H8KZ4AbFYkDnCPTkFCIg71yP++l7wOaqxWARQ/XLD5CfH7zeE= X-Received: by 2002:a17:906:bc52:: with SMTP id s18mr3488226ejv.398.1599002097993; Tue, 01 Sep 2020 16:14:57 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 1 Sep 2020 16:14:57 -0700 From: Stefan Kangas In-Reply-To: =?UTF-8?B?PDg3OHRtb3hkbm8uZnNmQGppZGFubmkub3JnPiAoIuepjeS4ueWwvCBEYW4gSmFj?= =?UTF-8?B?b2Jzb24iJ3MgbWVzc2FnZSBvZiAiV2VkLCAyNiBBcHIgMjAxNyAwNzozNjo1OSArMDgwMCIp?= References: <878tmoxdno.fsf@jidanni.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 1 Sep 2020 16:14:57 -0700 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 26661 + notabug wontfix close 26661 thanks =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > M-x compile prompt, > Compile command: cat -- > > M-x shell, > $ cat -- > > etc. etc. > should all use bash-completion ! > > If the user has it turned on in his shell, emacs should recognize it. > https://www.google.com/search?q=3Dbash-completion+emacs Note that `shell' already supports pcomplete, which extends to `compile' (and `shell-command', etc.) AFAICT. Try typing: M-x compile RET make SPC TAB and enjoy... I'm also not exactly sure how integrating bash completion with Emacs would work. Bash completion consists of a number of highly bash-specific scripts. It would take significant effort to write an Emacs parser for them. It seems like a better idea for people to spend time on making pcomplete extensions for more commands. But that would be outside the scope of this feature request, I think. I'm therefore closing this bug report. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 02 18:10:41 2020 Received: (at 26661) by debbugs.gnu.org; 2 Sep 2020 22:10:41 +0000 Received: from localhost ([127.0.0.1]:60993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDaxk-0007Hx-Qx for submit@debbugs.gnu.org; Wed, 02 Sep 2020 18:10:41 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:54930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDaxh-0007Hh-Aw for 26661@debbugs.gnu.org; Wed, 02 Sep 2020 18:10:39 -0400 Received: by mail-wm1-f44.google.com with SMTP id s13so844472wmh.4 for <26661@debbugs.gnu.org>; Wed, 02 Sep 2020 15:10:37 -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=L1QMfHSk1cUTezj/b3jUR5FxwYPxdYt+BznkFuOhgGQ=; b=uQUi376gkqFyG6xSqfMRXpyyuotfEiBu0KTvP9GremQvgWmDu0JiPR5q77wumUgHvq gDnL0ECwrzDAl+3XkRygx+XdC8x2Jp/ecvN3Fk7iN9swn0pawNaNwGbu4a8fIZ1Nnksi Vz9xrd69MUBu4pApYDrzve9KvC+MaOUai1dvkaLEjuYdYH+z3ZsjxKd0ILjMimbLCMMd JtpkTcX88eyFiQbah2PzS7rquVmACBSjNXDFNoTWfgcx78ucaWb2GPtvj+su/qXL7XyL PtNXlYGwXUWRjNDpvhy4jSSDkcyaNc8aV8InKayqgFs37Fdu1oxnS/W9fPCGxKIaPaYL EJdQ== 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=L1QMfHSk1cUTezj/b3jUR5FxwYPxdYt+BznkFuOhgGQ=; b=lcHjUjlfRi5A4AgrLptcOtkp5ZY6x3qQjNcBWwkCHPWQTmyOHhU8Enmp6fYw6v0gb9 yMYN1fuubAF6NQWU2VZvJEQ42RPsUJlthYhso8X2s3aTPAutz66HHsDb5WqO00Q1YKYz hEs2++dHxML8Zd299rCwhLhGI58uvR3LjTSS8rgeIXNjkerwh9ZKAVK78e8fiKpk8gkj jIBmk+ySnFao5UXHGoLpSPP/BcjqdQ3xRuwSyeEHRRz9bY1VoGz406+S6UgRNeEwhXaK i/T9VG1NcYTgtruFmorAVJBuHEt+OrVBEqwWYW9QetjVIKXmoPT5sNzP5qBqA0mtDU5j D1uQ== X-Gm-Message-State: AOAM533aZi1mKmzegHAsRAGvGD4P7xEcngR7fhtQ2RR6qXlXIPV3I7lc VaKDmKUBfwNZJmzgt6FG3XoJEuI178+GQQ== X-Google-Smtp-Source: ABdhPJyDsL8fo5olvYmMMMLZcaokSPhC4Clttw+aAFSpcFnUPklQwpqVMqAqTY3LXeAK8qbIKjMn+A== X-Received: by 2002:a7b:c2aa:: with SMTP id c10mr243938wmk.86.1599084631088; Wed, 02 Sep 2020 15:10:31 -0700 (PDT) Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id m3sm1439977wmb.26.2020.09.02.15.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 15:10:30 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Stefan Kangas Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! References: <878tmoxdno.fsf@jidanni.org> Date: Thu, 03 Sep 2020 00:10:29 +0200 In-Reply-To: (Stefan Kangas's message of "Tue, 1 Sep 2020 16:14:57 -0700") Message-ID: <87h7sf6d9m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > I'm also not exactly sure how integrating bash completion with Emacs > would work. Bash completion consists of a number of highly > bash-specific scripts. It would take significant effort to write an > Emacs parser for them. > > It seems like a better idea for people to spend time on making pcomplete > extensions for more commands. But that would be outside the scope of > this feature request, I think. Out of curiosity, couldn't shell-mode (and M-x compile et al.) do what python-mode does, i.e. ask the interpreter's "completion API" for candidates when the user hits TAB? I think that's what the "bash-completion" package from MELPA does[1]; this approach would allow Emacs to leverage Bash's programmable completion with no special support for specific commands. (Apologies if I've misunderstood something, I've only very quickly glanced at python.el and bash-completion's internals.) [1] https://raw.githubusercontent.com/szermatt/emacs-bash-completion/master/bash-completion.el See e.g. bash-completion--setup-bash-common which runs "complete -p". From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 02 18:34:08 2020 Received: (at 26661) by debbugs.gnu.org; 2 Sep 2020 22:34:08 +0000 Received: from localhost ([127.0.0.1]:32793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDbKS-0007rt-6P for submit@debbugs.gnu.org; Wed, 02 Sep 2020 18:34:08 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDbKQ-0007rU-T3 for 26661@debbugs.gnu.org; Wed, 02 Sep 2020 18:34:07 -0400 Received: by mail-ed1-f68.google.com with SMTP id n22so625400edt.4 for <26661@debbugs.gnu.org>; Wed, 02 Sep 2020 15:34:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=YcSerjk3nWw9m5Sn8rWgc3kB6o+D3mZHxz8UEvefqX0=; b=L9C4GR5IHp7z1HGtGM3JhWKod4gI9OhFUEnCWaCFnXuNgFPi01K2maAD8EiWBV8w0a Hmz9VjdscPaArIEMFwZAgI2r9ejKyPzzGkvj/oro7hxUlxcq6IVeD+bsxXqdvvM9EYO2 z08MzihLeLYOznZ6ANt7R2tZWDWunu0N1u2WPqg66bqLVBb+PyqhiGY3Red7fPHLMgv/ 2t4DUmFFgRosm7tPOzuE5W9Lll+mVGauderC+uaiVovd05kNkfh6lh9Z2EEdsLcN2QYy FLB2ksz8hA0Gq89wVpdfO1XG8lvwkF4TXnrfBjElLhmKVhXXKly7qNiI9l3os3WfvicR m8FA== X-Gm-Message-State: AOAM531IhvYysjXageS2qlnRzyr9z+7usy6uewr7+EmjiEckqXTmBB8o QIFFFuopVAfGCTTqr3CtxU1aSzA08mpSuvD4gAQ= X-Google-Smtp-Source: ABdhPJxpIuaPLS2x31ZH1Ei1JSZd8jbDAEcSi1cKR8PM+P7bF8M8ctI5pYXh69ap0dDbwWZ9AYfsHUv/Aa0/kkCqbUs= X-Received: by 2002:aa7:c0d5:: with SMTP id j21mr55402edp.259.1599086041011; Wed, 02 Sep 2020 15:34:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 2 Sep 2020 18:34:00 -0400 From: Stefan Kangas In-Reply-To: <87h7sf6d9m.fsf@gmail.com> References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> MIME-Version: 1.0 Date: Wed, 2 Sep 2020 18:34:00 -0400 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) K=C3=A9vin Le Gouguec writes: > Out of curiosity, couldn't shell-mode (and M-x compile et al.) do what > python-mode does, i.e. ask the interpreter's "completion API" for > candidates when the user hits TAB? > > I think that's what the "bash-completion" package from MELPA does[1]; > this approach would allow Emacs to leverage Bash's programmable > completion with no special support for specific commands. > > > (Apologies if I've misunderstood something, I've only very quickly > glanced at python.el and bash-completion's internals.) > > > [1] https://raw.githubusercontent.com/szermatt/emacs-bash-completion/mast= er/bash-completion.el > > See e.g. bash-completion--setup-bash-common which runs "complete -p". Interesting, I didn't know about that package. I tested it, and it seems to do the job. 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. Also, I doubt that it could ever be as powerful as pcomplete. My preference is that for this use-case we point users to use the third-party package, but I guess YMMV. Any other opinions? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 04 07:05:49 2020 Received: (at 26661) by debbugs.gnu.org; 4 Sep 2020 11:05:49 +0000 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 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 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) 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) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Stefan Kangas Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> Date: Fri, 04 Sep 2020 13:05:38 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 2 Sep 2020 18:34:00 -0400") Message-ID: <87k0x9by4d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 04 09:28:58 2020 Received: (at 26661) by debbugs.gnu.org; 4 Sep 2020 13:28:58 +0000 Received: from localhost ([127.0.0.1]:38008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEBly-0003Mj-7J for submit@debbugs.gnu.org; Fri, 04 Sep 2020 09:28:58 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:37405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEBlw-0003MP-Jw for 26661@debbugs.gnu.org; Fri, 04 Sep 2020 09:28:56 -0400 Received: by mail-ej1-f68.google.com with SMTP id nw23so8612652ejb.4 for <26661@debbugs.gnu.org>; Fri, 04 Sep 2020 06:28:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=7xw4TN226XdwxIhS471f05RShovoJgyOTHLzKcX58Bo=; b=cwzJM85jf9F7Ds0qGplO75fu0Ysz86mK9u7CGL2E7x0t7tVwZo5JRnAurp9FXmoiqY 5DuGUctV4AWCygfRFM/zksqMlOARECS8zgm8BnyHtoxV3GVtJAGjALfIfo96Oiq2c+jU lPuXMOdm/+vuQysJxv6giBOfZntmwPNuQtggRyaU2sVNmvgTe30NHmHpXVHTON6nY5Sa ayfsbRny5aqhQuZwISmRV2djBHPXtl243piVZpKJn9do8Ge1yI7B5wbXsxstYESrXTpB KZmXtynfFviOxwIgCsa7QXxgGqZenQedaQVyj6qOYgmQlJ5Yq+xo7S6SZ64yHUqZlPm4 jQMw== X-Gm-Message-State: AOAM533e5BdzRbzEpBSbDobhssN0H54X6dePKrF0zP4Oxi90KT5vQw3w tO3PeWEbpjP4N2SVJDfuRSJEIUfr7u2ZIlNEpqE= X-Google-Smtp-Source: ABdhPJyVxwdzarg052wgF65sdoYhatfdupbraeqtSqKkD3KAnZOnR7YZVXtdpT813W5925gwmRC6yeIu1xe1tF+n1gQ= X-Received: by 2002:a17:906:a88a:: with SMTP id ha10mr7867479ejb.532.1599226130873; Fri, 04 Sep 2020 06:28:50 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 4 Sep 2020 13:28:49 +0000 From: Stefan Kangas In-Reply-To: <87k0x9by4d.fsf@gmail.com> References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> <87k0x9by4d.fsf@gmail.com> MIME-Version: 1.0 Date: Fri, 4 Sep 2020 13:28:49 +0000 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) reopen 26661 tags 26661 - notabug wontfix thanks K=C3=A9vin Le Gouguec writes: > 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. [...] > I just think the benefit/cost ratio of enabling native Bash > completions by default seems high. OK, those are indeed compelling arguments, so I'm re-opening the bug report. Maybe we could convince the authors of the bash-completion package to assign their copyright to the FSF. From unknown Sun Jun 15 08:25:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Fri, 04 Sep 2020 13:29:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 21 13:06:33 2020 Received: (at 26661) by debbugs.gnu.org; 21 Oct 2020 17:06:33 +0000 Received: from localhost ([127.0.0.1]:50396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVHZJ-0007NU-AL for submit@debbugs.gnu.org; Wed, 21 Oct 2020 13:06:33 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVHZH-0007NH-CV for 26661@debbugs.gnu.org; Wed, 21 Oct 2020 13:06:32 -0400 Received: by mail-lj1-f194.google.com with SMTP id a4so3369740lji.12 for <26661@debbugs.gnu.org>; Wed, 21 Oct 2020 10:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3v57DC4FUFkM6lqlAwGJ2Di+JD6kcaVL/XUoKPqr1dw=; b=dU8githB2OJTNhmcCA5AO2KAfV9mzT7DdDN7c7s7W7OK0yZJu/SMWYyTaQWxIDbukm nbDPf1Kcp+OtoJmFFUB+xDes/PSSt/1kVyem7Zff5iYXBeeSLOkQMf8tCnxNGFinf0Fr UmLyC5Xtc52d8X+udx+bCeMiMA/g0YHOB+2p9vxV0/gNKq6fLLO1b8rH9rTOQmA2A+dJ 99Ef5WF4vP50K2mlYoTaFU2Dt991+ixClYgSFkfKWRaRONxuyVwow3E3JEwC8Zm85Wxj yBWiBOWPkL7uVPkWnqcYIHnZ1NYJa9nMZV3pTm+KcdYqL/Ut34l0EjcTNE74R1Y1+BgL 2CfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3v57DC4FUFkM6lqlAwGJ2Di+JD6kcaVL/XUoKPqr1dw=; b=dLGKcjftS5rrbB+TLOXlyDr2W6lmQShReFmv/iyGPgVVx0y7wQecGCRmBPbhVv/Gb+ TH16vGEwjguNudQPi3Z8rY0Ap8qzG5nX408pGh+gXzXlXpJixxjWoFL2RfekCrT2cRUq mA72XCphlS3SfzLOSnA9g/0BnH6aF01XRepLXOoEKZtC2HhnnqfBHrfW8av+XaGZWlgU /5ZWRYbPK/9VYmmSqnk6Of0+4NzFIwBSe1xsBbXRsii3d/cqEdX8TL/c/H4NbTXTlQ0l J80M9i10dZ4hVT2sDEl//fTz8DOGXArOpmReC0ZUr2Zwvk20ob7J5WRgHymXXpgTwX/b dZZQ== X-Gm-Message-State: AOAM531jVW8Cbl+w1YvCj7AX3qV7KwIwDG+kUwS/x7x4+Ef+fwqaD1NE Xn8znkf9pJ5mMoy66vz3t67IDKDPm/eNS+Q4/uU= X-Google-Smtp-Source: ABdhPJxWx+b9mfGGVb/oXlwjqpSowEIEl9Vs1Td6/gPkx/PWowP8CGgnB4zJ8PfJNIYvR7nPT1Waw3cQ0x131llr44I= X-Received: by 2002:a2e:83c9:: with SMTP id s9mr1751895ljh.168.1603299985146; Wed, 21 Oct 2020 10:06:25 -0700 (PDT) MIME-Version: 1.0 References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> <87k0x9by4d.fsf@gmail.com> In-Reply-To: From: Bhavin Gandhi Date: Wed, 21 Oct 2020 22:35:48 +0530 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: Stefan Kangas Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 26661 Cc: szermatt@gmx.net, 26661@debbugs.gnu.org, =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Fri, 4 Sep 2020 at 18:59, Stefan Kangas wrote: > > Maybe we could convince the authors of the bash-completion package to > assign their copyright to the FSF. > I reached out to the author of bash-completion over GitHub, they are willing to do that if there is enough interest. Adding them in CC. https://github.com/szermatt/emacs-bash-completion/issues/45#issuecomment-706671531 -- Warm Regards, Bhavin Gandhi (bhavin192) | https://geeksocket.in From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 21:16:14 2020 Received: (at 26661) by debbugs.gnu.org; 29 Oct 2020 01:16:14 +0000 Received: from localhost ([127.0.0.1]:51323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXwY1-0002vH-Vs for submit@debbugs.gnu.org; Wed, 28 Oct 2020 21:16:14 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:35955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXwXz-0002v3-Mt for 26661@debbugs.gnu.org; Wed, 28 Oct 2020 21:16:12 -0400 Received: by mail-ej1-f49.google.com with SMTP id w27so1596799ejb.3 for <26661@debbugs.gnu.org>; Wed, 28 Oct 2020 18:16:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=GjWYgVJArqRbMpiin7XjqnRFDTnx3Py0oJJ3wz6tQNU=; b=SoStUhwqXX4FHK1A3AdV1VEA+rfKheO9yHPYiPiMzj6qQhPs1xa1ddmGL8J3X8xsg/ kXX4ZoIYdHc5M4/hh/oSrK0qbKBkcls7zDKtoWTAN+q9eosXUrGgamnO737qvycXYY2g LJfMocMTZ8hC2QknW51T59MS3y0GIwZPy9zPyYORdyvJdMY2BUeCOCyknpx8QJrFH3VU 0pmPp2RROh+NPIQu9arRkcMlhkCAHoVJ/Usbl5cIRcqKK+xbAZX7SXPykFB2IV9XUMY7 l1ly5yfhBgnDBY7s3TIb6ck5QlPcs4IFfVWtiiq9OvPtVLUuwl1HuJC5BcJp1i4nSoKO LdnA== X-Gm-Message-State: AOAM5339qCl/vY91VPgMLeVqF62jxvPkQ1vFMzwsbx73DyS+w5CIllqd ZM77wZ2VqfCzrEQE2tiH8Rgx7gezCQl3BNaijc0= X-Google-Smtp-Source: ABdhPJwDZIBzePcxDxS9ZHNl2o9KQJCUTnzsqEkpka41LUJQvKNXOiZNvx4v2g7933zrrofyxlczS0xr+LVPnx4Yezk= X-Received: by 2002:a17:906:a40b:: with SMTP id l11mr1726059ejz.25.1603934166025; Wed, 28 Oct 2020 18:16:06 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 28 Oct 2020 18:16:05 -0700 From: Stefan Kangas In-Reply-To: References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> <87k0x9by4d.fsf@gmail.com> MIME-Version: 1.0 Date: Wed, 28 Oct 2020 18:16:05 -0700 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: Bhavin Gandhi Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26661 Cc: szermatt@gmx.net, 26661@debbugs.gnu.org, =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Bhavin Gandhi writes: > On Fri, 4 Sep 2020 at 18:59, Stefan Kangas wrote: >> >> Maybe we could convince the authors of the bash-completion package to >> assign their copyright to the FSF. > > I reached out to the author of bash-completion over GitHub, they are > willing to do that if there is enough interest. Adding them in CC. > > https://github.com/szermatt/emacs-bash-completion/issues/45#issuecomment-706671531 I found the comment on that page interesting: I have to say that I personally find bash-completion a bit hackish and fragile (by nature) to be something that'd come as part of standard Emacs, but that's something for Emacs maintainers to decide. So perhaps this should better be part of GNU ELPA for users that want it as optional behavior. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 02:32:00 2020 Received: (at 26661) by debbugs.gnu.org; 29 Oct 2020 06:32:00 +0000 Received: from localhost ([127.0.0.1]:51575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY1Tb-00023s-UN for submit@debbugs.gnu.org; Thu, 29 Oct 2020 02:32:00 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:55629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY1TZ-00023f-TT for 26661@debbugs.gnu.org; Thu, 29 Oct 2020 02:31:58 -0400 Received: by mail-wm1-f51.google.com with SMTP id a72so1307753wme.5 for <26661@debbugs.gnu.org>; Wed, 28 Oct 2020 23:31:57 -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=PukeA//T7YCH7k3011Ck4auQ7IdC4CIVqPA51r4bJi8=; b=JZm9yCSu7VstZYlBIaGPS9uNhri3v6brAGTFZERshPJ8YqowHjvaDJCjT3vxVJGYhv S9biUpA4E3dmoynuts72CXCli8Ygc6P+Sf1YWJY/EXQkhuCVVKR+7oiW4qhkXkMvPT7a m4/bWtW+dsfDJ/EDJxaIRtMVgSDeWb1RILcNStI0KCowH4QtbuMyRJmmalgIbscE0Hrg lCrqvR6FSDWfX2eNIbF00JyJ0i0EHDzz72ptWCYPnf6T0jTBZ1QTmfnYlQOadSJQpklp JeJaQ3foq83OU/cQA9uapzBvnXUcE9U9l4Ag3CH6gszxM0A30ystLWlPOSiBzSyWB081 Dc4A== 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=PukeA//T7YCH7k3011Ck4auQ7IdC4CIVqPA51r4bJi8=; b=c4sd7NcInXFKH9LfOKl3KpmZsB/5hwd9R3thUOxFi/cDR8ZKDLtI2raT+ZlvwvnCHO qLGUbwLlLDCOI1iWgW4dRkiFz3gJFpPlKi4fifMuupE9xFiMFbZ5KNRoLqM6UvRtu5+T DMu70xioZjnxAcZ01iDUyV0OvSEWNe5qE2XNEdxVA/1CSgJxIgC79qUAnDgV+bftzVmD Otn0Md1pXt3e28gD7OYWeHyaDXbYLjROO+7YNuXrL/UhqfiVIwoTYuw2pHRjZ4dcbNuW 8qg7QNiC554BoUbsF/I/3lE3ItQ71NfMz8G6qxtz9QEJd8usP0heaLsr4OOBRsUBth5/ MnBA== X-Gm-Message-State: AOAM530T0iMqTTR1wycz6xo9M39yoEYCz9N704xLZ8yq5feRIC6qc9Fr xIBLyKeDkiPyiScjsBsz+eA= X-Google-Smtp-Source: ABdhPJzW3s6mWaizxzdSEA9PjKcsz4dSJjapgyhQkgqaPIOSdkWnTE1DJ5acGjLc+FAHHdn+WFiFsA== X-Received: by 2002:a05:600c:25a:: with SMTP id 26mr2537158wmj.39.1603953111920; Wed, 28 Oct 2020 23:31:51 -0700 (PDT) Received: from hirondell ([2a01:e0a:20e:d340:41b7:7b2e:4aab:4832]) by smtp.gmail.com with ESMTPSA id t1sm2507730wrs.48.2020.10.28.23.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 23:31:51 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Stefan Kangas Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> <87k0x9by4d.fsf@gmail.com> Date: Thu, 29 Oct 2020 07:31:49 +0100 In-Reply-To: (Stefan Kangas's message of "Wed, 28 Oct 2020 18:16:05 -0700") Message-ID: <878sbp4k6i.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, szermatt@gmx.net, Bhavin Gandhi , =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: >> https://github.com/szermatt/emacs-bash-completion/issues/45#issuecomment-706671531 > > I found the comment on that page interesting: > > I have to say that I personally find bash-completion a bit hackish > and fragile (by nature) to be something that'd come as part of > standard Emacs, but that's something for Emacs maintainers to decide. > > So perhaps this should better be part of GNU ELPA for users that want > it as optional behavior. I'd be interested in knowing what makes bash-completion inherently more hackish and fragile than say, python.el's native completion? AFAICT both essentially use a dedicated buffer to send completion queries to an inferior process. I may not have been thorough enough when reading either library's code though, so maybe I missed something. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 14:15:38 2020 Received: (at 26661) by debbugs.gnu.org; 29 Oct 2020 18:15:38 +0000 Received: from localhost ([127.0.0.1]:54927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYCSY-0003U9-4n for submit@debbugs.gnu.org; Thu, 29 Oct 2020 14:15:38 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:33626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYCSW-0003Tk-G2 for 26661@debbugs.gnu.org; Thu, 29 Oct 2020 14:15:36 -0400 Received: by mail-lf1-f50.google.com with SMTP id l2so4555825lfk.0 for <26661@debbugs.gnu.org>; Thu, 29 Oct 2020 11:15:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=AABjFVVQe8vS0E/Z1CaKeqNth4Kr32wJn5meeC2N5+A=; b=I0oZw3yzP/UEJvnFdCBr23Fy52c4PnHCQLAZfYEqWkd8vbm6sPCOX5zZHarwhiv2nS U0QtFQbP8yWxbzjpG4h21ZH/X6OirqJixplq6rVifta+H/6tMnMArX6oVE81r/q0j0nZ oaE/EBq1+GTgJ7SQf9Y0QVGedA4bIUduWBTWSTj+HLYgVLP6OxmM93FeksuCOFgZQe5Q 5/CVDxKTeW8g4MZKT4fN2hKDBLOfjyA6+L/1pXFCJODfFVWzvGZOgmQycNx7cr4Dbf2k Jhs+wjCblb4X8IMlYMF+aOGpnmH5DWYjYnmqUDiVFgEhzgEcvV1SCETYKm9+Er1iJSV/ HRDw== X-Gm-Message-State: AOAM533+JY0lsf4dHGcHGBl3hCj8w5j9W4AyC03ZCGdMFFNoTjmFKBfW rwtieHrGuIABN3yxRvz25pId+Xe0MnFgh5CvtFw= X-Google-Smtp-Source: ABdhPJxlUBO4mJZETOyGRy8eQkSY67rxBTfgFcQZqq/hq9s2XFD51M0GOBdYdNMCmt7uMqxlVYHCbQ5dDZDpZGCt4E8= X-Received: by 2002:a19:f60c:: with SMTP id x12mr1956066lfe.389.1603995330814; Thu, 29 Oct 2020 11:15:30 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 29 Oct 2020 11:15:30 -0700 From: Stefan Kangas In-Reply-To: <878sbp4k6i.fsf@gmail.com> References: <878tmoxdno.fsf@jidanni.org> <87h7sf6d9m.fsf@gmail.com> <87k0x9by4d.fsf@gmail.com> <878sbp4k6i.fsf@gmail.com> MIME-Version: 1.0 Date: Thu, 29 Oct 2020 11:15:30 -0700 Message-ID: Subject: Re: bug#26661: compile, shell etc. should use bash-completion ! To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26661 Cc: 26661@debbugs.gnu.org, szermatt@gmx.net, Bhavin Gandhi , =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) K=C3=A9vin Le Gouguec writes: > Stefan Kangas writes: > >>> https://github.com/szermatt/emacs-bash-completion/issues/45#issuecommen= t-706671531 >> >> I found the comment on that page interesting: >> >> I have to say that I personally find bash-completion a bit hackish >> and fragile (by nature) to be something that'd come as part of >> standard Emacs, but that's something for Emacs maintainers to decide. >> >> So perhaps this should better be part of GNU ELPA for users that want >> it as optional behavior. > > I'd be interested in knowing what makes bash-completion inherently more > hackish and fragile than say, python.el's native completion? AFAICT > both essentially use a dedicated buffer to send completion queries to an > inferior process. The comparison should rather be to the existing pcomplete support, I think. I suppose it's hackish and fragile because it can break at any time due to third-party changes outside of our control. But you're likely to get a better answer from the author of the emacs-bash-completion package, who wrote that remark in the first place.