[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error in server-running-p on M$
From: |
Stefan Monnier |
Subject: |
Re: error in server-running-p on M$ |
Date: |
Thu, 11 Dec 2008 23:51:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> This should first stop our own server. The user will usually not run
>> it when our server is running, but she might do it occasionally.
> I've done that, and now I still dislike `server-force-delete' even
> more. I strongly think that a simple question on server-start would
> have been cleaner.
For a function that's likely to be called from .emacs, I think it's
better to avoid asking questions as far as possible.
> which is kind of redundant. It almost should be
> (if server-mode
> (server-mode -1)
> (condition-case nil
> ...))
I don't see why it's a problem.
> but the name of the current server could be different of the one for
> the connection file we're trying to delete.
> Ugly IMHO.
BTW, another option is to let server-stop ask the question, so
C-u -1 M-x server-mode would provide the functionality of
server-force-delete: if server is running, turn it off, if it's not
running and there's no socker/server file, don't do anything, and if
there is some file ask the user whether to force-delete it.
> The code is now committed.
Thanks,
Stefan
- Re: error in server-running-p on M$, Stefan Monnier, 2008/12/09
- Re: error in server-running-p on M$, Chetan Pandya, 2008/12/10
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/10
- Re: error in server-running-p on M$, Stefan Monnier, 2008/12/10
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/10
- Re: error in server-running-p on M$, Stefan Monnier, 2008/12/10
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/11
- Re: error in server-running-p on M$, Stefan Monnier, 2008/12/11
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/11
- Re: error in server-running-p on M$,
Stefan Monnier <=
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/12
- Re: error in server-running-p on M$, Stefan Monnier, 2008/12/12
- Re: error in server-running-p on M$, Juanma Barranquero, 2008/12/12