From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20770 invoked by alias); 28 Oct 2016 08:19:02 -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: 39746 Received: (qmail 10741 invoked from network); 28 Oct 2016 08:19:02 -0000 X-Qmail-Scanner-Diagnostics: from new2-smtp.messagingengine.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(66.111.4.224):SA:0(0.0/5.0):. Processed in 0.135168 secs); 28 Oct 2016 08:19:02 -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.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@fastmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.messagingengine.com designates 66.111.4.224 as permitted sender) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=i90V+14sHOK1A/+NiGdu6T3UfGc=; b=jjn+TA AEsql66K0O6FSEf2qrzrrj+RX945FUBzxLzJY02FddjN6aFzTvu0caI162PhFs+1 KUBiNGeUoCHjA/xZal9Aiid1VUiYKUMXVlCsjZ99C1NtHf0qmhbcwm98UZ4MNy4M cr/1adr68p8fj+bVKvZWqa3wc+GxB7OTsvkHE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=i90V+14sHOK1A/ +NiGdu6T3UfGc=; b=laFiKDx+GO8Sfhv4JcNMhR4acB9RjkW1nFuzyGtAsnqcEJ q8tvHB6SmnfU8pcQnaj8rsHLwiMq0oukdu1I7q07z92Vm+eWCWVPA7a3p5mi8IUk XJn7IrvyxV7VlP6ijMSyuF3qxQAXKKaCKk9+UQUBiUsLuaUg7cqN/RNp7qHqA= X-ME-Sender: Message-Id: <1477642738.995456.770012089.09023ED8@webmail.messagingengine.com> X-Sasl-Enc: bYV2il9HlvnmIJUmDog2en7MPtfbaFTz7e3CVwMP5s2N 1477642738 From: Sebastian Gniazdowski To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-996895c6 Subject: =?utf-8?Q?Upcoming=20zle-line-?= =?utf-8?Q?pre-redraw=20hook=20=E2=80=93=C2=A0?= =?utf-8?Q?can=20it=20be=20saved=20an?= =?utf-8?Q?d=20restored=3F?= Date: Fri, 28 Oct 2016 01:18:58 -0700 Hello There is the zle-line-pre-redraw hook upcoming that will be used by zsh-syntax-highlighting. I wonder if it will be possible to save, disable and then restore the hook? The point is, I want to have clear environment in recursive-edit. It's now fully possible, defining own keymap, restoring original widgets to specific keys, overloading self-insert with .self-insert, calling recursive-edit with `-K ownkeymap`. This way interference from the two popular code-injecting plugins =E2=80=93 zsh-autosuggestions and zsh-syntax-highlighting =E2=80=93 can be inhibited. With zle-line-pre-redraw, one will have to also save the hook, disable it, then restore it after leaving recursive-edit. Will this be possible? PS. This can also be needed for vared. Currently z-sy-h tries to colorify what user enters, what has rather bad effects, as things are basically drawn in red. --=20 Sebastian Gniazdowski psprint@fastmail.com