From: Peter Lee <pete_lee/remove-for-email/@swbell.net>
Subject: Re: copy/paste & Emacs on XWindows
Date: Wed, 19 Mar 2003 18:41:52 GMT [thread overview]
Message-ID: <ud6kngpvz.fsf@swbell.net> (raw)
In-Reply-To: mailman.3367.1048067622.21513.help-gnu-emacs@gnu.org
Ittay Dror <ittay@qlusters.com> 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
> CLIPBOARD.
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?
next prev parent reply other threads:[~2003-03-19 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 23:59 copy/paste & Emacs on XWindows Peter Lee
2003-03-18 21:25 ` Roman A. Lagunov
2003-03-19 9:52 ` Ittay Dror
[not found] ` <mailman.3367.1048067622.21513.help-gnu-emacs@gnu.org>
2003-03-19 18:41 ` Peter Lee [this message]
2003-03-20 5:59 ` Ittay Dror
[not found] ` <mailman.3403.1048139991.21513.help-gnu-emacs@gnu.org>
2003-03-20 16:17 ` Peter Lee
2003-04-18 4:24 ` David Combs
[not found] ` <mailman.3341.1048023843.21513.help-gnu-emacs@gnu.org>
2003-03-19 9:41 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ud6kngpvz.fsf@swbell.net \
--to=pete_lee/remove-for-email/@swbell.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.