From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17427 invoked by alias); 6 Oct 2016 00:46:30 -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: 39577 Received: (qmail 1701 invoked from network); 6 Oct 2016 00:46:30 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f173.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.220.173):SA:0(1.1/5.0):. Processed in 0.312037 secs); 06 Oct 2016 00:46:30 -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=1.1 required=5.0 tests=DATE_IN_PAST_03_06, FREEMAIL_FROM,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.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.220.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SHQOEJkf/bt9WPv+Q0Iez5KmBdVvbczLBczyxt3T158=; b=JRpK7agWGd2CFMnfr1MpK9sWiJ/eHHoEjrtd8xCUo9irgEd8WjR/z+flXbH+10UE4+ mS8R+HWNnlrxdrPJGIypOxOiU70q9tGJWXRxmDx2BRxUm5yx1Ie77dz5oe8cprmWsFCY tDCmk0gM6dgGkImBL7lBQreUZLoCPLlzxZX+pIUQiVt4adWvOyWO+T1DznY2zGJwomy9 ZkXi1b38vXS/124epZPvVit4sTynAl2yOhl1mTpJ8nK2IDLQkn8mBnN/N8FGllxbdk28 t05VHHaJouyXQLWt+Eap6Wb7/BmLTsCEnJcuVF7xqoZAZUmwi/HM01jPv9gFqEKgykag 424g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SHQOEJkf/bt9WPv+Q0Iez5KmBdVvbczLBczyxt3T158=; b=Hh1aL0AlzMV39hl4GcmYNrLfU2c5y0Sn57zdGdsVmj/27/7bvBMropZ0Ir/ReQDaba OuKcQxzn345tWdscCBr2IBkw8vSH7FKmMF5Eb1iHN144b5EcYepQKg1IUnHrzLrT76S9 DhwezLMAyRH9yfi0wlQ2DO8mHpAJRkkhR304/BadwPgUwNhfJptxpeqFYbjaGQMzgZyr oRj0kACmgWnyWvh1+T8CVlsKjZ09cM3UmDEkzjiZoc32fLZ5TrasCYeoRVM+YASb/7bS vnajyJbFsL63TUbEDvJS4Hj/lFhaVTmTbIUX6e8TJErq2ms/n8FWKGFoKOT2KpJ0/N+U c2vg== X-Gm-Message-State: AA6/9RlwGTganmCdzZQfQr74LA//C/9xpBwgvw5G/VwQzv7IR6jAyKAqqbO1he4ZnL/VmsT6oSStr+RVnL6WsQ== X-Received: by 10.55.185.197 with SMTP id j188mr11504053qkf.288.1475699786772; Wed, 05 Oct 2016 13:36:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <161005113109.ZM12765@torch.brasslantern.com> References: <160924133140.ZM29034@torch.brasslantern.com> <160930134446.ZM17118@torch.brasslantern.com> <161004231456.ZM10640@torch.brasslantern.com> <161005113109.ZM12765@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Wed, 5 Oct 2016 22:36:06 +0200 Message-ID: Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On 5 October 2016 at 20:31, Bart Schaefer wrote: > On Oct 5, 12:27pm, Sebastian Gniazdowski wrote: > } I thought about trapping INT when detected that > } in .recursive-edit, but directly that's "Ctrl-C problems" stuff > > trap 'zle && zle .send-break' INT # might be helpful with localtraps Thanks, was about to search for a way to interrupt recursive-edit. > } > Either open a named pipe file (mknod p filename), or use the zsh/tcp > } > module as in the example that appears in the documentation. > } > } That are rather heavy-implementation things > > Is having a named pipe file really that much heavier than having the > shared text file plus that external flocking app to synchronize the > access to it? Binaries are cool if they are created using small, portable C code. Compilation is fast, without "strcasestr() exists?" problems, and so many such C programs out there, expecting them to compile everywhere after I compiled util-linux/flock on FreeBSD and OS X. Tried to convert program "highlight" to return region_highlight and it was much worse because it's large C++ code without configure script. Thinking about what's actually heavy and what's not made me realize that I might refuse a good solution, after all it's only one *period_passed function that needs to be called. Will check this soon. Best regards, Sebastian Gniazdowski