From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Select completions from the minibuffer Date: Sat, 12 Mar 2022 20:14:10 +0200 Message-ID: <83a6dvm425.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31618"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, juri@linkov.net, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 12 19:15:30 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 1nT6H4-00082K-I4 for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 19:15:30 +0100 Original-Received: from localhost ([::1]:37256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT6H2-0002jd-Sr for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 13:15:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT6Fv-00021x-Hx for emacs-devel@gnu.org; Sat, 12 Mar 2022 13:14:19 -0500 Original-Received: from [2001:470:142:3::e] (port=39788 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT6Fu-000120-5T; Sat, 12 Mar 2022 13:14:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XQnKI5eb/aENAhZv6HbXE0xXH5tEjSvjmSLibWteZrk=; b=IvBtWaC1P/a6 Kb4YwU+LQjayBjvSc5otxminNhLBLq8SvEvcSoEw7PUEl0qtUMte4HEBo7ypsAjqYeNLmac8Y5wav vrNAlBFoeRGEb/oPhfK1yXbI4nYwDamlwWJzv0RxAv+0hWjNzcXEx+fMEGQeTVqoayxTA7oGdMywA 7GJ+eY8mj4YgoBOFYAJ3mhlCOf0pbFi0Rfak5zmER7P3opjpUS5GeKlkLNHnvjguoDzS9W2zVpRHX 2xoCc0Edh6UCug+4DVeIER1kG4pnh00QSwJRDrDwD2Uy/mUDYZYNNpNEEFv8gvxqIQe1dxUz38pEx B+LBzKtC609oDN12R7TVLg==; Original-Received: from [87.69.77.57] (port=2697 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT6Ft-0005I1-I8; Sat, 12 Mar 2022 13:14:17 -0500 In-Reply-To: (message from Ergus on Sat, 12 Mar 2022 18:37:14 +0100) 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:287039 Archived-At: > Date: Sat, 12 Mar 2022 18:37:14 +0100 > From: Ergus > CC: juri@linkov.net > > > > 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.org > >> Date: Sat, 12 Mar 2022 18:04:54 +0100 > >> > >> Ergus writes: > >> > >> > 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? > >> > >> Hm, that does sound kind of attractive. I don't know whether it'd be a > >> lot of work to implement -- Eli? > > > >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.