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:57:21 +0200 Message-ID: <83y217fmfi.fsf@gnu.org> References: <20220314090826.gyc42227jpvh4efa@Ergus> <86zglsiazs.fsf@mail.linkov.net> <20220317184701.ani7k3clp3impqwn@Ergus> <865yoc47d2.fsf@mail.linkov.net> <20220317231027.65clapwxz5qtnpm4@Ergus> <83bky3hizx.fsf@gnu.org> <831qyzh34y.fsf@gnu.org> <20220318122324.ia73sz2ils5hez5b@Ergus> <20220318123859.2lkpy2zinkrocir7@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9144"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, juri@linkov.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 18 14:02:10 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 1nVCF8-0002FP-Np for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 14:02:10 +0100 Original-Received: from localhost ([::1]:39290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVCF7-0006KL-Eo for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 09:02:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVCAa-0002NO-2Y for emacs-devel@gnu.org; Fri, 18 Mar 2022 08:57:31 -0400 Original-Received: from [2001:470:142:3::e] (port=48010 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 1nVCAY-0006U2-8V; Fri, 18 Mar 2022 08:57:26 -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=uobAAwX7ao1VEbwT8X4aSU6QD/SbCRP6eDURccORCkk=; b=RTuLc6nEq7mL eC7izL+d3NWEusrMPepLp5tP6jPQu1F6p87jfpo2G0ss8ABm0SOFL24FNjrZpug4hSQsueXepS0MP AF6JWm7N5jSQPmnM2cafpIhuxnfWLTMFwFnA9hf6kUBYazD+CCCd20MVL0LtHq31t9AvcWtJsyhTX 6LJhfSLsMGgBZ7+VhV2rbss76VSzpJWf0N+MkXIUD4WcsSfe9NvMmg5H73YUw/jjURTIxNetg1qWc 8PrDEgSgoxL1JMFINMz2EKtpZTjts381rpYxB4eoetFwtP3hAx6r9mgS7Ur6RiKN2OGbx8H4irRsb 0Z81ZgPKZFUtWR87+v2X0Q==; Original-Received: from [87.69.77.57] (port=4391 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 1nVCAW-0006Bu-BU; Fri, 18 Mar 2022 08:57:26 -0400 In-Reply-To: <20220318123859.2lkpy2zinkrocir7@Ergus> (message from Ergus on Fri, 18 Mar 2022 13:38:59 +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:287285 Archived-At: > Date: Fri, 18 Mar 2022 13:38:59 +0100 > From: Ergus > Cc: Eli Zaretskii , larsi@gnus.org, emacs-devel@gnu.org, > juri@linkov.net > > On Fri, Mar 18, 2022 at 08:35:04AM -0400, Stefan Monnier wrote: > >> Then from scratch try commands like (just an example): > >> > >> (with-current-buffer "test" > >> (right-char) > >> (insert "X")) > >> > >> Or similes several times... > >> You will see that the region is not updated. > > > >With your above test, I do see the region being updated. > > > >When it fails to do its job is for: > > > > (with-selected-window (next-window) (forward-line -1)) > > > >I.e. when the only change in that other window is that point was moved. > > > >The redisplay does update the cursor but it fails to run > >`pre-redisplay-functions` in that other window :-( > > > > > > Stefan > > > You are right sorry... the example code should has been: > > (with-selected-window (get-buffer-window "test" 0) > (right-char)) Thanks, please submit a bug report with the relevant reproducer, and I will take a look.