From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Yeske Newsgroups: gmane.emacs.devel Subject: Re: kill-ring-max or other var to convert killing to deleting? Date: Fri, 03 Mar 2006 14:46:48 -0800 Message-ID: <87slpzxi1z.fsf@cut.bc.hsia.telus.net> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141426127 27724 80.91.229.2 (3 Mar 2006 22:48:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 22:48:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 03 23:48:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFJ4c-0002WV-Bi for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2006 23:48:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFJ4d-0004Yn-51 for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2006 17:48:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FFJ34-0003l0-R0 for emacs-devel@gnu.org; Fri, 03 Mar 2006 17:46:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FFJ2y-0003iv-MA for emacs-devel@gnu.org; Fri, 03 Mar 2006 17:46:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFJ2y-0003in-EO for emacs-devel@gnu.org; Fri, 03 Mar 2006 17:46:52 -0500 Original-Received: from [199.185.220.220] (helo=priv-edtnes56.telusplanet.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FFJ4k-0003wu-Eu for emacs-devel@gnu.org; Fri, 03 Mar 2006 17:48:42 -0500 Original-Received: from cut.bc.hsia.telus.net ([207.6.239.189]) by priv-edtnes56.telusplanet.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060303224649.BFPQ7163.priv-edtnes56.telusplanet.net@cut.bc.hsia.telus.net>; Fri, 3 Mar 2006 15:46:49 -0700 Original-To: "Drew Adams" In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51104 Archived-At: But wouldn't it be handy, generally, to be able to just convert an existing `kill-*' function to a `delete-*' function? That is, bind some flag to indicate that the deleted text is not to be added to the kill ring: (let ((kill-p nil)) (backward-kill-word arg)) What about this: (defun backward-delete-word (arg) (interactive "p") (let (kill-ring kill-ring-yank-pointer) (backward-kill-word arg)))