[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
iterating the kill ring (was: Re: How to delete all text from beginning
From: |
Emanuel Berg |
Subject: |
iterating the kill ring (was: Re: How to delete all text from beginning of buffer to mark) |
Date: |
Tue, 09 May 2017 04:20:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg wrote:
> Won't that fill up the kill ring with stuff
> you won't need? Yes, but once you learn how
> to iterate the kill ring back and forth, that
> doesn't matter.
How do people do this?
I have:
(defun yank-pop-back (&optional arg)
(interactive "*p")
(yank-pop (if arg (* arg -1) -1)) )
With `yank' at C-y, `yank-pop' at M-y, and then
the "yank-pop-back" above as C-M-y, it is very
easy to yank and then iterate back and forth.
The elaborate stuff with ARG isn't needed to
use with the setup I just described.
However remove it, it won't work iterating back
and forth!
(error "Previous command was not a yank") in yank-pop
Must be an interface mismatch?
Hey, if it works, don't fix it, right :)
--
underground experts united
http://user.it.uu.se/~embe8573