Emacs 24 changed the way copy/paste behavior works to conform with modern X applications (See this article under "Selection changes"). They have explicitly separated primary selection and middle mouse button paste from clipboard copy/paste.
Unfortunately for me, using native (not cygwin!) Emacs 24.2.1 under MS Windows, this messes up the way I want to work.
Here is what I want:
- Highlighting (selecting) text in Emacs automatically copies it to the Windows clipboard. If I paste it (Ctrl-V) in another Windows app it pastes. If I type C-y (yank) in Emacs, it pastes. If I middle-click in Emacs, it pastes.
- Killing in Emacs (C-w) copies the data to the clipboard. If I paste it (Ctrl-V) in another Windows app it pastes. If I type C-y (yank) in Emacs, it pastes. If I middle-click in Emacs, it pastes the clipboard contents, not the last selected text.
- Anything I copied to the clipboard from another Windows app (e.g. via Ctrl-C), can be pasted in Emacs either by typing C-y (yank) or middle-clicking (right now, middle clicking pastes the last selected text, not the clipboard contents).
To summarize, I think this means removing the distinction between primary selections and the clipboard in Emacs. I want everything to act on the clipboard!