From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id DAA09504 for ; Fri, 17 May 1996 03:28:52 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA04264; Thu, 16 May 1996 13:10:02 -0400 (EDT) Resent-Date: Thu, 16 May 1996 13:10:02 -0400 (EDT) From: "Barton E. Schaefer" Message-Id: <960516100944.ZM27581@zyrcon.z-code.com> Date: Thu, 16 May 1996 10:09:44 -0700 In-Reply-To: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic) "Re: kill-word & friends in ZLE" (May 16, 2:00pm) References: <199605161200.OAA23447@jagor.srce.hr> <199605152302.BAA13777@jagor.srce.hr> <11210.199605152318@stone.dcs.warwick.ac.uk> <9605161456.AA34688@rumor.fishkill.ibm.com> In-Reply-To: (Mike Kazda) "Re: kill-word & friends in ZLE" (May 16, 10:56am) Reply-To: schaefer@z-code.ncd.com X-Face: czU|*h"p8AX?4.I.yU.^s%TIMx|"-s,*'|#H^|e,QjE&!jL%<]:-.U/;khS%3a2BC5_d#)( mz=$$G0u9P&*N8cA~b[URf;lgKRif@#qEf[ltie#Gg0%6$b`e`k.Cgw:\qJx\\a7c(K7^3;gXW:e1@ J (Mike Kazda), hniksic@public.srce.hr Subject: Re: kill-word & friends in ZLE Cc: zsh-workers@math.gatech.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"O718y3.0.Y21.f5scn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1089 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On May 16, 2:00pm, Hrvoje Niksic wrote: } Subject: Re: kill-word & friends in ZLE } } In your mail, you said: } [...] } > Another satisifactory option would be something like "yank-word", so I } > could yank back the most-recently-killed word, rather the whole line, } } Why don't you use C-y? This works for me: } fly% ls foo bar[Esc-Backspace][C-y] } erases and returns bar on the line. Yes, but: % ls foo bar[esc-backspace][esc-backspace][c-y] erases and then returns "foo bar". What I want to do is erase "foo bar" and then return only "foo". "Undo" is the closest approximation. } Furthermore, all the kills enter the } kill-ring and are reaccessible. Doesn't help, because "foo" isn't in the kill ring all by itself, it's in the same kill-ring entry with "bar". On May 16, 10:56am, (Mike Kazda) wrote: } Subject: Re: kill-word & friends in ZLE } } I tried setting the following in zsh (beta17) and it had no effect: } } WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' } } Do you have any hints? WORDCHARS has always bugged me because it does NOT specify characters that are word *breaks*, it specifies characters *in addition to alphabetics and numerals* that are *included* in words. So you need to *remove* characters from WORDCHARS to get them to be taken as word breaks. That's why this thread started with a patch to default WORDCHARS to nothing at all. -- Bart Schaefer Vice President, Technology, Z-Code Software schaefer@z-code.com Division of NCD Software Corporation http://www.well.com/www/barts http://www.ncdsoft.com/ZMail/