Skip to main content
33 events
when toggle format what by license comment
Jul 31, 2020 at 15:22 answer added algn2 timeline score: 0
Apr 2, 2017 at 18:58 vote accept m33lky
Apr 1, 2017 at 20:09 comment added lawlist I see that no one has mentioned the browse-kill-ring library emacswiki.org/emacs/BrowseKillRing You may enjoy taking a look it it as it will demystify what is contained in the kill-ring, and present you with a nice buffer and overlay options to insert previous kills.
Apr 1, 2017 at 12:46 answer added glucas timeline score: 7
Apr 1, 2017 at 9:42 answer added phils timeline score: 6
Apr 1, 2017 at 5:42 history edited m33lky CC BY-SA 3.0
added 154 characters in body
Mar 31, 2017 at 22:32 comment added glucas Is there some actual scenario where the kill ring is causing you problems? It seems to me that unless you explicitly invoke yank-pop to access older entries in the kill ring, it should already behave like a 'simple clipboard': the various kill commands save an entry and yank restores it.
Mar 31, 2017 at 21:02 comment added Tianxiang Xiong Also consider using Helm's helm-show-kill-ring, which visually presents kill ring elements and allows searching through elements.
Mar 31, 2017 at 20:40 history edited m33lky CC BY-SA 3.0
deleted 5 characters in body
Mar 31, 2017 at 20:32 comment added wasamasa Um, you do lose something, the quoted scenario explains what exactly. undo-tree won't help you with a clobbered clipboard, whatever has been there is permanently gone. With the kill-ring, you can just press M-y after C-y and retrieve it again.
Mar 31, 2017 at 20:29 history edited m33lky CC BY-SA 3.0
added 587 characters in body
Mar 31, 2017 at 20:22 comment added Tianxiang Xiong You can control the size of the kill ring with the kill-ring-max customizable variable. Does setting it to 1 replicate the "simple clipboard" you want?
Mar 31, 2017 at 20:22 answer added stevoooo timeline score: 0
Mar 31, 2017 at 20:20 comment added m33lky @Dan You misunderstood me. I'm not looking for a linear undo/redo at this point. I find it confusing that the kill-ring contains multiple items compared to a simple clipboard buffer.
Mar 31, 2017 at 20:19 history edited m33lky CC BY-SA 3.0
added 15 characters in body; edited title
Mar 31, 2017 at 20:08 comment added Dan I edited the question to try to clarify. I should warn, though, that it's still not 100% clear what you want to do, so it might get closed again for being unclear. I think there might be some confusion about what the kill-ring is and does, and the same for undo-tree. I'd suggest reading up on them (see the links to get you started), and then see if it helps in posing the question.
Mar 31, 2017 at 20:06 history reopened Dan
Mar 31, 2017 at 20:06 history edited Dan CC BY-SA 3.0
added 154 characters in body; edited title
Mar 31, 2017 at 20:00 comment added m33lky @Dan I've narrowed down the question. I left the undo-tree reference, because that's how I see it relate to the problem at hand.
Mar 31, 2017 at 19:57 history edited m33lky CC BY-SA 3.0
added 28 characters in body; edited title
Mar 31, 2017 at 19:53 comment added Dan Please edit that into your post. However, let me suggest you narrow the question down to the part about "can I get Emacs to do undo/redo the same as in other programs" and leave out the other parts about the kill-ring and undo-tree. We try to keep the questions as discrete as possible here, and you're more likely to get an answer for a narrow and well-defined question than a broad and open-ended one.
Mar 31, 2017 at 19:48 comment added m33lky @Dan Exactly, I'm used to clipboard buffer in Windows/Ubuntu. Can I have that instead of the kill-ring? How is it related to undo-tree, e.g. what is undo-tree based on internally? I'm assuming that undo-tree is separate from the kill-ring. However, when it comes to editing workflows it seems that undo-tree is sufficient: it will help me avoid losing work. So, I don't need the complicated kill-ring.
Mar 31, 2017 at 19:40 history closed Drew
wasamasa
Gilles 'SO- stop being evil'
Needs details or clarity
Mar 31, 2017 at 19:39 comment added Dan Let me suggest that you edit your question again to lay out a) how you see a "simple clipboard buffer" working, b) how the kill-ring and/or the undo-tree differ from what you expect. It's not obvious yet what you're trying to do here when you say you want to "simplify" the kill-ring. Do you mean you want Emacs to behave the same as other programs in how it handles undo/redo?
Mar 31, 2017 at 19:37 history edited Dan
edited tags
Mar 31, 2017 at 19:26 comment added m33lky I have edited my question.
Mar 31, 2017 at 19:25 history edited m33lky CC BY-SA 3.0
added 62 characters in body
Mar 31, 2017 at 18:26 comment added Stefan What do you mean by "simplify the kill-ring"? How would you do it, and what would you expect to gain from it?
Mar 31, 2017 at 18:13 comment added wasamasa undo-tree replaces the (linear) undo system of a buffer with a tree, the kill ring is a separate thing that's always of linear nature and holds your last kills. This question doesn't make any sense.
Mar 31, 2017 at 17:54 review Close votes
Mar 31, 2017 at 19:44
Mar 31, 2017 at 17:38 comment added Drew The question is not very clear. What do you mean by "should" you? What behavior are you looking for? What's the real question?
Mar 31, 2017 at 17:09 review First posts
Mar 31, 2017 at 18:05
Mar 31, 2017 at 17:07 history asked m33lky CC BY-SA 3.0