From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16877 invoked from network); 11 Oct 2003 19:47:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Oct 2003 19:47:52 -0000 Received: (qmail 24627 invoked by alias); 11 Oct 2003 19:47:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6689 Received: (qmail 24584 invoked from network); 11 Oct 2003 19:47:36 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Oct 2003 19:47:36 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.193.203.32] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Oct 2003 19:47:35 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id h9BJlU001445; Sat, 11 Oct 2003 21:47:30 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A8PmH-0005so-00>; Sat, 11 Oct 2003 21:51:49 +0200 Date: Sat, 11 Oct 2003 21:51:49 +0200 From: DervishD To: Bart Schaefer Cc: Zsh Users Subject: Re: delete-word does not delete the entire word... Message-ID: <20031011195149.GA22610@DervishD> Mail-Followup-To: Bart Schaefer , Zsh Users References: <20031011121052.GA5092@DervishD> <1031011173654.ZM13301@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1031011173654.ZM13301@candle.brasslantern.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Bart :) * Bart Schaefer dixit: > } where '_' is the cursor position, the entire word jfinvnck is not > } deleted, just the portion between the cursor and the end of the word. > } That's not what I expect > Out of curiosity, WHY is that not what you expect? Because when I want to delete a word, I mean the entire word, not just a portion from the cursor O:) Back when I used bash, I didn't mess with words, really. In fact I wasn't doing with zsh, neither, but recently I bind delete-word and delete-backward-word for speed. I don't know what happens in other shells :??? Anyway, with zsh I can modify this behaviour :) > It's pretty standard behavior of unix-derived text editors to treat > the cursor position as dividing the buffer into two parts, and then > acting on only one of those parts at a time. Maybe, I don't really know. I don't feel like telling what I think about vi or emacs, but when documentation say 'word' I assume 'entire word', not 'from cursor position to...' ;)) You're right: my usual editor, joe, does just the same, and I suppose all editors do the same (believe it or not, I don't use delete word commands in joe at all...). That's why I was asking. Obviously, it's my fault O:) I'll write a wrapper around word deletion commands so they act on the entire word ;) Thanks for pointing that, I thought that 'joe' was acting on complete words, but it is not true! Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/