zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: backward-kill-word behavior
Date: Mon, 25 Jun 2001 22:36:33 +0100	[thread overview]
Message-ID: <20010625213638.AE56C14286@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Clint Adams"'s message of "Mon, 25 Jun 2001 15:10:45 EDT." <20010625151045.A32662@dman.com>

Clint Adams wrote:
> I am inundated with messages about how backward-kill-word
> doesn't behave as in bash.  Can something be put into
> the FAQ?

I suppose you mean that it uses $WORDCHARS instead of just alphanumeric
characters.  There are various other points about this.

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?  If the former, then an extra
option to zle to do what killing does with a string would be simple and
sensible, and then we can write compatibility functions like this quite
easily.

Sometime ago I mentioned I didn't like the way $WORDCHARS worked and would
rather be able to list things which weren't part of words.  Now, however, I
think doing this with functions is probably a better way to go.  If we add
the kill feature, does anybody want to cobble a few functions with more
configurable wordiness, possibly defaulting to bash behaviour, together?
Else I do it myself.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


  reply	other threads:[~2001-06-25 20:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-25 19:10 Clint Adams
2001-06-25 21:36 ` Peter Stephenson [this message]
2001-06-25 22:43   ` Bart Schaefer
2001-06-25 23:56     ` Peter Stephenson
2001-06-26 10:20       ` Peter Stephenson
2001-06-26 13:24         ` Sven Wischnowsky
2001-06-26 14:00           ` Peter Stephenson
2001-06-26 14:01             ` Sven Wischnowsky
2001-06-26 14:19               ` Peter Stephenson
2001-06-27 13:41     ` Clint Adams
2001-06-27 14:01       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010625213638.AE56C14286@pwstephenson.fsnet.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).