From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tapani Tarvainen Newsgroups: gmane.emacs.help Subject: Commanding remote emacs (was Re: X- and non-X-frames in same emacs?) Date: 30 Jan 2003 15:02:48 +0200 Organization: University of Jyvaskyla, Finland Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043932561 25612 80.91.224.249 (30 Jan 2003 13:16:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 13:16:01 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eEXv-0006eS-00 for ; Thu, 30 Jan 2003 14:15:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eEXb-0000g3-07 for gnu-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2003 08:15:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!newsfeed.song.fi!newsfeed.kolumbus.fi!mordred.cc.jyu.fi!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: thorion.it.jyu.fi Original-X-Trace: mordred.cc.jyu.fi 1043931634 6049 130.234.160.129 (30 Jan 2003 13:00:34 GMT) Original-X-Complaints-To: newsmaster@cc.jyu.fi Original-NNTP-Posting-Date: Thu, 30 Jan 2003 13:00:34 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:109579 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6096 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6096 Eli Zaretskii writes: > On 30 Jan 2003, Tapani Tarvainen wrote: > > > Is it possible to have an X frame and a non-X frame in same emacs > > simultaneously? > > No, I don't think the current Emacs code supports that. Sorry. I was afraid of that. :-( The next question is, what would be the easiest way to pass commands to an emacs whose only (or all) frame(s) are on a remote display? I.e., I connect to a remote box with ssh and there's an emacs running and I want to send it a command to execute (I'm thinking of make-frame-on-display, if it isn't obvious). It should not be impossible to set up emacs so that it reads a specific file or pipe either every few minutes with a timer or whenever some signal is received and evaluates whatever it finds there, or perhaps rather uses its contents as part of a predefined command. It would not be entirely trivial, however, and as yet I've no idea how to trap signals with emacs or how to set up such a timer; I would be grateful of any suggestions on which would be easier or where to look for code that I could use as example. Of course, since I have access to X in the remote I could in principle use X protocol to send keystrokes to it. I'm afraid my X programming skills aren't up to that, but I'm open to suggestions if there's a reasonably simple way to do it. One approach would be using gdb to grab to the running emacs process, but feeding it the desired command that way doesn't sound easy either. Comments, anyone? Should I forget this and install XEmacs instead (if it indeed can handle X- and non-X-frames simultaneously, so that I could start it under screen without X and create X frames from there)? -- Tapani Tarvainen