From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Sending a region to another X application Date: Thu, 21 Aug 2014 17:27:13 +0200 Organization: The Church of Emacs Message-ID: <87k361kgmm.fsf@vsl28t2g.ww011> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408634882 17805 80.91.229.3 (21 Aug 2014 15:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 15:28:02 +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 17:27:56 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 1XKUHJ-0002Ue-7A for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 17:27:53 +0200 Original-Received: from localhost ([::1]:32926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKUHI-0006Cw-MR for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 11:27:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKUH1-0006Cm-7c for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 11:27:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKUGu-0005gf-S7 for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 11:27:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKUGu-0005dr-Li for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 11:27:28 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XKUGq-0002Dg-Li for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 17:27:24 +0200 Original-Received: from p57acc144.dip0.t-ipconnect.de ([87.172.193.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Aug 2014 17:27:24 +0200 Original-Received: from dieter by p57acc144.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Aug 2014 17:27:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p57acc144.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) Cancel-Lock: sha1:ymCImbdA2XawOTUQ+zMKs6vJGe8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:99331 Archived-At: Hello (), I've written a major mode (https://code.google.com/p/ansys-mode/) for an obscure programming language (APDL http://www.ansys.com/Support/Training+Center/Courses/Introduction+to+ANSYS+Mechanical+APDL) which is used to automate finite element simulations. At the moment the user is "copy and pasting" code snippets from an Emacs buffer to the TCL/TK application's "command" text field. The Emacs mode would be more helpful if one could directly "send" code fragments with a key binding to the application. I've no experience with GUI programming and the only idea I've got from internet investigations, so far, is to utilise an external C program for sending the data over the X server with the help of libraries like Xlib or XCB, but there seems to be little documentation. Do you have a better idea or is this the easiest way to go? Dieter -- Best wishes H. Dieter Wilhelm Darmstadt, Germany