Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: backward-kill-word behavior



On Jun 25, 10:36pm, Peter Stephenson wrote:
> 
> We can supply functions that do this.  The deletion is a trivial one-line
> parameter substitution.  However, pushing the deleted part onto the kill
> ring appears to be rather harder.  You can manipulate point and mark, but
> that messes up the user's state.  Is it really impossible to do this as the
> internals do, or have I missed something?

Is there something wrong with:

    function bash-backward-kill-word {
	local WORDCHARS=''
	zle .backward-kill-word
    }


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author