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: Mon, 30 Oct 2023 13:01:12 +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="13686"; 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 14:02:48 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 1qxRuo-0003Jt-Gr for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Oct 2023 14:02:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxRtm-0000c6-5s; Mon, 30 Oct 2023 09:01:42 -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 1qxRtd-0000ZK-OQ for emacs-devel@gnu.org; Mon, 30 Oct 2023 09:01:36 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxRtX-0006qi-13; Mon, 30 Oct 2023 09:01:29 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-507c5249d55so6424336e87.3; Mon, 30 Oct 2023 06:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698670884; x=1699275684; 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=DO3kuD27IvCq5H3li/7JVJMmPEvIC0GsKvRpej46NYg=; b=EsOLR983vsYl3zsLylt1vtTgVGl6xsqE1iXIPeCilS+qZfOg14mRROTDPTTdHuNT4R QBea8Ar1JZynIaiGhlZEN24cEUo9xVnBdwKYwbq4L25W6FoBQ5iDbC0ixkNzkalYsyOb iEiDoOJQtHfZcpMB+fzTAkMlF7qv8ygA22/6qi/HMt8kA8UvXCsnS1V9E2RquOYHoFyx SEXJ8Qc3eLLcHyJrqHagbRFTuT49mCQaH/slnrSZ6JrJ0JfRs/Izdlx8Zbp5mBi1k5HK OeidJ//YCLd68Pt5evx8mrfZxiSCETnkXtStmen49JtCV02WcsPGx9gWvDYN+ZwbqYvm 0BLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698670884; x=1699275684; 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=DO3kuD27IvCq5H3li/7JVJMmPEvIC0GsKvRpej46NYg=; b=Yi7RVxkIUSATdZZ/ZZ9mK1erFBqFcl0qO6ppcetPthD+HAqWnW6nkzHK55PK59uDXw uDmIqpHpzIp0Nf15dKN4+vQowIVDt84b2BjxHvyPTYFl2lhXQ+oIgpdpjjTQkXjD/ThO +jok1y1UOYzrlGBBJDa+Gfb82PyTzO5R93UrsdlL/uAolAlI4ql372Pbdh93fHV+UDuF FwDYAgdDsQpBFM5O65MSlTkaGkNO+1FSHloH3Td6aFD1GaLZKdzvAc95w40LUtu8ongH Wq6h/lfTOKosy+zyZtZhs7zU+WnDst6JJv+PKCiA+SZIEo3t3coCvEnu8pYlajjPdKLM jSXw== X-Gm-Message-State: AOJu0Yyw808vGs3oxUqRPqhYt7Bk/tTN/HKfLi6+okhej5HJY/bu+Cl+ Hs8afozZm3TDL8bE6fz87iECV37cuIYjFOX9g2s= X-Google-Smtp-Source: AGHT+IGA5osBNWlPEFIk/xkVe+1S6qdK/LyMOxQXUlPFIBbegM3R03LyluEwtyxP81+WVdxqjTS6tWpZJoR9nuxeznE= X-Received: by 2002:a19:381d:0:b0:4ff:a8c6:d1aa with SMTP id f29-20020a19381d000000b004ffa8c6d1aamr6682716lfa.48.1698670884265; Mon, 30 Oct 2023 06:01:24 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x135.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:311992 Archived-At: On Mon, Oct 30, 2023 at 12:42=E2=80=AFPM Alexander Adolf wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > > 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 backen= d > > 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)) > > Indeed. But the complexity I was intending to refer to came with > integrating company with other 3rd party packages. Because of comapny's > age (it predates some of Emacs's current completion infrastructure), > many 3rd party packages have specific company adaptation code. As > packages and Emacs evolve, an adaptation or two tend to break with each > update. This kept my company config growing and growing. But you don't _have_ to use that integrations and third party packages, do you? You used it because you wanted to. As far as I understand if you replaced all your complicated setup with that one line I gave you, Company works with exactly the same things Corfu does (CAPF completion backends, acronym for completion-at-point-functions). We should not compare apples to oranges and make decisions based on that. Jo=C3=A3o