[Top][All Lists]

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

Re: copy/paste & Emacs on XWindows

From: Peter Lee
Subject: Re: copy/paste & Emacs on XWindows
Date: Wed, 19 Mar 2003 18:41:52 GMT
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

Ittay Dror <address@hidden> writes:

> i have this hack:
> (defun if-copy-mark-to-primary-selection ()
>   (if mark-active
>         (x-set-selection 'PRIMARY (buffer-substring (region-beginning)
> (region-end)))))
> (add-hook 'post-command-hook 'if-copy-mark-to-primary-selection)
> what it does is copy the region to the primary selection, (which is not
> the clipboard), use the middle mouse button to paste it in another
> window. if you wish to copy to the clipboard, change PRIMARY to

Thanks a bunch!  I will try this when I get home.  One other
thing... what about copying from clipboard to Emacs?  Any tricks for
that ?  Or should that just work as is?  

reply via email to

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