tags:

views:

85

answers:

2

running emacs 22... on ubuntu 9.04, fresh install.

When I copy a region of text via C-w (clipboard-kill-ring-save) then yank it back with C-y (clipboard-yank) it pastes random stuff, from some other buffer that isn't even open.

It was working fine earlier today and I haven't changed my emacs config.

Any ideas why this is suddenly happening/ how to fix it?

Thanks!

+1  A: 

C-w is (kill-ring) - you should use M-w for copy. The appearance of random text in the kill-ring is most unlikely. It might be helpful for you to monitor the value of the symbol kill-ring(C-x C-e after it in any buffer) after M-w or C-w to determine if it's properly updated.

Bozhidar Batsov
"The appearance of random text in the kill-ring is most unlikely." But not completely unlikely; I sometimes will get the last two kills when I perform a single yank (or, since I'm using EmacsW32, when pasting from the clipboard in an external app). It's really weird.
Michael Paulukonis
The problem is the same (when it happens) for both C-w (cut) or M-w (copy).C-x C-e just brought up the emacs debugger, but there was nothing regarding the symbol kill-ring.
Josh
A: 

Well, after a day or two since I posted this, the problem has gone away. Don't know why it started happening or why it stopped.

Josh