From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9391 invoked from network); 25 Sep 2020 14:43:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2020 14:43:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1601045015; b=q3kjizVw0RLHJdH+Fod54GyKkhYNv9SSGD1AEF6fHMEXze0hGmLLGWpbSBDq82RJUTFpSVujrx X1ORCguNCqkg1vCWfP/MfCbg/Awz5Cx1L0JegoZO0Hcqqf+tZVp5rdsy+cFwatEO+0OUvRdBVY LCccgZkg2Xduwjr4jd7adV9S8y86gFfeOmXfrLFAT0UgesgeosNf398QZST52ZyqF97hVSCrWC 8Pk+KFFjCzi/wktcoH2thbyA/E/39YfsgcoRPfSv+8uMc3lki0cIpZVo7j3O4rjpNJN1VpMxF/ aP3Q64BGeWKlkvjb22dDC93oBAe8kMrqWKkLH4/Mk/o3aw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1601045015; bh=gwRom+BBJ88TqMfQDrFbAILbg5kmhbZzc96okhw2DD8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=vex5jGl1spgQu3q1ELgVXwKLCKnttv5gkcOjRUSxv4tKDx4vIxbLSxyBDgyJMZMWMYsE9STAUI uyIwVgJ4InbiVzDtsOz/CsXoqk//8o86xvtjKG0lvxIG6Deqf76plAW9V7gBa9Zpd9HBzxQxn2 tMSvWL2l4hWvSaXe/aljEQb8OPvbMXGoH4U8PlmMemMdESbArqUyOhpC0h9Nvoge7vbP1lrZoA wgi9M80Yzt1VAt1Adj4d0CyavDsMyKQGkDwf3//S2bw2ZdOyShMgFzKUXRagtlq4xCPV6rUPU7 pHq0zCqv0BSPg1hDXwWNVa8CM3kjyCwlI8c0igaBwLKv1A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2il/BAAjhJwK9YC6ugKY58F0Qr/5ME5410vtrH6yEv4=; b=MTOSLcUkDfCvJEm/R6mAd2eLUT dDUoCcvYyFd8gK46zCnnN92wmICM5IrL8ElWi3QbVrKEktY8TWBZHR91iGNZJDHp8akOecKdOK/Rt 10jPM/Evu4Z3Vdi8kqBkbxEKsPL8HXO06uMqwWfzMa8XwujiE0hTSVT6T6buFsx82eGZdr9bKtKac 63w64HQ/jIjMPsyohn5PSEAXUd7JMrYXujTG+FkzjMfAL9WQGs66n+11fMjQ1AZmjfdGR39MHhrA0 T1AbktMrQJkq6s2R71mh74fxZPg+n+MmJQVHwzl9ybmeMus7Dx0AQ9mTViYRtzk28uJ2h9Dz6AW1V 20F0gOeg==; Received: from authenticated user by zero.zsh.org with local id 1kLowf-0003Wt-LB; Fri, 25 Sep 2020 14:43:33 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:32866) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kLowC-0003AN-A8; Fri, 25 Sep 2020 14:43:05 +0000 Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1kLowB-0004Q9-Em for zsh-users@zsh.org; Fri, 25 Sep 2020 16:43:03 +0200 Received: from oxbe21.tb.ukmail.iss.as9143.net ([172.25.160.152]) by smtp1.tb.ukmail.iss.as9143.net with ESMTP id LowBkrSx5dIiKLowBkFev6; Fri, 25 Sep 2020 16:43:03 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 172.25.160.152 X-CNFS-Analysis: v=2.4 cv=Hs/Ip2fS c=1 sm=1 tr=0 ts=5f6e01f7 a=I3kh1BFku3bnNore5KbC7A==:117 a=KEnZaF_ea6UA:10 a=IkcTkHD0fZMA:10 a=DoY9bV0jb9AA:10 a=pGLkceISAAAA:8 a=r3M6a8PoICuxbaIuv0IA:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1601044983; bh=gwRom+BBJ88TqMfQDrFbAILbg5kmhbZzc96okhw2DD8=; h=Date:From:To:In-Reply-To:References:Subject; b=5J4TK1MT2z4XTkr5qVSZsPiUUsGTbgyEw5PgykeNDaZZ09RmTGZJNLkWJ4Un4zPX/ 6TGszc4o0j4Mi+1kYcHAZ8gzy9JLKU+IxLsAkVfD43jFNuOru6lDUN1WWd21/P34ZT MFGFma9JT5mQ5vwYbqLGwkK3Lqc0exj0RglxT0NSWzTbmDmjVXjRbN+KAI+BmE5XNX rZ9/FkZuVZY2Dn1gf59kYIix4MJ8xOHstLrwixDcnXHPaSYFtZXSpU+G/kluZwyI2j Bdvrt4CNIya7LfdrFDbYv6J8K5S3OvtEOAIWLmLOFOQj0H2+aeUIe9siYUnVXKkzii CRMvwKd2P+Kvg== Date: Fri, 25 Sep 2020 15:43:03 +0100 (BST) From: Peter Stephenson To: zsh-users@zsh.org Message-ID: <322971271.67362.1601044983375@mail2.virginmedia.com> In-Reply-To: References: <20200923182558.nfokboenuhdypz45@localhost> Subject: Re: How to avoid infinite recursion in ZLE widgets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.56 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfASQVHVhjvDw1T4Rw4gU7a3PEAl52+yEOBCIVEQkaPNPOKP0GRBBcrqYBZROAhBNcUV7GsZDEuZSX7h66mlQiUriVL81yYSBTWMP1eqBDei/4KCNiUJV 9gaPsW73Fpt/V4xCSooVuxb2sTMp4OHoQNRVSPgvxx3/jsr79SLivfCQRxxV2tGM+LRX5RcGxX8BmNt/uEz8oarx7i1kUPtyize81DZTKg1P+tfJwM70SoLQ X-Seq: 26085 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: > On 25 September 2020 at 15:19 Peter Sl=C3=AD=C5=BEik wrote: > By the way, the documentation says that zle -R should be called after > changing the command line from within a ZLE widget. > > However, when playing with LBUFFER and RBUFFER I realized that zle -R is > not needed and the changes are visible immediately. >=20 > Why is it so? You only need to call zle -R either if you are passing it an argument to show, or if you are bypassing the editor interface somehow so it doesn't know the display has changed. If you use any of the special variables or a zle command to update the command line then ZLE's internals are all consistent and you don't need any special action. pws