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 20:30:35 +0100 Message-ID: References: <86v8wlprc0.fsf@mail.linkov.net> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, larsi@gnus.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 12 20:31:46 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 1nT7Ss-0006F3-AO for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 20:31:46 +0100 Original-Received: from localhost ([::1]:45602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT7Sr-0006G3-2B for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 14:31:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT7Rw-0005R0-VJ for emacs-devel@gnu.org; Sat, 12 Mar 2022 14:30:49 -0500 Original-Received: from sonic307-2.consmr.mail.bf2.yahoo.com ([74.6.134.41]:41840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT7Ru-00015b-VN for emacs-devel@gnu.org; Sat, 12 Mar 2022 14:30:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647113445; bh=7fpOjMri6AcFNrW0O9OhQ72DyzLPyhNf1zdMOH1a0WQ=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=GynK1sND5YEKN3/PqaDenPDVYkHIrU5Ca2BVt8YlYtEpUjenBLoNUD+8z3hx/kolvj7NmCELbLJNPbhchkKg3DPQspTN7qfmBwx7UamnUO9DfC4YwI9M98uQXe4gQCUzgqr4z70hD9OYqGJQ5VyQSGLB88si13zevTS7fuMyh4ZRuY9wcQvADxspwxY7NEdQwAy305g3QjsTcKqgM7RWDeQaB/EQD/Lnrzg5x9Jp8vZigK+Vbvx+ydenYFzX7OekrOZJU5fPEN/Y4TlZZwxHUuRi8prKOIcjJzx2s3pjmkGeXwGrxvTsTJDpgpVlE2hQzaxJmoOatTgZwcTmnVmLdg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647113445; bh=bk72BIlhys+7CfMJ7ufXtzdAsrq7btXmqlOxIdtQ16h=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=cfSTX1TcjENsKT1Z/mLHBVxOq9wPl93FpXK9fNpLrqQLW5hKlc6y0iRTjXDJzUmhrp/AX5kLRv3tJvnh4a6MVq/mx7yAmVf+aEVZIK9uYnVQUcnhomZZ79OHoBvyUXxCFh4gFKgyzYuAWdok6RQqrWS7MFd/I7GNGbExEhKPY/1rQ8o6k/5ZPoyO3VI2Rq+KBhsM+QfcWeBspRxQ6rZF3YTLBpc11fCI7HEsnNGJJo5FtuiggN93Gt5SYeVpPxf2QgdOtcKxV86yqit0cIrOZ/1mRkYpcbPi3wyh1gFyf0j06z1EqaDxa/yfXBwpk790lNQMe8tEIOTDlv9sVY9CuA== X-YMail-OSG: yDmdhmkVM1kqBPX5_6qCduT1ZG8r3PLqGSy8fXIqWrNQD7N1U7d3P0gT6lZIl.S 7jc.pjh0knBe_pKsB9uHGyrMoX_5D.jAfAnvjM9E3ovPSCcDgN1nfi8HnT.SE0wcko0kr_OplS0G vOZC_UbnNa8NnSheSq7VDD2mxITiRMh.STOQ_UJHa2_k0bVUr3grPI6yHuId9HvysjOkfPq.OJhU O5sPTrkBtSn2OOVLdOb7P5YSkX6hFboX9drFq42KQCJMjH_NBykUkfnlQtB.Skw_8s_XVb9PSLa4 Sj5jFIAs2Qgv2vTH8yqZGWpDZuAG7u6.nx6RESoQUdaK.7mBL7Yzu0QZpM.NgqWAHLLAr0IPoy5C AzeqGQmggh7B5BqeyUk.Ll7tNzfKjOLUeHqkYHNwgbmUvkL3cWjHyYt2NN7PSrFTz8x07iOy7iBJ LULxVu4W3epUhq7ZIIYXxT8.VcnNwxVx.Bs4KSU_qgFyGInUQAb4b0RY4dW_NFTOyVMLFu8boxE. fXzGLr.WVVDuX9kCIVWurUDLDxLvoofIjwd_K.SZ5BwX7dX7YH04cQ0yismPRqQy_j0tBQmffQ0x FML_jn1p3LQikpIXb2YULZPh2oKFWL282qKdctLcxI4eQalN_ptTZekIYvHDSQ.TNN6pjoessy14 8dLTg3YOaFELYwAEfqdaij5Q8Yr1Qqg56glkftmQHgPUL.lYFWJR5uKrMdkaT6ZadRdXyxLVQfdD 1p5gDAAAu9AVU_5uuqRvFFCUHdzR24gRyVapWWX.BNPQ0UbjWDYJfzKmgnG3MIfk028gUnuTeDO2 okAomNlcEv73hiAtyI5zXYgsJJBnpLuG72_2ctq2NI X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Sat, 12 Mar 2022 19:30:45 +0000 Original-Received: by kubenode501.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b4663546252a3cf0effdeb23a89b3754; Sat, 12 Mar 2022 19:30:41 +0000 (UTC) In-Reply-To: <83a6dvm425.fsf@gnu.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.134.41; envelope-from=spacibba@aol.com; helo=sonic307-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=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:287051 Archived-At: On March 12, 2022 7:14:10 PM GMT+01:00, Eli Zaretskii wro= te: >> Date: Sat, 12 Mar 2022 18:37:14 +0100 >> From: Ergus >> CC: juri@linkov=2Enet >>=20 >>=20 >>=20 >> On March 12, 2022 6:29:57 PM GMT+01:00, Eli Zaretskii = wrote: >> >> From: Lars Ingebrigtsen >> >> Cc: Juri Linkov , Eli Zaretskii = , >> >> emacs-devel@gnu=2Eorg >> >> Date: Sat, 12 Mar 2022 18:04:54 +0100 >> >>=20 >> >> Ergus writes: >> >>=20 >> >> > 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 reg= ion, >> >> > like the `mouse-face` but for the cursor (point)=2E=2E=2E Is it po= ssible to >> >> > implement such thing more or less easily? >> >>=20 >> >> Hm, that does sound kind of attractive=2E I don't know whether it'd= be a >> >> lot of work to implement -- Eli? >> > >> >Isn't it very similar to the region? >> > >>=20 >> I don't think so=2E=2E=2E I think it is more similar to the mouse-face = feature / text property=2E > >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=2E Whereas the region display is nowadays >implemented completely in Lisp=2E Ok, then it will be similar to the code I already have in completions-high= light-mode=2E Essentially add/move an overlay on post command hook based on= some conditions=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E