[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Zap-up-to-char in Emacs
From: |
Jesper Harder |
Subject: |
Re: Zap-up-to-char in Emacs |
Date: |
Fri, 06 Dec 2002 00:10:26 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu) |
Jiri Pejchal <xpejchal@nymfe33.fi.muni.cz> writes:
> function zap-to-char
>
> `M-z CHAR'
> Kills through the next occurrence of CHAR (`zap-to-char').
>
> is there a function in Emacs similar to zap-up-to-char in XEmacs that
> would kill up to and not including the next occurencce of CHAR?
Emacs (21) _has_ the function `zap-up-to-char' by default bound to the
same key as in XEmacs:
,----[ C-h k M-z ]
| M-z runs the command zap-to-char
| which is an interactive compiled Lisp function in `simple'.
| (zap-to-char ARG CHAR)
|
| Kill up to and including ARG'th occurrence of CHAR.
| Case is ignored if `case-fold-search' is non-nil in the current buffer.
| Goes backward if ARG is negative; error if CHAR not found.
`----