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: Allowing completion sources to customize completion display Date: Sat, 25 Nov 2023 02:25:21 +0200 Message-ID: <7ac85e70-74cb-6a75-3188-9873ecd6b6ee@gutov.dev> References: <831qcghn52.fsf@gnu.org> <08c7660f-ee16-7159-581c-c8b2526a6035@gmail.com> <83il5rfwps.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35375"; 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 Cc: Jim Porter , me@eshelyaron.com, emacs-devel@gnu.org, Juri Linkov To: Spencer Baugh , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 25 01:26:28 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 1r6gV9-0008wW-3y for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Nov 2023 01:26:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6gUF-0006Z9-KS; Fri, 24 Nov 2023 19:25:31 -0500 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 1r6gUD-0006Ys-Dk for emacs-devel@gnu.org; Fri, 24 Nov 2023 19:25:29 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6gUA-0007MY-EL; Fri, 24 Nov 2023 19:25:28 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2C6AF5C01C1; Fri, 24 Nov 2023 19:25:25 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 24 Nov 2023 19:25:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :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=fm3; t= 1700871925; x=1700958325; bh=9PPIrk3K3Y6+mYIEf7HU875UPx13TmM/RHC q98in1oE=; b=gJfWn/icAF+PJp17ji3/+U+kAt3FKTF5ArkuKwrtq2dXAfIjdw6 DO5hPo7DtICeo0pg6KJcVXwOfjHVSAbZeZIrQHaeIW96C+21io/UB25AMUI+IEZq vpuhg8Bv5F3z2Cx0BVSGS62V8jwBomRcOIp71JmxHZEQ7t+6F2opAn7KWKF5V5mj 40hYNIjg/rDoq8j//U3BfycolOHETcrXIXheExZbPeNYygcNCkb4RWeplJ5Kx/aX Q4Pe/zQX6b43BbSpt6iZb1/1h2CujXWFho9r3z2+Opc1+Hg/54Hj4/wGYskxoUCs QKm4FLHxOi9uLRY8DlFSaE/VvWjL7nAx4JA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; t= 1700871925; x=1700958325; bh=9PPIrk3K3Y6+mYIEf7HU875UPx13TmM/RHC q98in1oE=; b=rpWOVlWB8+ge6FhkZ2KVf5tvvGpQvomTWzZ9kxlKtgeSk0NWDof Fp48TCbCZBHFwwrrcj1oiZ6BlOmK0Nphj9xp+ktFlGsJ9BfJARcCFetLMtK/YiFs ASENTAOA8nqUQ8c0wVpGiwtmhFtIvPBQ5owRiF12Jl2Rzb9N3/pvvToGmJSo6edZ oLu09eKPcVz/YIq3SqrdgXNnVdHMUB38ZURdYE+Hn9t9hi7iF+vtfbU+xxK1nB94 neQZIIFggBF/CxnJWRFG3aEATyxhN8oZmwbdQDHwJ36LhsPOVeXsGZhMoTUDAXuX S84JbTF+Zyn+zvvlQ4npBq9iJJDXYi4Ogfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehiedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Nov 2023 19:25:22 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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=-1.592, 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:313187 Archived-At: On 24/11/2023 19:28, Spencer Baugh wrote: > But basing this on the source is totally wrong. Instead if I, as a > user, think inline preview is better for multi-line completion > candidates, then inline preview should be used for multi-line completion > candidates regardless of where those candidates come from. Are multi-line completions better shown inline? If I had to choose, I might actually choose the opposite: show the shorter ones inline, and the long ones in a separate buffer -- so that the current buffer's text doesn't jump up and down as I'm typing something. But that strongly depends on how those long completions are going to be presented, whether they should replace the current text or just add new one (multiple lines of it), whether they are allowed to vary a lot, etc.