Re: using the x clipboard cut/paste functions from an xterm
"Stephen J. Turnbull" <[email protected]> Wed, 22 Sep 2004 17:43:28 +0900
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Organization | The XEmacs Project |
| Message-ID | <[email protected]> |
>>>>> "Matt" == Matt Price <[email protected]> writes: Matt> Again, I'm working from an xterm, not from a regular xemacs Matt> window. Then you're out of luck: you need a connection to the X server under program control. xterm has a connection, but isn't programmable in this way and the xterm manpage doesn't mention the clipboard; xemacs is Turing-complete, but has no X connection. You could open a frame on the relevant X server from your xterm, or open a tty frame in the xterm using gnuclient, then this should work: (defun copy-to-clipboard (s e) (interactive "r") (own-selection (buffer-substring s e) 'CLIPBOARD)) -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.