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: Wed, 17 Nov 2021 00:15:16 +0000 Message-ID: References: <87k0hbfryj.fsf@gnus.org> <3HH5OTjwiEa88ERSj68bCu9Csjgz9OYjUG6L5IyHtmwPK1MKtzmNTPuOGVuit4Rr8XddlRKtCDNBv1vRhuBFEd2qUCsJP268H7lADLShZ7w=@protonmail.com> <3MrKAAqmjrgofaJ20S377p52aXYjeL5kbOXXzH159e3j47V1KzE3DzcNvCKZHROcBLM11jsxCtLQpuV1-DWH2O-Fl9tmIOwqEpea_TTVrQk=@protonmail.com> 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="20769"; 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 Wed Nov 17 01:16:13 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 1mn8cW-0005BF-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 01:16:12 +0100 Original-Received: from localhost ([::1]:38462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn8cU-0001Vg-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Nov 2021 19:16:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn8cM-0001Uv-K6 for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 19:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn8cM-0004lR-BM for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 19:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn8cM-0000wo-4D for bug-gnu-emacs@gnu.org; Tue, 16 Nov 2021 19:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: irenezerafa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2021 00:16: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.16371081273566 (code B ref 51819); Wed, 17 Nov 2021 00:16:02 +0000 Original-Received: (at 51819) by debbugs.gnu.org; 17 Nov 2021 00:15:27 +0000 Original-Received: from localhost ([127.0.0.1]:59442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn8bn-0000vP-5M for submit@debbugs.gnu.org; Tue, 16 Nov 2021 19:15:27 -0500 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:56121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn8bl-0000v7-8o for 51819@debbugs.gnu.org; Tue, 16 Nov 2021 19:15:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637108118; bh=JXFJlJ0/C3YccZTgpVCW7nuE4f7wkA6Kj0ZspTLCjsY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=lCDh+l0FRGrcxDpC0fJXPdmfV8m5jUEWfFJF058FmoDweFwCLydI4HVEiKTUZfAZ7 +3qGVchoCobbGwEaOfrCfIrRxhNIXYBb9iwaEnh/FkIbH/G0vDc6Ozh5MT5JSwRX4c bamh2AKTNsGa4THPSDYGJY34ReATjlTelEmE2+QI= In-Reply-To: <3MrKAAqmjrgofaJ20S377p52aXYjeL5kbOXXzH159e3j47V1KzE3DzcNvCKZHROcBLM11jsxCtLQpuV1-DWH2O-Fl9tmIOwqEpea_TTVrQk=@protonmail.com> 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:220167 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 Tuesday, November 16th, 2021 at 11:24 PM, irenezerafa wrote: > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > > On Tuesday, November 16th, 2021 at 10:48 PM, Carlos Pita carlosjosepita2@= gmail.com wrote: > > > > I did not know this. Thought company is the OOTB one, than an externa= l thing. > > > > > > How does one use the auto-completion you are discussing? > > > > This is described in the manual: > > > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Symbol-Comple= tion.html > > > Be aware that it's not a fancy popup that updates itself while you're > > > > typing, instead it's more like what you get in bash. Nevertheless: > > It is the mini-buffer thing. It is not so easy to go through and make the= selections > > though. Emacs cam be quite straining on the fingers. > > > - The protocol is already there, when you install company most of the > > > > things work OOTB because of the core protocol. Of course if company > > > > adds extra features on top of it there is no way this could be > > > > supported without installing further company-.* extensions as the o= nes > > > > you listed at the top, but there is ample consensus not to do > > > > that without good reason and alternatives have already emerged with > > > > core APIs full-compatibility as a strong guiding principle. I > > > > encourage you to visit the projects in https://github.com/minad/, > > > > especially vertico, consult, embark, marginalia and corfu. You don'= t > > > > need to install anything, just read about them and decide, you can > > > > pick only the parts that you're interested in. I've only installed > > > > corfu for now because I find the child frame nicer and more > > > > convenient than the default UI, but I could easily live without > > > > that. > > > - The protocol is already very customizable without installing > > > > anything else. See for example the variable completion-styles. You = can > > > > set it to flex for fuzzy matching. You mentioned you're using > > > > orderless: it also leverages this core mechanism in order to provid= e > > > > a different completion strategy. > > > So, as you can see, there is more here than you first thought, it's > > not really "haphazard evolution". > > > > > > once something becomes a fundamental functionality (e.g. completion), > > > > > > evolution should move consciously after some time. > > > I hope I've convinced you this is indeed what's happening. Indeed, > > > > most of what I've described has been there for many many years. > > Am glad to hear it. From about Emacs 28 things are quite better than > > distributions whose repositories still ship with Emacs 25 or earlier. > > > > I use ivy, company and orderless. > > > ivy implements its own protocols, be aware that there is a world of > > > > ivy-.* stuff too. Also be aware that some of the packages in > > > > https://github.com/minad/ are alternatives to ivy (it's not another > > > > case of NIH though, because the idea is to stick to the roots for > > > > good). > > > ivy can do completion-at-point too: > > > https://www.reddit.com/r/emacs/comments/57fnar/ivy_completion_at_point_= in_an_overlay/ > > > Maybe that's enough for your needs so you don't have to install anythin= g else. > > > > Best regards, > > I am very interested in completion of words as I write documents. Althoug= h coding > related stuff is also handy. I customarily have key bindings to switch be= tween orderless, > ivy, company. All depending on the work at the time. > > Thanks Carlos Dear Carlos, what is the best completion there is that is immediately avail= able after installing emacs. I recommend a completion implementation that is av= ailable automatically by default, but which uses a popup window as provided by eith= er auto-complete or company-mode as a start. There are significant advantages with completion popups which go beyond the= just fancy. Popups are more productive from the rapidity of completion point of view. Another aspect is to improve the ease by which I can include the equivalent= to running functions by including them in the menu-bar, in contrast to keybinding comm= ands. As one writes more functions, it becomes more difficult to remember tho key= bindings one defined for each user-defined functionality.