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: backward-delete-word? Date: Wed, 11 Dec 2002 14:50:35 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@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 1039647966 9213 80.91.224.249 (11 Dec 2002 23:06:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 23:06:06 +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 18MFvT-0002MW-00 for ; Thu, 12 Dec 2002 00:06:00 +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 18MFqs-0000RD-07 for gnu-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2002 18:01:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: marge.cs.sfu.ca Original-X-Trace: quimby.gnus.org 1039647722 5052 199.60.3.71 (11 Dec 2002 23:02:02 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 11 Dec 2002 23:02:02 GMT X-Attribution: Benjamin Lewis X-Yow: I wonder if there's anything GOOD on tonight? User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:W+hezlYOpFuAKv6UyWk69xkrBg4= Original-Xref: shelby.stanford.edu gnu.emacs.help:108018 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4549 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4549 On 12 Dec 2002, Timur Aydin wrote: > Hi everybody, > > I find myself quite often copying and then pasting something over an > existing string. Because I want to keep my hands on the keyboard, I > don't want to mark the string to be replaced with the mouse and the > paste the correct string. I just do a C-Backspace and then paste. But, > as you would guess, the C-Backspace gets rid of the data that I copied > and if I paste, the string that I want to replace is pasted back! > > C-Backspace invokes backward-kill-word. I guess the problem is the > "kill", which saves the data in the kill ring. I probably need a > "backward-delete-word". Does this thing exist or does it have to be > written? This may not be the ideal solution for you, but note that C-Backspace does not "get rid of" the data that you copied, it merely pushes something on top of it in the kill ring. When you do a yank (C-y), the word you deleted will indeed be inserted, but if you then do a yank-pop (M-y), it will be replaced by the text you want. -- Benjamin Lewis "Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels come." --Matt Groening