From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2483 invoked from network); 13 Oct 2003 10:20:11 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Oct 2003 10:20:11 -0000 Received: (qmail 22926 invoked by alias); 13 Oct 2003 10:19:51 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6697 Received: (qmail 22889 invoked from network); 13 Oct 2003 10:19:51 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Oct 2003 10:19:51 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Oct 2003 10:19:50 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.cambridgesiliconradio.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Mon, 13 Oct 2003 11:04:23 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 13 Oct 2003 11:04:44 +0100 To: Zsh Users Subject: Re: delete-word does not delete the entire word... In-reply-to: "Bart Schaefer"'s message of "Sun, 12 Oct 2003 20:12:00 -0000." <1031012201200.ZM19798@candle.brasslantern.com> Date: Mon, 13 Oct 2003 11:04:08 +0100 Message-ID: <3762.1066039448@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 13 Oct 2003 10:04:44.0835 (UTC) FILETIME=[6D586F30:01C39171] Bart Schaefer wrote: > I almost mentioned the -match functions, but decided not to because the > manual section for them has no examples of the corresponding styles. Look in select-word-style, which is the simple interface, not requiring explicit styles set by the user. If you'd like the styles there shown in the manual, too, fine. > } [ delete-whole-word ] : > } > } emulate -L zsh > } setopt extendedglob > > Why does this need extendedglob? It probably doesn't, but I turn that on as a matter of course, since otherwise it's not there when I need it, or I've made it difficult to turn it on later, etc. In any case, whenever I use patterns I assume extended globbing is present even if I don't use it. > } # Move the cursor and delete the block in one go for the > } # purpose of yanking. > } (( CURSOR = pos1 )) > } BUFFER="${BUFFER[1,pos1]}${BUFFER[pos2,-1]}" > > I'm a little puzzled by that comment. This is delete-whole-word, not > kill-whole-word, so there shouldn't be any expectation of yanking ... > and in fact when I try it I can't yank the word that was deleted. Yes, I meant `undo' rather than yank. You should find it undoes in one go. > It's clear from kill-word-match that BUFFER edits are not automatically > propagated to CUTBUFFER. Which makes sense ... Indeed, there's a complete separate interface as used in the other -match functions. (I should have called this one delete-whole-word-match for consistency.) -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************