From: Ittay Dror <ittay@qlusters.com>
Subject: Re: copy/paste & Emacs on XWindows
Date: 19 Mar 2003 11:52:54 +0200 [thread overview]
Message-ID: <1048067574.2325.9.camel@rum> (raw)
In-Reply-To: <87isugl63m.fsf@sdf.lonestar.org>
On Tue, 2003-03-18 at 23:25, Roman A. Lagunov wrote:
> >>>>> "PL" ==> Peter Lee writes:
>
> PL> Is there something special you have to do to get copy/paste
> PL> working between emacs and other apps on xwindows ?
>
> PL> If I M-w some text in emacs it doesn't appear to store it in the
> PL> "clipboard" (whatever the xwindows equivalent of that is).
>
> You can try to do it with mouse - just drag around block of text you
> want to yank.
>
> Then, in xterm for exapmle, just click middle button.
>
> That's a trick. It's works perfectly for me.
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.
hope it helps,
ittay
--
===================================
Ittay Dror (ittay@qlusters.com)
User Space Team, R&D
Qlusters Inc.
+972-3-6081976 Fax: +972-3-6081841
next prev parent reply other threads:[~2003-03-19 9:52 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 [this message]
[not found] ` <mailman.3367.1048067622.21513.help-gnu-emacs@gnu.org>
2003-03-19 18:41 ` Peter Lee
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=1048067574.2325.9.camel@rum \
--to=ittay@qlusters.com \
/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.