-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add meow-replace-pop
.
#509
Conversation
Why do |
Well, the |
The command Sometimes, I want to replace the region with text that is further into the kill ring. By using If the command EDIT: I've made the code signal a user error in |
f6fa8da
to
c3d1c25
Compare
Got it, thanks for the explanation. Are we ready for the merge? |
This command, when run after a replacement command, such as `meow-replace` or itself, replaces the just inserted text with the next item in the kill ring, without rotating the kill ring. - Add command `meow-replace`. - Add variables `meow--replace-pop-index`, `meow--replace-start-marker`, and `meow-replace-pop-command-start-indexes`. - Modify commands `meow-replace`, `meow-replace-save`, and `meow-replace-char` to set the marker before inserting the replacement text.
c3d1c25
to
f95fc40
Compare
Yes, I'm happy with it. I thought about using a prefix argument to reverse the cycling direction, but I now think it's easier to just use |
Thanks! |
This command, when run after
meow-replace
or itself, replaces the just inserted text with the next item in the kill ring, without rotating the kill ring.meow-replace
.meow--replace-pop-index
andmeow--replace-start-marker
.meow-replace
,meow-replace-save
, andmeow-replace-char
to set the marker before inserting the replacement text.The marker was needed to support
meow-replace-char
, which doesn't use a region. Otherwise, one could use(mark t)
to get the mark's position.