Questions tagged [kill-ring]

The kill ring is a global list of blocks of text that were previously copied or moved from buffers.

Filter by
Sorted by
Tagged with
12
votes
3answers
2k views

Backspace without adding to kill ring

Using Crtl+Backspace or Ctrl+Del adds the deleted text to the kill ring. How can I prevent this from happening? I do not need to have every single piece of text sent to the kill ring when it gets ...
9
votes
2answers
1k views

Function to delete all comments from a buffer, without moving them to kill ring

I need to be able to remove all comments from a buffer from elisp code. For now, I am using: (goto-char (point-min)) (comment-kill (count-lines (point-min) (point-max))) However, comment-kill is an ...
4
votes
2answers
646 views

how to push kill-ring contents onto system pasteboard (clipboard)?

I use the brilliant answer from my previous question to copy selected regions of text from Emacs onto my system pasteboard (i.e. the OSX clipboard). But some functions (e.g. gist-buffer) push output ...
2
votes
1answer
466 views

How to send *shell* stdout directly to kill-ring?

Suppose that I have a *shell* buffer (i.e. a subordinate shell, started with M-x shell). Suppose also that at this shell's prompt, I can execute some command foo that sends some output to stdout. I ...
0
votes
1answer
67 views

How to pass the result of yank to find-file?

So I wanted to basically copy the current selection, then yanking it into find-file, as when using: C-SPC: set-mark-command M-w: kill-ring-save C-x C-f: find-file C-y: yank While that works great, I ...