Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Last night, I wanted to grab an item from my kill ring -- or one that I was pretty sure was there. Rather than rotating through the kill-ring with C-y and multiple M-y, I decided to view the value of the variable with C-h v (describe variable) and typed kill-ring.

I'm not sure what was in my kill-ring, but this action pegged the resources of my decently powered MacBook Pro and I ended up killing emacs to get the computer operable again.

This raises a few questions:

  1. Is there a safer way to view a kill-ring that is very large?
  2. What's going on in Emacs that this would cause broader issues outside of Emacs itself?

(I'm using GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) - downloaded from http://emacsformacosx.com/)

share|improve this question

2 Answers 2

I suggest you use a browse-kill-ring package.

Put into your .emacs

(require 'browse-kill-ring)
(browse-kill-ring-default-keybindings)

and you will be able to browse the kill ring by typing M-y without first using C-y.

share|improve this answer

Excuse the shameless plug, but here's my personal solution for that very problem: Incrementally searching the kill-ring.

enter image description here

share|improve this answer
    
Ooooo, that looks interesting. I'll have to try that. Do you do anything special to handle unreasonably large items in the kill-ring? –  Doug Harris Oct 14 '11 at 16:48
    
It just searches for the next match and only has to display one at a time. That's simply a lot less work than printing the entire kill ring. It takes a few seconds to display a multi-megabyte match, but not minutes like C-h v. –  nschum Oct 14 '11 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.