From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Buchs, Kevin J." Newsgroups: gmane.emacs.help Subject: Re: Sending a region to another X application Date: Thu, 21 Aug 2014 11:33:56 -0500 Message-ID: <27747b$93k815@ironport10.mayo.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408638885 6137 80.91.229.3 (21 Aug 2014 16:34:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 16:34:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 18:34:41 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKVJw-0005Uz-HZ for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 18:34:40 +0200 Original-Received: from localhost ([::1]:33311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVJv-000141-T4 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 12:34:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVJf-00013l-HO for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:34:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKVJb-0002xT-1q for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:34:23 -0400 Original-Received: from mail10.mayo.edu ([129.176.114.198]:10059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKVJa-0002x5-Th for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:34:18 -0400 Original-Received: from unknown (HELO mail10.mayo.edu) ([10.146.65.138]) by ironport10-dlp.mayo.edu with ESMTP; 21 Aug 2014 11:34:16 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsEACAf9lMKgNEM/2dsb2JhbABXA4NgV8xMh1IBgSV3hAQBBTgEAUoCCw0LLhs8EwYCAQGIQ75ehCobjzgXEQWCcYFFBYUEhh6GA4NQWYhQhX+HAoouToJPAQID Original-Received: from unknown (HELO msgoms04.mayo.edu) ([10.128.209.12]) by ironport10.mayo.edu with ESMTP; 21 Aug 2014 11:33:51 -0500 In-reply-to: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 129.176.114.198 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99333 Archived-At: Dieter, This is more of a general programming question than an emacs one, so you might want to target me off list if you have follow-up questions. Having some experience with TCL, I know that often a command shell is just a TCL shell with functions defined for the commands you execute. If you have such a situation, you can extend that shell with some code that can accept commands from a network connection, pipe, or even via the X clipboard. If you have created a major mode in emacs, you know enough to know that you can talk to these communication channels from emacs lisp without too much work. Extending the TCL shell is your major task. As for using X-Window, I've not heard of such a thing done for inter-application communication, but I suppose it is possible. You want to generate X events for the keystrokes. It would take some work, so think books when you are looking for documentation. Maybe some open source GUI testing program could give you some pointers. I wouldn't choose to go this route, however. Kevin Buchs Research Computer Services Phone: 507-538-5459 Mayo Clinic 200 1st. St SW Rochester, MN 55905 http://mayoclinic.org http://facebook.com/MayoClinic http://youtube.com/MayoClinic http://twitter.com/MayoClinic On 08/21/2014 11:00 AM, help-gnu-emacs-request@gnu.org wrote: > Sending a region to another X application