Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • when I press M-y it says previous command was not a yank Commented Mar 27, 2015 at 14:52
  • @Vass Yes, you'll have to run the command yank (C-y), then press M-y to cycle through. Commented Mar 27, 2015 at 14:58
  • I select text and then press C-y and it gets pasted on the spot Commented Mar 27, 2015 at 15:02
  • 1
    @Vass I don't understand what you mean. C-y runs the command yank, which is analogous to the concept of "pasting". Each time you kill text, or copy it with C-w (kill-ring-save), it gets pushed to the kill-ring. When you hit C-y, this pops the first element of the kill-ring and inserts it into the buffer. Subsequent presses of M-y (kill-ring-pop) will cycle through the elements saved in the kill-ring. Commented Mar 27, 2015 at 15:08
  • 1
    @Vass, oops, that is a typo on my part. It should have read M-w. The command is right, though. Commented Mar 27, 2015 at 15:51