From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: delete-word does not delete the entire word...
Date: Sun, 12 Oct 2003 20:12:00 +0000 [thread overview]
Message-ID: <1031012201200.ZM19798@candle.brasslantern.com> (raw)
In-Reply-To: <20031012183111.795968542@pwstephenson.fsnet.co.uk>
On Oct 12, 7:31pm, Peter Stephenson wrote:
}
} If you have 4.1, much of the work is done for you; see the description
} of match-words-by-style in the zshcontrib manual.
[...]
} A side effect is that you can decide using styles what constitutes a
} word, as described in the same section of the manual.
I almost mentioned the -match functions, but decided not to because the
manual section for them has no examples of the corresponding styles.
} [ delete-whole-word ] :
}
} emulate -L zsh
} setopt extendedglob
Why does this need extendedglob?
} # Move the cursor and delete the block in one go for the
} # purpose of yanking.
} (( CURSOR = pos1 ))
} BUFFER="${BUFFER[1,pos1]}${BUFFER[pos2,-1]}"
I'm a little puzzled by that comment. This is delete-whole-word, not
kill-whole-word, so there shouldn't be any expectation of yanking ...
and in fact when I try it I can't yank the word that was deleted.
It's clear from kill-word-match that BUFFER edits are not automatically
propagated to CUTBUFFER. Which makes sense ...
next prev parent reply other threads:[~2003-10-12 20:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-11 12:10 DervishD
2003-10-11 17:36 ` Bart Schaefer
2003-10-11 19:51 ` DervishD
2003-10-11 21:00 ` Bart Schaefer
2003-10-12 8:57 ` DervishD
2003-10-12 16:32 ` Bart Schaefer
2003-10-12 17:05 ` DervishD
2003-10-12 18:31 ` Peter Stephenson
2003-10-12 20:12 ` Bart Schaefer [this message]
2003-10-13 10:04 ` Peter Stephenson
2003-10-13 9:09 ` DervishD
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=1031012201200.ZM19798@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.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).