Re: persistent emacs a la 'screen'?



tomas wrote:
Maybe EmacsClient or Gnuclient is what you are looking for:

<http://www.emacswiki.org/cgi-bin/wiki/EmacsClient>

(Newer Emacsen (CVS) only)

<http://www.emacswiki.org/cgi-bin/wiki/GnuClient>

(Older Emacsen and XEmacs)

They let you start an Emacs as a server to which you later attach (e.g. opening
new frames).

My response evidently got lost in the ether - having given it long enough to give up, I'm going to take another shot.

Either this is misleading or I am not reading the correct manual. As far as I can tell, emacsclient only opens a new buffer in an existing Emacs frame.

I am in a similar situation to funkyj. I want to keep an Emacs session running and be able to attach to it when I log in, and detach from it when I log out without closing it down. Right now, I use screen and from anywhere on the Internet I just do:

client$ ssh myserver
myserver$ screen -xRR

(I actually use shell aliases for each of these, but that's beyond the point.)

I want to do something similar with Emacs. While it is true that I could run 'emacs -nw' within a window on my persistent screen session, the problem with that is that there seems to be no key that is productive to use for screen (by default C-a) that does not interfere with Emacs.

So what I want to do is:

client$ ssh myserver
myserver$ emacs-attach

emacsclient does not do this. It is a useful utility, but it solves a different problem than the one that I and, if I read him correctly, funkyj have.

Does anyone have any ideas on solving this one? Multi-tty looks nice, but does not evidently support my Macs. Is waiting for it (or actually finding the time to contribute to it) my best bet?

On a side thought, I could run a separate screen session with a command character that is impossible to type and call that my detached Emacs, but the problem with that is that things like "screen -xRR" require me to tell them which screen session to attach to, or I get a default selection which may not be correct. Making things more difficult is the fact that you have to name the screen session at least by pty, which is not always predictable should I reboot my machine and restart my long-running screen session.

Thoughts on this would be much-appreciated, I'm sure not just by myself.

.



Relevant Pages

  • RE: Shell hangs when using "screen" and "emacs"
    ... Hmmm, difficult to debug. ... I like screen but it does not work well with bash in emacs mode using ... Try Ctrl+a " to get a list of windows if it freezes up again. ... screen session, but I'm not sure how to debug it. ...
    (RedHat)
  • Shell hangs when using "screen" and "emacs"
    ... I try and use shortcuts (for example Ctrl plus some ... key) in emacs, but whenever I type an erroneous shortcut the entire ... shell freezes and I'm forced to kill the window and restart the SSH ... screen session, but I'm not sure how to debug it. ...
    (comp.os.linux.misc)
  • Shell hangs when using "screen" and "emacs"
    ... I try and use shortcuts (for example Ctrl plus some ... key) in emacs, but whenever I type an erroneous shortcut the entire ... shell freezes and I'm forced to kill the window and restart the SSH ... screen session, but I'm not sure how to debug it. ...
    (RedHat)
  • RE: Shell hangs when using "screen" and "emacs"
    ... Shell hangs when using "screen" and "emacs" ... I like screen but it does not work well with bash in emacs mode using ... Try Ctrl+a " to get a list of windows if it freezes up again. ... screen session, but I'm not sure how to debug it. ...
    (RedHat)
  • Re: How many use eMacs and Gnus on daily basis?
    ... I didn't know it's existence. ... It's really good that you can do everything within Emacs. ... Detach Emacs here and attach it other place else? ...
    (comp.emacs)