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: Select completions from the minibuffer Date: Sat, 12 Mar 2022 01:14:46 +0100 Message-ID: <20220312001446.y2feetylsfjynfao@Ergus> References: <86v8wlprc0.fsf@mail.linkov.net> <874k454n84.fsf@gnus.org> <86ilslmvql.fsf@mail.linkov.net> <87v8wl35wg.fsf@gnus.org> 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="34253"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 12 01:16:19 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 1nSpQh-0008kY-L5 for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 01:16:19 +0100 Original-Received: from localhost ([::1]:42016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSpQg-0002BL-4m for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Mar 2022 19:16:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSpPy-0001Px-2z for emacs-devel@gnu.org; Fri, 11 Mar 2022 19:15:34 -0500 Original-Received: from sonic308-3.consmr.mail.bf2.yahoo.com ([74.6.130.42]:44563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSpPv-0006o3-M6 for emacs-devel@gnu.org; Fri, 11 Mar 2022 19:15:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647044128; bh=spOz+uoERgrVzlHfHZNgoFlDzhnUtCYTbRMyPSt+J3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=olSUlEMl5VY5+M1TGFxw7yHmqiCSATGGU0dNvNSV2u/DTZktYLIk7T3h6wdMRPnFwXPO7MYLk8+1Vi/9r7tzX2LppLXYIIPiC8o5u5b+WOICU7ajq0QbmgUtGl0vCpSkkI4jOYbGFQei+aBFODArYjui/LS3fVxN6ezHMRkWIajxh/j21Cpfim6b57WsXg0E8fSE/g14vqjDLWHJhEZ3PCapNdME4iEXG20PwHLgGhWXFaOMG1WO5gZ02csfxMzr6T78xiKT7R06O9LH/afI9Han3c5r2u+Anku9JQDL+W63YhfUtBglVclAHXDAF8UZEMNcIwWPaQDH7c0eGlp94Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647044128; bh=eJljz5gLcW/5YY3iBGuZjBaXBoG42CdAhMcGcJI6OaU=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=s17uFbjZCw+wMIz8xkcoqE46o6UaJeco2bL5AomEB8M/EPRC1MuFyc1a1KaR3nB8WQN0+kHuEZp+GF7BLUFFo8uiZqNnZSliK1uX9Jckwyq3PFCSDn/Q8ds9Bk21RX/nbhuHy4Z9LgWaxKWllEWFxeUyELHzpVEGcII3p0kWM5fwMSTHJYBHKfAWgXbwSWEvd06Of89OTQ7V+i1IrnK4XcEeT3U9mQ4Rovp9au4qwyanVEcKvi2KiiWnFx1fvUWFpKRcF0/+6alM6Roi2NJuOLq4rwZAN+0pOeU/5rAmRS1OWttA1vnrPgGxPVDGA0HHSrl4BF8TpHnDauFsIeiYRg== X-YMail-OSG: LZfFnlUVM1mH8arVCTphbgat369m0teTQJ8K2UDWCm2d7AZYqsFTDdCParUK5I6 54et4jRiupyJmnJVR51IFegBB5VzNUcp.fJSWvPoSx_AebyifQAd_BJlbjvSCpa8mflQTl5toDg7 rDbhpC9PYPCfqmiDpdtUTRnzj1OxAubxLASjgBVcPX1s90wUEz0J1dQpCg_6TIzfmPK3c.TbQrVY GFJmKoUyyNus5E3SrFI0GCGGOh_EcO8XcFkHl.S9cKexn6H0ddAGa0dCJi__fQ4zYvklZAHoAhtR DaXTjfJYK.ldfVEC_lu2RFga0FPiSV.S91im0xbQPwQIMfil6x_L5ivd5KI5z1mhYZ5Dh1rxPnuQ H2dGCqPU_lXkEHgVk6MVs3xVeF5Pq2VqH5Tx82IjoQZ_HNKrGK60lt6NdykyPAFSPEsO0Xge75v6 WhJbSs01W.TWIfRZ0hS4NI_tsh0iOzHsCZWv9CcDLWLXSedXt.o4jDi1z_Ji2ANYnR3Ejg393l.0 mY3YS1WU0PcPUSMjzAO6tGbNHayWkElbWdFUDF84mjjHMKPqDL6PxiW.BzCjYU.FgoIuT2LPUPYe lTqtpXzADGD8BjN4NsNu2NpH5xVZaLBJErF9xYAmz6W0C0o2.nhFWTan7qHg4hvlzxjr84gvq1Lc KIXsCrdpOXLmGqEtTJ.oY32ievVKYXwYmKPsoOhMAFOoBp1ryPn_N5jO5tiZgr3c2R7sQNRygx1h YzT0mWJuCl_oEwK29vAF7UaydARP7oQl.pL9v3joh5ygDC1pKI0pVUxRHktDgQoopyhURk4Ag0f2 JEwYxFAHd9NehSyDuVbPza67jv2lVRby4XRE2.OJTH X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Sat, 12 Mar 2022 00:15:28 +0000 Original-Received: by kubenode507.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 812aa690db000cfeefe6f08d76f14324; Sat, 12 Mar 2022 00:15:27 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87v8wl35wg.fsf@gnus.org> 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.130.42; envelope-from=spacibba@aol.com; helo=sonic308-3.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=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" Xref: news.gmane.io gmane.emacs.devel:287026 Archived-At: On Thu, Mar 10, 2022 at 09:32:31PM +0100, Lars Ingebrigtsen wrote: >Juri Linkov writes: > >> Oops, it depends on another patch: > >Thanks, with that it compiles, but doesn't quite seem to do the right >thing. > >emacs -Q >f TAB M- M- > >gives me > > >I.e., it prepends the choice instead of replacing it. > >But it's otherwise what I want. 😃 > >Perhaps it should also highlight the current choice in the >*Completions* buffer? It moves point in the buffer, but that's a >too-subtle hint, I think. > Hi Lars: I added a highlight mode for completions in my branch using hooks and overlays, but I am wondering since then: why we don't have a text property that highlight the region when the cursor is over the region, like the `mouse-face` but for the cursor (point)... Is it possible to implement such thing more or less easily? if so, then it will be easier and simpler (and probably more efficient without requiring hooks and overlays). WDYT? Best, Ergus >-- >(domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no