From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14154 invoked from network); 26 Jun 2001 13:21:44 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Jun 2001 13:21:44 -0000 Received: (qmail 21735 invoked by alias); 26 Jun 2001 13:20:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15092 Received: (qmail 21707 invoked from network); 26 Jun 2001 13:20:12 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: backward-kill-word behavior In-reply-to: "Peter Stephenson"'s message of "Tue, 26 Jun 2001 00:56:31 BST." <20010625235636.EA90814286@pwstephenson.fsnet.co.uk> Date: Tue, 26 Jun 2001 11:20:17 +0100 From: Peter Stephenson Peter Stephenson (`I') wrote: > Here's my proposal for allowing text to be put into the kill buffer (and > hence onto the kill ring). > > +item(tt(-P) [ tt(-bk) ] var(string))( > +This puts var(string) into zsh's kill buffer for use with a subsequent > +tt(yank), causing the kill-ring to be rotated. By default, var(string) > +will simply overwrite the text in the buffer; if the tt(-k) option is > +given, it behaves instead like a kill command in that subsequent kills or > +calls to tt(zle -P) cause var(string) to be appended to the existing text > +in the kill buffer. If the flag tt(-b) is given, the the var(string) is > +instead inserted before any existing text in the kill buffer; this is used > +when emulating kills in the backward direction. > ) This is somewhat garbled. The point about the `kill' behaviour is that it always means that the *next* operation on the kill buffer will append/prepend instead of overwrite, if it follows immediately. Thinking about it, it might be simpler to impose the -k behaviour and just have the option -b for control. This works much more like real kill commands and you can do tricks with other (non-kill) zle commands if you need to control the buffer. Unless there's a neater way of doing it? -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** 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. **********************************************************************