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: Fri, 18 Mar 2022 13:38:59 +0100 Message-ID: <20220318123859.2lkpy2zinkrocir7@Ergus> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , larsi@gnus.org, emacs-devel@gnu.org, juri@linkov.net To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 18 13:41:19 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 1nVBuw-00065U-O7 for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 13:41:18 +0100 Original-Received: from localhost ([::1]:52006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVBuv-0001Vd-Bx for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Mar 2022 08:41:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVBtV-0000in-0d for emacs-devel@gnu.org; Fri, 18 Mar 2022 08:39:49 -0400 Original-Received: from sonic312-20.consmr.mail.bf2.yahoo.com ([74.6.128.82]:35358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVBtR-0002Kz-C8 for emacs-devel@gnu.org; Fri, 18 Mar 2022 08:39:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647607183; bh=3n6htLVYfi8s0Mhi0Tn374RYweECGp5NdjUn80d+L+o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=gRBEQjigRTC1+DJD9j1KgJifFOPOEmQK3qPjnHn/b2LvLfBazBRVmEbJDtoyEf9yhKfw49Lp+z5JjkmYft78PfwZ1SLVI3gkdUkQzHjEA2dsI3jZLiEdR70WMliwt8MDgqhufm4o1LaxyzpevzLTGOsjVRfdesxlcMTeEgZougPmtPy5+VlLX9CsfkNQQ4AjqXW7MTcY0S23DzfgpMC4AU5xfFDACx9xTWY+NM0lmWzae5zRFmoIfnbmWfPTv9iZR8fKbsKQQlEl+Yh/BA2l+SU5KdmZwmJ889OaYaNJbRa4Yo3A4i9bGw2yCjcWfADmR7NjEOHb631SsxmdRuS1uA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647607183; bh=/TY3a3+5228qX2kJhBy2QPea22EOMSxofd2b+G2gXbO=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Nst6g2YHa6w/gFo9ClF3Cbq9AD8h8meIK71pFKkSM/DuaZm2npZGdTTtExhwxdix2pahnaU43PzxWxHJ0vdvNWp1Vw1VQRcmo9RNEMPgc++Ne/3VX9aUO0vywluQ9qBfQJxrjGrxb124K1WnVjcKuHW+qROkMcvLoEYdob0LtgbMFszy5i4chKE1FkzeoKKCt38GQu79G0TA7aVF3rT2xQgQXlQt/0rXsDhhbgolKB6A186lbigHJAdIuHPe8lrgYvmVLGES5J7EXCpxDSmDkvFOlZWUUNqYpC7nHZf2iivOT9zMgdepPkurpHZbMuDaJzszWPt7g6WWw+RaBzE0lg== X-YMail-OSG: i2rzX_UVM1ku7hm5ppQ.c1In.aOFskISAsTlCgd2XpQPU3gaVf7hKf5vHVjxiqG 85QZxs547bzC5TwP21H1Zea.utmAXuEfbnJamP9EyJR0iAzkg0P6cRqDOy4QqBXb.dcgMi449J62 YoCi0qVSxOusWKxfEclOuT5E1y4H1ToOEb5dmrYB5RzkpRlLeWgCBv9y6S4b3.KyEPzobGyOzKGI 9WpdNMosPgvT7Rrx3Qkx2KsNjgy61IQFvaKt7Fsaqk6ulKwuHposo8NO1GCku9_9G7g5oF4g3Z.h dAr9noyhkgJnOZbSTjIn40XbQPY.cW3wvsmarXzoVnhuGZc.hic2LugSWgVT6SMOducF9bu_ZP5K xBIqxEzUH6k1UtAudh9dexL0AX.bDfaOEAtHkYm6qrgLHoxV8YOSKrRpx4El3WP8j5kf0T.veXVX vpbog07GysD2jQZVJX4wqjtUm_GfNzaBJkXkLSQIwoZHHPjiLLpvYo7KVKCl0v0eqSSp6QGNkeb8 OoWpaixEamkhJMYuyeR1L_owf.NQ.3dL0d9.miyXw6hm6__rd9hQG5hzoFO5OHGe7FvxX9DxHHYg EQhV3vcdhSyQqmrD.Yvlas.3PxpTm.yr8qlADNv7mIpc2o99BknUz34Z1rDH4TK.wFHNk03.p7Al bHY2aIKDMLNWecvdChxkW_GuSdgs0Q8xI.AFb3mInFF6AEQaB2niPGXyE42x5wB_xy2DL0UCE1ZJ zlaTfXAQ4iD.s73t5dOJ64VQATWiwffEWwmOY3hyM.BIGMmeMjL5CXhaiL.68XAABwHo5Yx0BbRv py5THcu3VbkMLwLgGjF97LgkM2KfJVc875E_ApcEy. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Fri, 18 Mar 2022 12:39:43 +0000 Original-Received: by kubenode504.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 966395fcdd5dd0646f040246d9ef711f; Fri, 18 Mar 2022 12:39:38 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.19894 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.82; envelope-from=spacibba@aol.com; helo=sonic312-20.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=unavailable 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:287284 Archived-At: 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))