From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: how to stop delete key putting a region into kill ring Date: Sat, 14 Aug 2010 12:02:14 -0400 Message-ID: <4684.1281801734@gamaville.dokosmarshall.org> References: <446912556.20100814141933@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=42110 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkJBz-000815-0N for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 12:02:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkJBa-00018t-3c for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 12:02:19 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:53109) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkJBZ-00018X-Vy for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 12:02:18 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7500G16GJQW640@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 11:02:15 -0500 (CDT) In-reply-to: Message from Ivanov Dmitry of "Sat, 14 Aug 2010 14:19:33 +0400." <446912556.20100814141933@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ivanov Dmitry Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org [Somewhat off-topic for this list, so it might be better to follow up on gnu.emacs.help or some such.] Ivanov Dmitry wrote: > When I am editing a text in Emacs - not only in org-mode - when I > select a region and press to remove it, it's being placed into > the clipboard and when I want to paste some text instead I have to get > rid of it. > > Does anybody know, how to stop it and make simply kill the > region without putting it into the clipboard? > My key is (normally) bound to delete-char and it does not behave at all the way you describe: in particular, it does not matter whether a region is selected or not - it deletes one character (and that is *not* saved in the kill ring.) In order to delete a selected region, I use C-w (kill-region) which *does* save the killed region to the kill ring (it also copies it to the X cut buffer - or the successors thereof - if emacs is running under X.) The kill-region function is also bound to S- in my case, which may be what you mean - or it may be that you have customized your keys somehow. You can delete the region without saving it to the kill ring by calling the function delete-region (which in my case is bound to the Clear item in the Edit menu). And you can rebind any key you want to call this function (in particular, the key, however inadvisable that would be)[1], at the risk of being incompatible with everybody else in the universe and therefore having a harder time getting help. In particular, if you do that, mentioning keys is not going to help: you will have to use C-h c (describe-key-briefly) or C-h k (describe-key) on the key in order to find out the function that it is bound to and then mention that. You might want to do that now with and see what function it is bound to. This latter problem is partly the reason that having command names, as well as key descriptions, in the manual is useful. It is also why things like ErgoEmacs (see Don Womick's posting in this list a little while ago) make whatever hair I have left on my head stand on end. BTW, I mention X and assume that you are running on some Unix variant. If you are running on Windows of some sort, things are probably different, at least in some details. HTH, Nick [1] see section 57.4, "Customizing Key Bindings", in the Emacs manual for details.