unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tapani Tarvainen <tt+gn20030130T143401@it.jyu.fi>
Subject: Commanding remote emacs (was Re: X- and non-X-frames in same emacs?)
Date: 30 Jan 2003 15:02:48 +0200	[thread overview]
Message-ID: <n6y9527ptz.fsf@it.jyu.fi> (raw)
In-Reply-To: mailman.1166.1043914425.21513.help-gnu-emacs@gnu.org

Eli Zaretskii <eliz@is.elta.co.il> 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

       reply	other threads:[~2003-01-30 13:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1166.1043914425.21513.help-gnu-emacs@gnu.org>
2003-01-30 13:02 ` Tapani Tarvainen [this message]
2003-01-30 18:10   ` Commanding remote emacs Kai Großjohann
2003-01-31 10:30     ` Tapani Tarvainen
2003-01-30 19:35   ` Commanding remote emacs (was Re: X- and non-X-frames in same emacs?) Kevin Rodgers
2003-02-05 10:22   ` giacomo boffi

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=n6y9527ptz.fsf@it.jyu.fi \
    --to=tt+gn20030130t143401@it.jyu.fi \
    /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).