unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Move yanked entry to front of kill ring instead of other way around
Date: Wed, 21 Nov 2007 22:54:08 -0700	[thread overview]
Message-ID: <fi35i0$r3k$1@ger.gmane.org> (raw)
In-Reply-To: <f42c6c70-aa7b-4aa0-8ed5-741325dff4d7@l22g2000hsc.googlegroups.com>

bramadams wrote:
> Hi,
> 
> I'm using OSX Aquamacs 1.2a (based on emacs 22), but the following
> issue also occurs on e.g. Slackware 10.2's emacs (21.4.2).
> 
> If one kills a number of things in a row, e.g. "haha", "hoho" and
> "hihi", and then yanks the second-to-last ("hoho"), the front of the
> kill ring has moved to "hoho". If one then wants to yank "hihi", one
> needs to cycle back through the whole kill ring until it overflows
> again and the last killed entries are reached again. This can be
> tedious after editing for a while.
> 
> Is there some command which allows to either cycle backwards in the
> kill ring (from the front to the newer entries; "undo" does not work
> for this), or (better yet) to physically move a yanked entry to the
> front of the ring? In that case, in my example "hoho" and "hihi" would
> just swap places.

Isn't it just a matter of providing a negative prefix arg to yank (C-y)
or yank-pop (M-y)?  E.g. `M- C-y' or `C-y M- M-y'

-- 
Kevin Rodgers
Denver, Colorado, USA

  reply	other threads:[~2007-11-22  5:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21 10:48 Move yanked entry to front of kill ring instead of other way around bramadams
2007-11-22  5:54 ` Kevin Rodgers [this message]
     [not found] ` <mailman.3931.1195711151.18990.help-gnu-emacs@gnu.org>
2007-11-22  8:45   ` bramadams
2007-11-22 16:07     ` Mathias Dahl
2007-11-22 16:34       ` bramadams
2007-11-26 16:17         ` bramadams
2007-12-05 17:08           ` Mathias Dahl

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='fi35i0$r3k$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).