From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: No copy when killing Date: Mon, 16 Jun 2008 19:21:01 +0200 Message-ID: <87hcbtz476.fsf@dod.no> References: <39fbd280-441d-498e-9a53-ce3188f31398@d77g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1213637050 7824 80.91.229.12 (16 Jun 2008 17:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 17:24:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 19:24:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K8IQr-0001Sh-Cz for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 19:23:54 +0200 Original-Received: from localhost ([127.0.0.1]:50166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8IQ1-0005mg-Tm for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 13:23:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8IPe-0005l9-6I for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 13:22:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8IPX-0005hz-4i for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 13:22:36 -0400 Original-Received: from [199.232.76.173] (port=33759 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8IPX-0005hw-1F for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 13:22:31 -0400 Original-Received: from smtp.getmail.no ([84.208.20.33]:42840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8IPW-0005aj-7b for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 13:22:30 -0400 Original-Received: from pmxchannel-daemon.no-osl-m323-srv-004-z2.isp.get.no by no-osl-m323-srv-004-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) id <0K2K00616G92HK00@no-osl-m323-srv-004-z2.isp.get.no> for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 19:22:14 +0200 (CEST) Original-Received: from smtp.getmail.no ([10.5.16.1]) by no-osl-m323-srv-004-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K2K00LR7G72ZN70@no-osl-m323-srv-004-z2.isp.get.no> for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 19:21:02 +0200 (CEST) Original-Received: from doohan.bang.priv.no ([84.208.251.241]) by no-osl-m323-srv-009-z1.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K2K00CULG72K860@no-osl-m323-srv-009-z1.isp.get.no> for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 19:21:02 +0200 (CEST) Original-Received: from [10.10.10.13] (helo=oslbanstelt) by doohan.bang.priv.no with asmtp (Exim 3.36 #1 (Debian)) id 1K8IO5-0003d1-00 for ; Mon, 16 Jun 2008 19:21:01 +0200 Original-Received: from bangste by oslbanstelt with local (Exim 4.69) (envelope-from ) id 1K8IO5-0006lR-OV for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 19:21:01 +0200 In-reply-to: <39fbd280-441d-498e-9a53-ce3188f31398@d77g2000hsb.googlegroups.com> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:54899 Archived-At: >>>>> rock69 : > Is there some way to disable copying to the clipboard when deleting > something (ex. with M-d or C-k)? I'm asking this because I often find > myself copying something and then deleting successive lines, and when > I have to paste what I had previously copied, it's really annoying to > have to scroll through with C-y M-y. The delete-region function might do the trick for you? Either M-x delete-region RET or bind it to a key (ah,... it's actually on a menu! see below). The result of `C-h f delete-region RET' : delete-region is an interactive built-in function in `C source code'. It is bound to . (delete-region start end) Delete the text between point and mark. When called from a program, expects two arguments, positions (integers or markers) specifying the stretch to be deleted. [back]