From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: irenezerafa Newsgroups: gmane.emacs.bugs Subject: bug#51819: The Senselessness of Emacs Company Mode Date: Tue, 16 Nov 2021 19:22:51 +0000 Message-ID: References: <87k0hbfryj.fsf@gnus.org> Reply-To: irenezerafa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 51819@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 16 20:24:12 2021 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 1mn43w-0006PG-6a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Nov 2021 20:24:12 +0100 Original-Received: from localhost ([::1]:52414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn43v-000130-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Nov 2021 14:24:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn43n-00012r-7s for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 14:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn43m-00033f-Vz for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 14:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn43m-0001IW-Su for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 14:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: irenezerafa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Nov 2021 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 51819-submit@debbugs.gnu.org id=B51819.16370905854817 (code B ref 51819); Tue, 16 Nov 2021 19:24:02 +0000 Original-Received: (at 51819) by debbugs.gnu.org; 16 Nov 2021 19:23:05 +0000 Original-Received: from localhost ([127.0.0.1]:59267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn42q-0001Fd-E7 for submit@debbugs.gnu.org; Tue, 16 Nov 2021 14:23:04 -0500 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:49434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn42k-0001Ea-KY for 51819@debbugs.gnu.org; Tue, 16 Nov 2021 14:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637090571; bh=B3RZa+8fVCAO4qNsRj6Db/NtCW4b+HCKYxwgvtBsw6Y=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=mdmJL9/MDMTvVrYlKtNLUxPPOACVslm+GVuXsMkmbd/cfUjEKWcw2M3ekE5upySEW wi536q49jyMFq7JC5TakzguqTeIuRXTW23veie0GyTf/s4L/hf2tjP7wfRh5a7zGnd wgGII3jOgG5FobaXLhYBtypIHsjoTfuaQab79qZ0= In-Reply-To: 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:220147 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Monday, November 15th, 2021 at 6:51 AM, Carlos Pita wrote: > Lars Ingebrigtsen larsi@gnus.org writes: > > > irenezerafa irenezerafa@protonmail.com writes: > > > > > I am installing Company Mode so I can use auto completion. Let me > > > > > > show you how beautiful that is using the emacs way. For most people, > > > > > > they do "M-x list-packages" and search for "company". They get about > > > > > > 70 matches for "company-mode" which add compatibility for other modes= . > > > > I think most people are able to figure out that they should add the > > > > package called "company" if they want to install Company. (It's > > > > conveniently listed first among the packages that are Company-related.) > > Moreover, there is little gain in using company-specific extensions > > these days. Most completing-read frameworks offer completion-at-point > > compatibility, which inherits all the goodies from completing-read. And > > if you prefer an in-place popup install corfu which shows a child frame > > with zero extra config. Even company is moving more and more towards its > > capf backend. Maybe some extensions still require or greatly benefit > > from some company-specific protocol, but this is not the norm nowadays. > > I'm using a combo of fido-mode + corfu which, if I wanted, could be > > extended with consult, embark, marginalia, orderless, etc. I prefer to > > keep it small, but the beauty of the new "completion stack" is that the > > building blocks follow standard emacs protocols and are intercompatible > > (so it's completely fine to use any of them with icomplete/fido). This > > is all the configuration I need to get a "modern" completion experience: > > (setq completion-styles '(flex basic)) > > (icomplete-vertical-mode +1) > > (fido-mode +1) > > (corfu-global-mode +1) > > The only external dependency is the minimal, high-quality corfu > > extension. > > I understand the OP's frustration though, because this simplicity is not > a given but the result of an exhausting process of research and > refinement, there are a lot of options and (ill-)advice usually comes in > the form of installing yet another extension. One has to learn many > things that would be better not to know. I am pleased to see you understand my point, because the development genius= es can't. > One complaint I have is that icomplete doesn't offer a builtin > completion-at-point mode. Strictly, it offers one but it's rather broken > (see my report #51575). I believe it would be easy to channel > completion-at-point to the minibuffer as other extensions more or less > trivially do, although this is not compatible with LSP servers. OTOH an > at-point popup is likely harder to implement and both overlays and child > frames have their own drawbacks (again, see #51575). In any case, a > builtin solution is not scifi at this point and, since the community is > already converging around core protocols, I see this as an opportunity > to greatly simplify the completion story. > > Best regards, > > Carlos