From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?ISO-8859-15?Q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Kill ring and backward-kill-word Date: Mon, 12 Dec 2005 21:00:08 +0100 Organization: 1&1 Internet AG Message-ID: References: <1134408189.686637.151960@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1134424331 28416 80.91.229.2 (12 Dec 2005 21:52:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2005 21:52:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 12 22:52:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElvXa-0004tg-40 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Dec 2005 22:49:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElvXO-00030U-TL for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Dec 2005 16:48:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.wind.surfnet.nl!humbolt.nl.linux.org!news.nl.linux.org!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: p54bec199.dip0.t-ipconnect.de Original-X-Trace: online.de 1134417228 3758 84.190.193.153 (12 Dec 2005 19:53:48 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Mon, 12 Dec 2005 19:53:48 +0000 (UTC) User-Agent: KNode/0.9.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:136289 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31904 Archived-At: Shug Boabby wrote: > could someone please tell me how to turn off adding text to the kill > ring when i am using M-x backward-kill-word? it is a very annoying > "feature". ;; Here are two from simple.el adapted Funktions, which should work as desired. (defun delete-word (arg) "Delete characters forward until encountering the end of a word. With argument, do this that many times." (interactive "p") (delete-region (point) (progn (forward-word arg) (point)))) (defun backward-delete-word (arg) "Delete characters backward until encountering the end of a word. With argument, do this that many times." (interactive "p") (delete-word (- arg))) ar PS.: If its your problem to yank former kills back, use M-y, also repeated