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: Fri, 18 Mar 2022 14:06:13 +0200 Message-ID: <8335jfh3d6.fsf@gnu.org> References: <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> <20220317184701.ani7k3clp3impqwn@Ergus> <865yoc47d2.fsf@mail.linkov.net> <20220317231027.65clapwxz5qtnpm4@Ergus> <86y217d2j3.fsf@mail.linkov.net> <20220318115336.77oa6k6wfsdk5csd@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19545"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org, juri@linkov.net To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 18 13:08:18 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 1nVBP0-0004uQ-2P for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 13:08:18 +0100 Original-Received: from localhost ([::1]:44690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVBOy-00016W-Um for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 08:08:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVBN3-0007GW-2R for emacs-devel@gnu.org; Fri, 18 Mar 2022 08:06:18 -0400 Original-Received: from [2001:470:142:3::e] (port=41140 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 1nVBN2-0004yn-3T; Fri, 18 Mar 2022 08:06:16 -0400 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=cAAF/lNJ5D6KH87SwikdfLPrOro/aemjSg4cFDAAubo=; b=eb5Uk+It4d1E EuKCopAGAOIdEpn6YexhjqCQEp++45o7KZSb4s4W85wCY/lrXxA5TTXCEYBeOxWtQkqfLP4az8TWT 7Xcg2Yrr19OW4zmq4Vb4aZ1QLxePvRDOeV3/5hrWcz0d3n1MJ683AiUZDMbRDpxrhqwOPiLt2Je/d K0g2dK2TSKGJS6mRV8t1ZDKBl+D+OL/wdp4Vurs6vfBO66ssCAyYKKH/453clHp3dmh9tiTPVABLZ 7hv2ii4WoBK53K9rNX5vY8krrAt2lC3BWk1KBm6MsZRCvGYA3qoI1yRJegos4yshEQlRLAHCcIra2 pUo30mJ8cSLMBrwKeGsjag==; Original-Received: from [87.69.77.57] (port=1272 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 1nVBN1-0000ih-2L; Fri, 18 Mar 2022 08:06:15 -0400 In-Reply-To: <20220318115336.77oa6k6wfsdk5csd@Ergus> (message from Ergus on Fri, 18 Mar 2022 12:53:36 +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:287278 Archived-At: > Date: Fri, 18 Mar 2022 12:53:36 +0100 > From: Ergus > Cc: Lars Ingebrigtsen , emacs-devel@gnu.org > > Eli: > > If there is a way to force the display engine to detect a change in a > window and use it to pass *Completions* in the next call to > redisplay--pre-redisplay-functions? I mean to avoid the need to do a > redundant explicit call to redisplay--update-cursor-face-highlight which > doesn't really take effect? The display engine is supposed to figure out by itself that a window needs to be redisplayed, due to some changes in the window or its buffer or anything else that affects the window display. Anything else is a bug, because it means a window will not be redrawn when some change affecting it happens. So I don't think I understand your question. It almost sounds like "can we force redisplay do its job correctly?" I guess some details are missing from your description, which is why I asked for a test case.