From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy Paste in no-x11 mode (emacs -nw)
Date: Fri, 26 Sep 2008 12:35:28 +0200 [thread overview]
Message-ID: <87hc83p53j.fsf@tux.homenetwork> (raw)
In-Reply-To: <slrngdp8s7.30r.joostkremers@j.kremers4.news.arnhem.chello.nl> (Joost Kremers's message of "26 Sep 2008 08:57:08 GMT")
Second part, using screen to communicate (kill/yank)
between terminal/emacs.
With this code you can copy text in emacs and retrieve it in screen.
,----
| (defun tv-copy-for-screen (beg end)
| (interactive "r")
| (let ((k-region (buffer-substring-no-properties beg end))
| (require-final-newline nil))
| (save-excursion
| (find-file "~/.screen_exchange")
| (goto-char (point-min))
| (erase-buffer)
| (insert (replace-regexp-in-string "\n" "" k-region))
| (save-buffer)
| (kill-buffer (current-buffer)))))
|
| (global-set-key (kbd "C-c C") 'tv-copy-for-screen)
`----
When you are in screen, first read paste-buffer with
"<screen-prefix-key> <"
and then paste with "<screen-prefix-key> ]"
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next prev parent reply other threads:[~2008-09-26 10:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 19:12 Re:Copy Paste in no-x11 mode (emacs -nw) Simeon Nifos
2008-09-26 8:17 ` Copy " Nikolaj Schumacher
2008-09-26 9:02 ` Thierry Volpiatto
2008-09-26 12:04 ` Jonathan Groll
[not found] ` <mailman.19983.1222417070.18990.help-gnu-emacs@gnu.org>
2008-09-26 8:57 ` Joost Kremers
2008-09-26 10:35 ` Thierry Volpiatto [this message]
[not found] <mailman.19960.1222401724.18990.help-gnu-emacs@gnu.org>
2008-09-26 8:28 ` Sébastien Vauban
2008-09-26 15:29 ` Dan Espen
-- strict thread matches above, loose matches on Subject: below --
2008-09-26 12:26 Simeon Nifos
2008-09-26 15:00 ` Jonathan Groll
[not found] ` <mailman.20006.1222441218.18990.help-gnu-emacs@gnu.org>
2008-09-26 15:18 ` Charles Sebold
2008-09-27 1:52 ` Kevin Rodgers
2008-09-26 16:58 ` Nikolaj Schumacher
[not found] <mailman.19937.1222363379.18990.help-gnu-emacs@gnu.org>
2008-09-25 17:43 ` Dan Espen
2008-09-25 15:06 Simeon Nifos
2008-09-25 17:43 ` Thierry Volpiatto
2008-09-25 18:40 ` Dan Davison
2008-09-26 8:40 ` Nikolaj Schumacher
2008-09-26 9:22 ` Jonathan Groll
2008-09-26 9:40 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hc83p53j.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).