From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Inline completion preview Date: Wed, 1 Nov 2023 21:57:58 +0200 Message-ID: References: <2c15c71f-613d-ec61-774d-93e7696470eb@gutov.dev> <8ec6cab5d8104227fef6123b9c99f93a@condition-alpha.com> <8af5efc7-754a-111d-42d7-b875edbb6202@gutov.dev> <26ef9d21-9ab6-1cf5-005d-4ad2907169b5@gutov.dev> <1b835d98-30f7-e98d-3cd8-883eca50e462@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15566"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Juergen Fenn , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 01 20:59:52 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 1qyHNX-0003s6-Dv for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Nov 2023 20:59:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyHLr-0007b6-MJ; Wed, 01 Nov 2023 15:58:07 -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 1qyHLn-0007Y3-PP for emacs-devel@gnu.org; Wed, 01 Nov 2023 15:58:03 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qyHLl-00082Z-SJ for emacs-devel@gnu.org; Wed, 01 Nov 2023 15:58:03 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 215C95C01E8; Wed, 1 Nov 2023 15:58:01 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 01 Nov 2023 15:58:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698868681; x=1698955081; bh=3PJb9dHbu2tQajAUaOWsGrLeXpA1EALqDWV 4Amh+jUs=; b=JcEE8hlfwFWAlgJsnZ3NyKy/x/4HaR31wGIlZ+iZfHm3BV/4InM MkGlFF6rs7a6N0cQiPoA08FC7JEGNr2G2MAANFvnbEdWeqXY1QFLuLe5WNdeLdyl ScxL2beJ8qqBIIhv/9qDryzHqX+ebVx6RxqelYF2Z6a//OS6cn2yyhTD8gSBBWW5 fnbf/NYEyx9S+vCs1oO5pGEtLvDZ4jVyDzVB6lDFhVKtaVisoNYP17bKMzcZ9ALe VO/a+xQeXJpB0ydZYPtAlqDlXxnxroEvejq0Vz+udWNzEGspjXS1t2yMqkYu4flA 4D3JPqYmFqHTZJRNMlrih6jHiHcBM3o8I7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698868681; x= 1698955081; bh=3PJb9dHbu2tQajAUaOWsGrLeXpA1EALqDWV4Amh+jUs=; b=B ZHV6nr1pdhYiigI0aQe2TsmvJdtuY8Gj6EtjAZVl9VM55Fo6bUCSbOS1F5AOwuFy DLrum/YmB92UjijGpIwmji4BKImYscGx9yNUuG+bbXqXThnn1x4sJlWCR87VvsOI 9ZNa/9I7QhgeyhxK5ZXQm0A5jTq4T2qu+HfJs+yV5sjkWskLrem6LuOb+l74AcaU IzUJoC22Et+wafyzeDFycSo2PFAUGospToqJVvES7wt/r0sIbVT7lAxH/Jn2+oXn JhDObALSloJsV10a/E0ZGIrcfewpElKXVY261Fbph7oRN0qNbiN7i+I0jzIvQamA QGq6GXGKNq8gWcmkkre5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddtgedgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepfeejkeevvdefleefudefveegtedvveekledvtdeuteetfedufefgudeikeff ieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Nov 2023 15:58:00 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.28; envelope-from=dmitry@gutov.dev; helo=out4-smtp.messagingengine.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 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, NICE_REPLY_A=-3.777, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:312095 Archived-At: On 01/11/2023 16:07, Juergen Fenn wrote: > > Am 01.11.23 um 13:23 Uhr schrieb Dmitry Gutov: >>> I've suggested this in the past, and it's mostly for Dmitry to answer, >>> but IMO that path should definitely contain a scaling back of Company's >>> company-backends infrastructure, basically importing only company-capf, >>> which is (IME of course) the only real backend we should focus on. This >>> would help sanitize some of the incorrect perceptions of complexity in >>> Company setup (the kind that Alex's argument suffers from). >> If we simply do that, I'll end up with bug reports from users with two >> different configurations and sets of capabilities (under the same name). >> >> And a lot of users wondering why many snippets they found on the >> Internet (or even in the current manual) dosn't work because the Emacs's >> built-in distribution of Company doesn't include all other backends. >> >> If/when we migrate to a new and better completion API, we'll discuss >> migrating all of Company's completion sources to it. > I'd like to second this suggestion as a user writing more prose than > code, although I also write a lot of prose in LaTeX which seems to be > somewhere in between. 😉 > > When playing with different "completion frameworks" for a while lately, > in the end I stuck with company. But the only backend in Company I could > actually use was company-dabbrev because with dabbrev it is possible to > set company-dabbrev-ignore-case to nil. Without this, whatever kind of > completion you implement will be mostly useless if you use it in a > language environment where case needs to be preserved like, e.g., > German. So could you please consider this use-case. Thank you. You might find `company-ispell` also somewhat useful for prose. Also check out the master branch, if you can: it has some performance improvements for this backend, among other things.