From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16609 invoked by alias); 21 Nov 2014 15:20: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: 33741 Received: (qmail 24153 invoked from network); 21 Nov 2014 15:20:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: PATCH: key bindings, fixes, docs, tests for vi stuff From: "Jun T." In-Reply-To: <15511.1416528068@thecus.kiddle.eu> Date: Sat, 22 Nov 2014 00:20:25 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <930.1416260160@thecus.kiddle.eu> <42F4E5F2-97E7-4803-87CB-B1C67CD943B2@kba.biglobe.ne.jp> <15511.1416528068@thecus.kiddle.eu> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 50606 2014/11/21 09:01, Oliver Kiddle wrote: > On 18 Nov, "Jun T." wrote: >> Apparently 'daw' is not working. > > With this patch, that test failure should now be fixed. Yes, it has been fixed. But now I get another failure on my Mac: *** 1,2 **** ! BUFFER: X `one`X $(echo two)X" three "X$'four'XfiveX${six:-6} CURSOR: 0 --- 1,2 ---- ! BUFFER: X `one`X $(echo two)X" three "X$'four'fiveX${six:-6} CURSOR: 0 Test ./X02zlevi.ztst failed: output differs from expected as shown above for: zletest $' `one` $(echo two) " three " $\'four\'\C-v\tfive ${six:-6}\e' \ vaaom{a,b,c,d,e,f}v \`{a,b,c,d,e,f}rX Was testing: all argument for different arguments This is due to that ^V is interpreted as the 'lnext' control character by the slave tty. Yet another ad hoc workaround is to modify line 37 of Test/comptest to stty 38400 columns 80 rows 24 tabs werase undef lnext undef Here, 'lnext undef' can be replaced by '-iexten'. Surprisingly (at least to me), 'werase undef' can also be replaced by '-icanon' for the tests including '^W' to succeed: stty 38400 columns 80 rows 24 tabs -icanon -iexten 'bindkey -r "\e~"' is still required for the test 'swap case on a blank line' to succeed. Jun