emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The emacsclient socket vs. etc/emacs.bash


From: Juanma Barranquero
Subject: Re: The emacsclient socket vs. etc/emacs.bash
Date: Fri, 8 Dec 2006 20:10:24 +0100

On 12/8/06, Stefan Monnier <address@hidden> wrote:

Yes, the CVS had a code for a short while, where it removed the
socket file.  But it was fixed.

If the Emacs server detects that the server file exists (which means:
another Emacs instance, in the same machine, with the same server
name), it could read its contents and contact the previous Emacs
instance. Then:

- If it cannot connect, assume it's a leftover and overwrite it
- If it can connect and the previous Emacs wants to keep it, don't
start the server on the new instance (and warn the user)
- If it can connect and the previous Emacs relinquishes the server,
overwrite the server file (and the previous instance knows it is not
the server anymore)

It should be relatively simple to implement.

                   /L/e/k/t/u




reply via email to

[Prev in Thread] Current Thread [Next in Thread]