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: Sun, 13 Mar 2022 19:52:15 +0100 Message-ID: <20220313185215.6d2tb72fxo34iviu@Ergus> References: <874k454n84.fsf@gnus.org> <86ilslmvql.fsf@mail.linkov.net> <87v8wl35wg.fsf@gnus.org> <20220312001446.y2feetylsfjynfao@Ergus> <87ilsj14qx.fsf@gnus.org> <83bkybm63u.fsf@gnu.org> <83a6dvm425.fsf@gnu.org> <86bky9ah4o.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="14253"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org, larsi@gnus.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 13 19:56:05 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 1nTTNs-0003ap-Ux for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 19:56:04 +0100 Original-Received: from localhost ([::1]:47876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTTNr-0007RU-Fq for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 14:56:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTTKt-0005pv-9l for emacs-devel@gnu.org; Sun, 13 Mar 2022 14:52:59 -0400 Original-Received: from sonic305-2.consmr.mail.bf2.yahoo.com ([74.6.133.41]:33900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTTKr-00078y-RQ for emacs-devel@gnu.org; Sun, 13 Mar 2022 14:52:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647197576; bh=pmEdhMhD4QmiDCF82+olGYBaKBuRaJffGBjYQbVW5sM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=sw4p99Ql/I2xKFqIGOkXlqqgiq9OzfVNUV5jBECurH2BkUfrMubUNDotlzynsDVZx4ePUWETfEpamO9tH7yscJgoCMYZEdKNR1Zau6pSDhYpsNBP3UvXwyJmUcMhGe9izOpPDBD2puTK/In2C1KQfCvzGmf9KRTZPw3i0Tz3ranO9O+7t6x3Cjr0i8Vv9gVcU3XKd2TQoITckUoGfjwyUaGEdfPZ1KWHtsOb5hi8Rt8IcSBXwnvaDrI+YdC52iXQPSZIISLIT5DeCc1EPg29qx/9FSUHN5YktZ3GFh8CIADQiIN4kfqZwYbSKS3L8tQ+ungZvVzh1lBQedgWEF6UsQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647197576; bh=rcyY6HqT7rN3NqlTaFI7JwVyNDdY5J+dlHlsWd/Wq5J=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=l1qPJdtseogqURxcd9OcH6P77VLaTlTrxqk8kpLGYQVENo3eQ1h5ttY+8y3lkhmVcyQ56opRytr48a9gvsd4wSXDyl05N5lPCVwxb4BH6I4d4M1bhWOIgjQwTIvrMXkderrLaPBZPGwWtHn1vF0kYeRTzEl+hhvCx5HIOerMPepnIPdiJ3IH50otzfUYpQPEVhKgCDxYvlUEOzQsJUbOT11ylnwAed7T42938uN0HHm9ufUIpPFwWq7mZxl6qvrfg7BKu30pYnjNAtQ8D6bSj9qhuUNRZpdGsj+IxkRHfT3N5b9smiQ9eQVDVDy9SqGB56+9CJWqdOy/ON614gYbjQ== X-YMail-OSG: Xt1.2aIVM1n5shBpq0tv49ZRjVixx2aMXsfgVGy_FhzVrSuBpLRHkZJK8Z_bq2R 4KR51R_iIGa4keoRRjuND2paG_vhJ4jMNRojYJ4kG_nbc_Ui74cYIHNPEL3Rsdges3CD_I4Ebsn_ O03eXcrbdXz6PDFC252kqA8YbG8QSNDUZ33W3Fa0JrNwEekV.jziva25ASTaR.4SKRbSSG2GZO.2 eSq8_OOnhzvCiaSuT9HE02qkRbkeLOsu5E8DS65_kGOgYUIqZTqAIHwRxBRtlPpS4kZCsuH6r4rt RAOn05sS5Iu1hcpbokOyopjz.LsKb8HnyPuP.Sb8qrJQHCTyYZxMjywl0BgyCnzY4Om1S5ufflGy SExmf9ohIdcADIwYrOaaHupQVvCb.6ly7MdKK0oGy4N1XGqT7kv3o5JljM9iyFyweeBs7MxhI9e2 zPtVUzrUTMePMX3UTb9pID.KfyQ6lL6AL_gAmodgX4BFwmbaOyAvFxY53inUbBenRG8z1QKgr.Rs .bFi08Opf0iHrSRWSqPyUfv4Y_3tAih0ZagNeiN6RBykcD8NtCixFTMDni6bJKtfqkL00QRnyvt7 o22kjrKGPOar23w3Y15Qmpi.ElaeWVMpcPEZ1lajI_h_XCFq4dIbfIYjqo9aTqh4HKT38iYwQyio Q_QvwP2cZ34cZH1rQnKd4_JIVaNt4jiCUBIrz.foDzN9DQLspicE3FbuauzeRnDAcPIPH8GjBmz_ yGdB2TFc.DgIMqwL2xbdJSNsWHXQFIDqlJYVyRRMF74qiukwlkPcnhLSPmqeTbgoHT.luO4nc6ft KJGTk4m1uqC9RwUkj2USXzO4JMP.p55GAyhPHtPTrQ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 13 Mar 2022 18:52:56 +0000 Original-Received: by kubenode507.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID c33c2943e8ce82bc88a2207133f7fea0; Sun, 13 Mar 2022 18:52:55 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86bky9ah4o.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.133.41; envelope-from=spacibba@aol.com; helo=sonic305-2.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:287085 Archived-At: On Sun, Mar 13, 2022 at 07:47:11PM +0200, Juri Linkov wrote: >>>> >Isn't it very similar to the region? >>>> >>>> I don't think so... I think it is more similar to the mouse-face >>>> feature / text property. >>> >>>Why do you think so? The region is redrawn when the cursor moves, and >>>the cursor moves as result of Emacs commands, so how is this very >>>different from what you want? By contrast, the mouse highlight is >>>triggered by mouse movements that are completely independent of Emacs >>>commands, and the implementation, as part of the display engine, is >>>therefore quite complicated. Whereas the region display is nowadays >>>implemented completely in Lisp. >> >> Ok, then it will be similar to the code I already have in >> completions-highlight-mode. Essentially add/move an overlay on post >> command hook based on some conditions. > >You could just add your function to the default value of >pre-redisplay-functions, e.g. > > (defvar pre-redisplay-functions (list #'redisplay--update-region-highlight > #'redisplay--update-mouse-face) > >where the new function 'redisplay--update-mouse-face' >will activate the mouse-face when the cursor moves >over the mouse-face property (only when an additional user option >will be enabled). Sone, please check it... I will add the extra option in a moment.