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: Thu, 17 Mar 2022 19:01:30 +0100 Message-ID: <20220317180130.yxyrxfdumkfzsvcv@Ergus> References: <874k454n84.fsf@gnus.org> <86ilslmvql.fsf@mail.linkov.net> <87v8wl35wg.fsf@gnus.org> <86k0d06dik.fsf@mail.linkov.net> <87ee3714li.fsf@gnus.org> <86r1773sb4.fsf@mail.linkov.net> <87pmmquew4.fsf@gnus.org> <86ee357wob.fsf@mail.linkov.net> <20220314090826.gyc42227jpvh4efa@Ergus> <86zglsiazs.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="619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 17 19:03:08 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 1nUuSq-000AOw-Fk for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 19:03:08 +0100 Original-Received: from localhost ([::1]:42298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUuSp-0004TZ-60 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 14:03:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUuS6-0003o8-EA for emacs-devel@gnu.org; Thu, 17 Mar 2022 14:02:23 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]:44824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUuS3-0002iH-Ey for emacs-devel@gnu.org; Thu, 17 Mar 2022 14:02:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647540136; bh=WWLKMw174FVNfOTNlR7QEq/2ID3LRLlIuk8w1mfX8PQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=cnCj0/JOh5ztQzV0qbsa4u/vIx+kjlsyWIC4p2Vglu3pWjdHxFKuLDDsQ3HHFuzdOrhlw50P9sAvcCl5dDH5qjUOQX9sDUkrd51Gm2JxGXEVLUwA5nMtHh6a6HrWLXOeaDjOBqbRh6dYPHclJbF5bIQjer9BCdCkvD/HQDmqZhiknCsWyvrjqpY3cwMWLMVuRLMTiQDryN1oLyyOFXN7JrxbuRFUj8mEqhMDLNSEfYECYXu+dqNBPlEOmY7RTUksQqwUhI7e9JFdXdcTo3myRx34uKohyyOCWRiLvxHgWKBoaFguO3sL3BYC2v/cefyqSJxBiCReRs7L4CkCX1CHrg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647540136; bh=F0APoLZ8lnR9s6dRftVq2r6opoqqNlgyBwBgYqkv1/Q=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=c5RVjnNi4SPeu8OOVPxdytAuf02W+lBhOYXzSKgUpfriKno7YFWcfOrNz2yMr345AgFgDR1JydOrquELo4//PTUZg/L4s5mufCsHsBpF7dWZgXb3+RtB1MCmZ06osnQe6dQeY0OKgAKGOHwT+BgRtliRjktrMfO0i+Sq6TeNAqu3sHfhR+IdFc7Lz6HMBOxiJya+PSy4kDfrKNNtmcXJHFLs3N38hGayJnB/NCiRxM1q6sQ8X+FEYg2rHExlU2vDduriuUCG3PmnRv4e5aW60DmwzDZVPeyB6H1pQ4mhNwjQOJjwvMFeKo2V3s1UWHVzIxkYUyOWd6ZgXkRQXn7Nbg== X-YMail-OSG: 7A9LJekVM1mbwh5u9DHnPAiqhrfnMH.19AldlPYuL6hWOg3GapdWA5BtEAYp44K xB50SzaRVdPK2UqReXdcROTQ2KHI.zxpR.uHMLtq5F3_AuvOViUi6l3OS1h0oH64MOOmNbhj4INj HH_XnFKt_66TbdFRUB5JJdI4PUTDHBCpANIZD9y9nsEU0zRk0UZ88OOzEzS8iLpeCk6xEeti7aeU 5cVqbvyc3JAy5ol4nu3gq_DREhni5nZ9DQwovFbJUTKo_SOwdA6cjkHLh14QXLAm7Hf9m9pW_0q2 BK67PYZlpHsZYigpN4aQTf5eerH8rKLoOtkVinoifIqlk5qbKEZt5ciqgF1gF9uUZIC5PJUwhmGh AHy7TO1HXNQU0YzCUOJtHcXw10N3hHDYbB6T4aZZyx7gB7Z4A9cqdMbUOXuulI3_CgbM86KE_BIF JGUb4jo0jvqUjhDmDFoyi1MsN4i7IYCeiYOjciu8N7v1S3LlZ5E3La52eJ7ouW7jK_XL2QeOhLqP NdiI22Q0Lb4pwtulT8C8DvWEpVxRPy3YZNlTbDwFVNt7MjAejJ6hoPcSHZKdFgBdePaXaeygxA8D NBvVtzMR5TKtj4IT7pKnBpH50zg4JPf6CJ9O4H4FkwqwtsMcxRjbQugW2A96yp4MI20hST.FHe0P JThf4Dl.Qq3zY.liWH7WGuPiuHF7f7We6vBgombnvegtvM.pZhJUTV2HuKqWx.vz6JTpoqUrdi7L opTaTuWCeylh7oRQzAkmBp62AYCyVbaOZX_GDhX5VO_s.qmew5fNln9s_sxdaJKky40HyL6PbjgE 0uphkH7Lk7.68u5jXS3eG7k9_cynf8n6tFHle4DNUq X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Thu, 17 Mar 2022 18:02:16 +0000 Original-Received: by kubenode506.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8bb04eb6d253f61d3b82206d62527427; Thu, 17 Mar 2022 18:02:10 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86zglsiazs.fsf@mail.linkov.net> X-Mailer: WebService/1.1.19929 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.42; envelope-from=spacibba@aol.com; helo=sonic302-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:287257 Archived-At: On Mon, Mar 14, 2022 at 09:34:17PM +0200, Juri Linkov wrote: >> Now there is a variable completions-highlight-face. When nil highlight >> is disabled, otherwise it must be a the face to use, by default >> completions-highlight. >> >> I had the mode before because I needed some initialization, but with the >> cursor-face feature that is not needed and the code got simpler. > >Thanks, highlighting works correctly when the current buffer is *Completions*. >But cursor-face is not highlighted in *Completions* when the current buffer >is the minibuffer. Such highlighting is necessary when completions >are navigated from the minibuffer. > When the window is not selected or the active window of the minibuffer it is not highlighted (because conceptually the cursor is not on that window) I can rely on cursor-in-non-selected-windows to have a consistent behavior or add a new local variable for internal use only. What do you prefer?