From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Lewis Newsgroups: gmane.emacs.help Subject: Re: Zap-up-to-char in Emacs Date: Thu, 05 Dec 2002 15:17:21 -0800 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039131318 27561 80.91.224.249 (5 Dec 2002 23:35:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2002 23:35:18 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18K5WW-0007AB-00 for ; Fri, 06 Dec 2002 00:35:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18K5Ne-0004kh-00; Thu, 05 Dec 2002 18:26:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.net.uni-c.dk!uninett.no!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: marge.cs.sfu.ca Original-X-Trace: quimby.gnus.org 1039130759 29570 199.60.3.71 (5 Dec 2002 23:25:59 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 5 Dec 2002 23:25:59 GMT X-Attribution: Benjamin Lewis X-Yow: I FORGOT to do the DISHES!! User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:gbEK1R9GUg3hDRZlCxhiwAsNgTQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:107783 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4333 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