[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zap-up-to-char in Emacs

From: Benjamin Lewis
Subject: Re: Zap-up-to-char in Emacs
Date: Thu, 05 Dec 2002 15:17:21 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

On Thu, 5 Dec 2002, Jiri Pejchal wrote:

> Hi,
> 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?

Interactively, why not just do M-z CHAR CHAR ?

If you're writing a function, you could do
(zap-to-char CHAR)
(insert-char CHAR 1)

Benjamin Lewis

Seeing is deceiving.  It's eating that's believing.
                -- James Thurber

reply via email to

[Prev in Thread] Current Thread [Next in Thread]