delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/19/17:31:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RP_MATCHES_RCVD,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <50315B12.8080200@cornell.edu>
Date: Sun, 19 Aug 2012 17:30:58 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows clipboard and Emacs yank, kill-region, and kill-ring-save
References: <Pine DOT NEB DOT 4 DOT 64 DOT 1208081535090 DOT 21986 AT panix3 DOT panix DOT com> <5022D5EB DOT 9020703 AT cornell DOT edu> <Pine DOT NEB DOT 4 DOT 64 DOT 1208081716380 DOT 7988 AT panix1 DOT panix DOT com> <50313559 DOT 6060407 AT jackson DOT io> <50314483 DOT 9010605 AT cornell DOT edu> <50315818 DOT 7030802 AT jackson DOT io>
In-Reply-To: <50315818.7030802@jackson.io>
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown AT cornell DOT edu - Sun Aug 19 17:31:01 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/19/2012 5:18 PM, Ken Jackson wrote:
> On 08/19/2012 03:54 PM, Ken Brown wrote:
>> On 8/19/2012 2:50 PM, Ken Jackson wrote:
>>> I have this in my ~/.emacs file on both Linux and Cygwin:
>>> (setq x-select-enable-clipboard t)
>>>
>>> I see in the news file that it's now set by default.
>>> It has always worked in graphical emacs but has never
>>> worked in a terminal on either Linux or Cygwin.
>>>
>>> But I sure would like it to work in a terminal.  Are you
>>> able to paste clipboard text in emacs in a terminal?
>>
>> When I run emacs in mintty, I can paste clipboard text with Shift-Insert.
>>
>> Ken
>>
> Ah!  That works!  Thank you.
>
> But there are still a couple problems.
>
> 1) Shift-Insert is a huge improvement, but is still a little
>     clunky.  I'd like to tie it to Shift-Ctrl-Y, but when I
>     press CTRL-h Shift-Insert, the *Help* window cryptically
>     reports, "T runs the command self-insert-command".  What
>     command is actually running?

"T" was probably the first character of the text you pasted.  I think 
it's mintty that processes the Shift-Insert; emacs never sees it.

> 2) How can I go the other way--copy from emacs in a terminal
>     to the Windows clipboard?

Select it with the mouse.  Again, it's mintty that's doing the copying 
here; emacs doesn't see the mouse operations.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019