From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Inline completion preview Date: Sun, 29 Oct 2023 23:29:17 +0000 Message-ID: References: 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="39889"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eshel Yaron , Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: Alexander Adolf Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 30 00:27:26 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qxFBl-000AAp-Tk for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Oct 2023 00:27:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxFAy-0005BM-NS; Sun, 29 Oct 2023 19:26:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxFAv-0005Ay-FX for emacs-devel@gnu.org; Sun, 29 Oct 2023 19:26:33 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxFAt-0004Wa-Ov; Sun, 29 Oct 2023 19:26:33 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50910346557so1721433e87.1; Sun, 29 Oct 2023 16:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698621989; x=1699226789; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g1GnGGz2ofLOgDiJLODvvCDvbP/NoFe5vCXQQcgNLqc=; b=iaS+oTLPaGtALY59bpKqzEgRgytDjVXKCM4cL/dvC11BCj/4HcPOKEaPfojHyMFufX kbddYruOx7INfclm/w8v+yqccvA04fE3YTQ8G8WVkwDhnTX8BKvbU5dMMZlwYUY6dX43 glvxrHY+P2g6BEghib1SS1q2Bcr07fpNp5UH5t0NX96kCxweT5fMjc90IHkiu7CmeVPd wKxawP5dxq0clnrDimwJoccq1q8TbQqFbiAdvkZp5VtIbOQZOYXy7NDEvBdrslvJ/MYf vntTL/EheUDN/x6QMshugyjPGwKJ0Z0wS7eNiYMs7TO/BMA1sNCamUIprbeuMNv9Dukh CyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698621989; x=1699226789; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g1GnGGz2ofLOgDiJLODvvCDvbP/NoFe5vCXQQcgNLqc=; b=rz4WKux9W0p3EN2Yfh/WJT+g5WiIBM/9aCDaczFpGHZFwzqAjAoJmLj0p5A/cbyLF2 Te6b1nPl8eN1XKTfOg+QHeR0wKJzi9lWhinoEsuvd8cZiN1ye+0I6IPPqpOJVnJUsnQT pNxU3qsA4Fp+D/EiQdqCz6pH0AFhyi3dG5Gy5l60v6u35lwUpdM+KkTkiWiMU6uJQ3QQ Fb23G3oN+/9d+6Kpa6Q2TmI0BgK2IkDtU5lSUc12Mr6n9sJd0U/S+Q+RbCggkbiqJ5tH DoG4k2eFleUp305urZiMo7VjBaw1ZTKQgSWqtx/LTFWXJWznJxP/W02FHMTuPqSM13g5 yVBQ== X-Gm-Message-State: AOJu0YxOPThYxw78QH78MffEDQaWVSYekkCXPKEItvYmbyNJyZY1Yr9b MYU0b/BwIvoYyfyFZyeQ3C55Smxca4ApbW9sk2tlVFZE79ISKw== X-Google-Smtp-Source: AGHT+IE1Fh41kB127oFCvYA72l8uxY8uEVg9bz0GTG/W9BFDc6mSwoXds32SRo/QY31/UpU9TU2BLHCEoyj2rTVJtUw= X-Received: by 2002:a05:6512:23a8:b0:504:3807:22a4 with SMTP id c40-20020a05651223a800b00504380722a4mr7215945lfv.23.1698621988366; Sun, 29 Oct 2023 16:26:28 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311979 Archived-At: On Sun, Oct 29, 2023 at 4:25=E2=80=AFPM Alexander Adolf wrote: > > Company provides an ecosystem of its own, and that can make one=E2=80=99s= setup more complicated. I agree it provides more abstractions then are essential, but you don't have to use them. Eglot-managed buffers prefer the company-capf backend by default and it works fine just fine. So the "complicated setup" you're looking for might just be one line: (setq company-backends '(company-capf)) > I have moved to corfu, which fully builds on Emacs=E2=80=99s ecosystem, a= nd > have never looked back. company-capf is perfectly compatible with Emacs's completion functions as well. Corfu has known problems with Eglot, for example. As far I understand, the way to fix them (presumably) is based on an additional thing called "cape" which works by monkey patching Eglot's functions via advice, which I don't think is really elegant. Also company works on TTY Emacs out of the box, and I think Corfu doesn't. More stuff to add in. So, as I see it, with Company you get hassle free completion by customizing a way a bit of its functionality, whereas with Corfu you have to add stuff to your .emacs. As I see it, it's really Corfu that has the most complicated setup. Jo=C3=A3o