From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Question about completion behavior Date: Sun, 13 Mar 2022 12:21:08 +0100 Message-ID: <20220313112108.j3lvtnvgybo7em65@Ergus> References: <83tuc7e066.fsf@gnu.org> <87y21ji6ht.fsf@yahoo.com> <87lexiiqnk.fsf@yahoo.com> <20220310102157.wmmn7bkkdbux7aug@Ergus> <8735jqhxdr.fsf@yahoo.com> <20220310140331.xa53sex6wywkr56l@Ergus> <86ee39r69o.fsf@mail.linkov.net> <20220312001752.stzknhydiep6nsxn@Ergus> <8635jn81wt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30214"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 13 12:23:38 2022 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 1nTMK2-0007jR-DS for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 12:23:38 +0100 Original-Received: from localhost ([::1]:51100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTMK1-0001Pu-0i for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 07:23:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTMIM-0000Yk-MJ for emacs-devel@gnu.org; Sun, 13 Mar 2022 07:21:54 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:32985) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTMIK-00025g-7M for emacs-devel@gnu.org; Sun, 13 Mar 2022 07:21:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647170510; bh=cGMwychn5VTNy9dFFmE89xWuyqEmCktbqeij/ZPsp0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=E5puSHsWtzqiTH+8ATgQ65v7sk5hmJZQvjAau9x6E+DaTz0XijgewRulF6Q5MZri/isBlsBrAXbYj/l6HAkhvhgCNYlmoQkI12Pa/9GpMjKBUAFqGwBDL3cgXJpPkBbKa8RPK8CVhNvW9O7sHSPSmbls8JIQlLMH7C0BuxRn4UkY6MgfhzWB8PGD/dJGgYQfzt03a9vno443lywacA5xmiBfVsF1lYjwOjg7+Cay9h/52C/I2xaLci3C0W93IK8hE0dE02t2fxqZLfSegVB4MDGL/SsLAE+bwi3kZxtDpVIutUmUUxoeowf7+G6zXGlp5a545KamTVLM4lXO8x41EQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647170510; bh=eddQ17RAoeYKN7+Z3yviZoSE/kpKAkoSZLHAzn/w7pF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=VZotGxVRjN2fFmSkpqlu0vEdy7gNNQIFmk8VGtZTLW5sCRoFA3k4Ml48lFJRg9g8w5YeVPBtsXb2mJAnVNd0X5XzUxupxVmEEgNti1fYyJ7O2v6Zp/c3NvpshOugxExBg2WDgAOwFPMcylI2x5j785lcabCg0130ajYE0vyRcnCRB9yNZNdLEBjbw/0HnVm1QYOhOf3wzpXqe0/yi/SkE01Z+4Nw/bKon7zq7Y7oL9RqoioFRZzD2zCcI+OwN+hg3Q0zbZB92NSBnyHIdoF5Gj3SWZhuWFPW2TdDE3KKdYxDfkq+NiNdk9D/AzjEZoif7qu1JTPbpWK6ahE4sbYNog== X-YMail-OSG: GWunEecVM1lCKask9eu8FrvppDkOmGxTsVEpRdvRrI1kD9L1l5nG10VFmf8b5Zi y9jLDXKkaNoNf.DWQoAsUztye.L.oh.7NqMOtM3xq3lJwZUADIVLL4yjJzpbfyJeI5onG.ochr1L H5QGK6mkRExRrd4UO3aKR_OO8fYxMRpaSgPc3zIWF0n1y3qGiFlYGQAWdE1qFJQuB_E6a.jbUjaj hkTeZbPLtbagTsZbwpejPA9QgJY.J1sjxY2b0qFJ6s2I_eTCYfi52wgxZu8snKFchZezPWWAJUYl Ab_MBdqNYD9CpfKOTYP8QaEqHCe7GvAvrDktZn3Sn3tizFzUJSzomD3WRlMNQ2C2QkoN1G8Ls063 a423oXP9Bfkd72EkjuuFvO2lQnMRf4CJ4IcEG4Ip_XGslpie2hL8VqrpPdTULNJupGfvYqQ0FPlV EW3khkhDchBOSSageXcNmCmV_g0k6DMB5xVjLNxszENOyIrt.mMt38p2Z4ZJfrqy4fQMyyCNBZhq eEYvRy2KXNWigeo52Izv0DIM4NDVH8WwJGSB3Kvhc_uiSZgQ2LRUsAd58_7DLwtM88DvhN2TD7AD gxBbba8tsQXMCXAGl_Sx6DQjPVg2Z4hRK4tYUABkJwtW2ewweJOzJ8vKaQHv5RzOZz0OgeM67AkP eg1oCLsgfP_vgK9lCRJ4zrlqFG_EQEY8nGPEGLuqQd6H49Lqv0eR7JZJYlZ_L3RzAh.u2qjnH2PE 02chErffbD1bSmOV.vlJpX6LPHujVgArArjTDIW_OaUoisd_9qi1UPvovYwJPlTGRIpfRyjfEOTS oTJK_jkEfdi8.aC4dk5jqSSGX0.PQLgWal486TaVz. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sun, 13 Mar 2022 11:21:50 +0000 Original-Received: by kubenode500.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID dd5c7122707ba6c610b14fa5f8b923a5; Sun, 13 Mar 2022 11:21:47 +0000 (UTC) Content-Disposition: inline In-Reply-To: <8635jn81wt.fsf@mail.linkov.net> X-Mailer: WebService/1.1.19878 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.32; envelope-from=spacibba@aol.com; helo=sonic304-9.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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" Xref: news.gmane.io gmane.emacs.devel:287063 Archived-At: On Sat, Mar 12, 2022 at 08:34:18PM +0200, Juri Linkov wrote: >>>> (for example to remove it or add properties like intangible, a face etc) >>>> could we also add a sort of counter there to indicate the total number >>>> of candidates? >>> >>>Good idea. >> >> Done, please check it. Should we give it a default value? > >Thanks. Maybe better to have the whole string with all text properties >as the default value of 'completion-header-text-property-list' >that then could be renamed to e.g. 'completion-header-string'? > I don't know a simple way for creating a string with the properties in a single call. We may need a sort of wrapper function that initializes the string and call set properties in a single call otherwise the user may need to do it manually... Something like: (defun make-text-with-properties (string properties) (let ((out string)) (set-text-properties ...) out)) Any better idea? The other detail is that there are 2 strings: "Possible completions are" and "There are no possible completions of what you have typed." >Regarding 'completion-lazy-count': it would be even better to allow >customization of this format like in 'icomplete-matches-format' >that was recently added in 28.1. > Probably the best is to join the two variables in completion-header-string and allow it to have a %s for a count... I will go in that way. Is it OK? Best, Ergus