From: "James H. Cloos Jr." <cloos@jhcloos.com>
Subject: using PRIMARY and CLIPBOARD w/o using the mouse
Date: 12 Sep 2003 05:45:58 -0400 [thread overview]
Message-ID: <m365jypcfd.fsf@lugabout.jhcloos.org> (raw)
Using a laptop has me a bit spoiled by having the handy track stick
between the GH&B keys, and buttons just below -- and just as easily
thumbed as -- the spacebar.
Reaching for the rodent is a RFPITA.
In X, using the GUI, is there a command that will copy the region
between current and point to PRIMARY, SECONDARY and/or CLIPBOARD?
My searches through info, docstrings and the (lisp) src hasn't
hit on any.
It looks as though I need something like this:
(defun my-x-selection (beg end)
"select between point and current into PRIMARY"
(interactive "r")
(let ((data (list (buffer-substring beg end)))
(type (if (not current-prefix-arg) 'PRIMARY 'CLIPBOARD)))
(if data
(x-own-selection-internal type data)
(x-disown-selection-internal type))))
(The idea is that it should copy to CLIPBOARD if prefix arg, else to PRIMARY.)
Any thoughts on improving that?
-JimC
reply other threads:[~2003-09-12 9:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m365jypcfd.fsf@lugabout.jhcloos.org \
--to=cloos@jhcloos.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.