From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: kill-region without modifying the kill ring Date: Fri, 25 Sep 2015 14:15:23 +0200 Message-ID: <20150925121523.GB21939@tuxteam.de> References: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1443183379 8289 80.91.229.3 (25 Sep 2015 12:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 12:16:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jim Newton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 14:16:14 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfRv1-0001m1-Pz for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 14:16:03 +0200 Original-Received: from localhost ([::1]:35151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfRv1-0007IS-98 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 08:16:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfRuZ-0007G7-1c for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 08:15:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfRuP-0001vU-27 for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 08:15:34 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:60827 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfRuO-0001sE-ST for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 08:15:25 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ZfRuN-0005ov-Dy; Fri, 25 Sep 2015 14:15:23 +0200 In-Reply-To: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107335 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Sep 25, 2015 at 01:32:14AM -0700, Jim Newton wrote: > is there a way or an idiom for killing a region without changing the kill ring. > I often want to cut several different regions by highlighting them, but then insert a particular thing with C-Y. If I use C-W to kill the region C-Y will yank back the string I just killed rather than the one I want. delete-region is advertised to do that, but a quick test in my case seems to do the same as kill. I haven't the time now to debug that, might just be an idiosyncracy of my less-than-organized .emacs > It would be nice to have a version of C-W which does not effect the kill-ring. Not an answer to your original request, but with M-y you can replace the just-yanked text with previous kills, so perhaps you might achieve the effect you're after by first yanking with C-y, then with M-y (and with consecutive M-y you can even "walk back" your kill history). regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlYFOtsACgkQBcgs9XrR2kbonwCePdzK5Uc++roPrA9nhgS/k886 QXgAn3wywDXBD0rgcinn7S3VVGmzCU5Y =Xqp9 -----END PGP SIGNATURE-----