unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: <tomas@tuxteam.de>
To: Jim Newton <jimka.issy@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: kill-region without modifying the kill ring
Date: Fri, 25 Sep 2015 14:15:23 +0200	[thread overview]
Message-ID: <20150925121523.GB21939@tuxteam.de> (raw)
In-Reply-To: <8272bab2-aa15-479f-b838-0b60fb11c5bb@googlegroups.com>

-----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-----



  reply	other threads:[~2015-09-25 12:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25  8:32 kill-region without modifying the kill ring Jim Newton
2015-09-25 12:15 ` tomas [this message]
     [not found] ` <mailman.1800.1443183340.19560.help-gnu-emacs@gnu.org>
2015-09-25 12:47   ` Jim Newton
2015-09-25 12:49   ` Jim Newton
2015-09-25 13:30     ` B. T. Raven
2015-09-25 13:36       ` Jim Newton
2015-09-26 17:57         ` B. T. Raven
2015-09-25 13:51 ` Jorge A. Alfaro-Murillo
     [not found] ` <mailman.1805.1443189138.19560.help-gnu-emacs@gnu.org>
2015-09-25 14:30   ` Jim Newton
2015-09-25 15:47     ` Jorge A. Alfaro-Murillo
2015-09-26  0:41       ` Robert Thorpe
2015-09-25 16:40     ` Michael Heerdegen
2015-09-26  2:27       ` Suvayu Ali
2015-09-26  4:35         ` Michael Heerdegen
2015-09-25 19:13     ` Javier
2015-09-25 15:21   ` Barry Margolin
2015-09-25 15:37     ` Jorge A. Alfaro-Murillo
     [not found]     ` <mailman.1812.1443195492.19560.help-gnu-emacs@gnu.org>
2015-09-25 16:37       ` Barry Margolin
2015-09-25 15:15 ` Yuri Khan
2015-09-26  2:07 ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150925121523.GB21939@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jimka.issy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).