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 21:39:34 +0200 Message-ID: <835yojm03t.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> <83a6dvm425.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30920"; 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 20:41:54 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 1nT7cg-0007sF-6q for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 20:41:54 +0100 Original-Received: from localhost ([::1]:48624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT7cf-0000NA-1I for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Mar 2022 14:41:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT7aZ-00080K-D4 for emacs-devel@gnu.org; Sat, 12 Mar 2022 14:39:43 -0500 Original-Received: from [2001:470:142:3::e] (port=41182 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 1nT7aY-0002Bx-F3; Sat, 12 Mar 2022 14:39:42 -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=4QmlQ0sCyVK1n9RmwLdZ8qftGkZJPQGxK2fpgwvvHgc=; b=lsJO/nozm5Nw XBlUzDQsJIFL9DIFkMaq50uepxaOKtBiAJZQKtu2/yfmyVfrJOG5srFHF4DmGf+WkjfQnVf/TBZP+ WitT/qxgc4v7VRyjR9/Wk/9Wm8fJdaAzrjynFx2Qh3CeXH1rrtJslMKH7KQ0NefdWdtH72+tkgCOB fI4pxT9Ab7s170DZef7fCxejwJxtrPQnxnFFqOevA028rRWxiO9XKGO93q3E0O/b+KRQL9OsoZHDh PSrxIPiMRLOR0J9U51AlZML+zoEvaY6+Qlom9Z5GmF7hp3xjP0IhVyULYTgPUaYtVhUI3Cebwyyqp YA62lEAIhdaaIWDEuWC9tA==; Original-Received: from [87.69.77.57] (port=3964 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 1nT7aX-0003wM-Rf; Sat, 12 Mar 2022 14:39:42 -0500 In-Reply-To: (message from Ergus on Sat, 12 Mar 2022 20:30:35 +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:287052 Archived-At: > Date: Sat, 12 Mar 2022 20:30:35 +0100 > From: Ergus > CC: emacs-devel@gnu.org, larsi@gnus.org, juri@linkov.net > > >> 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. Actually, I think it should be like the implementation of the region highlight, which uses other hooks. See simple.el.