help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Separate clipboard and kill ring in Windows


From: Eli Zaretskii
Subject: Re: [h-e-w] Separate clipboard and kill ring in Windows
Date: Wed, 17 Feb 2010 21:43:31 +0200

> Date: Wed, 17 Feb 2010 03:52:11 -0800 (PST)
> From: vegar <address@hidden>
> 
> I'm trying to find a way to make Emacsw32's clipboard and kill ring behave
> like for example Aquamacs. That is to say: When I do a kill in Emacs with
> say C-k, I want the content copied to the kill ring so that I can yank it in
> elsewhere in the document. But my Windows clipboard should remain untouched
> and still contain whatever I copied there earlier on.

Setting interprogram-cut-function to nil should do the trick.

> However, if I do a
> selection the Windows way and do a Ctrl-C or CTRL-Insert, then whatever I
> selected should be copied to the clipboard.

I think there's no way of doing this out of the box, but you should be
able to write a simple command that calls x-select-text, and bind it
to whatever keys you want.

> The kill ring should not be
> affected by this. Likewise, C-y should insert only what I've previously
> killed in Emacs, and Ctrl-V should always insert whatever is on the Windows
> clipboard.

Similar to the above, left as an exercise ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]