From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] `completing-read`: Add `group-function` support to completion metadata Date: Tue, 27 Apr 2021 04:45:08 +0200 Message-ID: <188963d5-92cd-75de-ace2-54b977d76ade@daniel-mendler.de> References: <39c93100-a352-538d-717a-663bcc5de296@yandex.ru> <23ebdd80-3ca2-4166-beab-e2535b6cc646@yandex.ru> <3a8d8d52-4b35-4a5a-aefc-db3e11d110e1@yandex.ru> <112dfd14.12f8.179110d4c4d.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , Stefan Monnier , "emacs-devel@gnu.org" To: tumashu , Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 27 04:46:13 2021 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 1lbDjo-0002tx-Oe for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Apr 2021 04:46:12 +0200 Original-Received: from localhost ([::1]:43688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbDjn-0003u3-Sd for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Apr 2021 22:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbDjC-0003TC-7y for emacs-devel@gnu.org; Mon, 26 Apr 2021 22:45:34 -0400 Original-Received: from server.qxqx.de ([2a01:4f8:121:346::180]:42409 helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbDj9-0006cQ-GK for emacs-devel@gnu.org; Mon, 26 Apr 2021 22:45:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=j38CRnWIwr0mizP+5otJqmlETykUqwcanOwzTjMavA0=; b=anq9hnRP1gDgA6qAgriSJhA1D5 rUuLHRpgjN1VzHkbuFV3rj5NMWwAL4zKYl5nqVxVnpvoh8YFKrr8hKA4zFuwnYzHhqF+tlj+hp4wy MW/HrRyizhVm9hcKeBwZwAviyhbG1PqNbfgtF3bws9dE43oChkmWSwZOA/RE330JazJk=; In-Reply-To: <112dfd14.12f8.179110d4c4d.Coremail.tumashu@163.com> Content-Language: en-US Received-SPF: pass client-ip=2a01:4f8:121:346::180; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.devel:268512 Archived-At: On 4/27/21 3:59 AM, tumashu wrote: >> My ideal UI would probably be more like this: >> https://emacs-lsp.github.io/lsp-ui/images/lsp-xref.gif (though perhaps >> with a slightly different layout). Meaning, a posframe popup showing the > > Wow, cool!!! > it seem to many packages use posframe at the moment, is is a good idea > to move posframe to emacs.git? I would like to see an easy to use API for popups in Emacs. However it may be a bit early to add Posframe. I recently made a small package, Corfu, which uses Company-like popups. I considered using Posframe but went with overlays (which are are poor substitute for real popups), since Posframe still has a few bugs. For example the internal border is not drawn correctly (https://github.com/tumashu/posframe/issues/74). Furthermore the child frame creation is slow as has been discussed in the thread about hidden frames. Are there Emacs bug reports addressing this? Daniel