From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12090 invoked by alias); 11 Jan 2017 19:37:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40330 Received: (qmail 21733 invoked from network); 11 Jan 2017 19:37:26 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f181.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.181):SA:0(-0.7/5.0):. Processed in 3.734839 secs); 11 Jan 2017 19:37:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.181 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=aHGgDgVG/X9c0qG50/9e1t9Ed9S5a3FESF8OL/Cm+eQ=; b=cu7DO053Z2o0aNHpd0OQ+xO7qUNhhfxy/zubBivy+FNfK0Wtr+bsbdO+dbmNH2iU4R OBnw9VqntSRNK2RpJqossIPZqLx2k+pgUsXfnJH0Z7v92w0ZrJHs6ZrnxOIyONHhE+ep JNPsCCsUgYJM57xMbCyeG+QIc5nsFWSQAxl8DgjppDCLuh0U3zwYxxw9KARZLrEcCPZa +mCKzLwWLzgu70SSkjaJolpcj7M7iyOegYrTH11KBeH4UI5lW5dSrmJ6iX/HlBAfIIIP xXAm+js9jTmHLXusF5PmIJ+2668LWWbpcfTZgqTe1+8VaPWxq/0eTY4IEAuU7gXhWynH 9X5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=aHGgDgVG/X9c0qG50/9e1t9Ed9S5a3FESF8OL/Cm+eQ=; b=L4wYSHlGuNTr+OPLg/BawpgUCeD6mFBZYDTV3Ys6ugpR43Rg4N7ACvSSmSrGI2IQR6 WFtyqG53a6UGMXBZp6yEMLVsqsqTe2S07uBB7XBnLeyAulE6LitUl7isi9Mh6I9JcrQl HOLKTzEXb+ypcxZNsg6ht1hTYFETd/NmVBrd4igcGwj4qkCCWjl3SqW+IEjbDFJu682U JGVyb1ikoiyuLbHsrEfP+l3G+upuZQydfdLp4MATWvzzE5iL5WvEWu+rQRZ7x4zkUPwX vf8VQpC2MwwcAQXP2v1y4rmWH/1OInLqxm6X2ShfPSn0EjGC+R8DKqowiZA2D6iKs5z8 m4gg== X-Gm-Message-State: AIkVDXJheK5zUW3Jtjkzz3tv/kgH+Hgh+B8yIbjenW1IUZqOaamnGRkyXEec6n6k5qPrRTqKp67lMA+Q0AakHw== X-Received: by 10.200.54.252 with SMTP id b57mr7461814qtc.113.1483926495329; Sun, 08 Jan 2017 17:48:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20170109013526.GA25236@fujitsu.shahaf.local2> References: <20170106172541.GA14113@fujitsu.shahaf.local2> <20170109013526.GA25236@fujitsu.shahaf.local2> From: Bart Schaefer Date: Sun, 8 Jan 2017 17:48:15 -0800 Message-ID: Subject: Re: [PATCH] isearch: do not use PAT_STATIC since we call zle hooks To: "zsh-workers@zsh.org" Content-Type: text/plain; charset=UTF-8 On Sun, Jan 8, 2017 at 5:35 PM, Daniel Shahaf wrote: > > Is there a way to probe for this bug at runtime? I.e., a way for > a script to determine whether the zsh binary that interprets it has or > hasn't this bug? You'd need something similar to the zpty-based Test/ scripts for completion and vicmd, because you need to invoke interactive search with a hook function. For this specific bug, that is. One could probably devise by examination of all uses of PAT_STATIC in the code base a test for the more general case with trap handlers that I mentioned elsewhere in the thread.