gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] Re: Emacs & org-mode for handling appointments


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Re: Emacs & org-mode for handling appointments
Date: Wed, 30 Jul 2008 17:00:29 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jul 30, 2008 at 04:15:20PM +0200, Gour wrote:

> Karsten> No problem. How can I detect whether a server is already
> Karsten> running ? How would I start one if not ?
> 
> Well, invoking emacslient when the server is not running will report:
> 
> emacsclient: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
> emacsclient: No socket or alternate editor.  Please use:
> 
>       --socket-name
>       --server-file      (or environment variable EMACS_SERVER_FILE)
>       --alternate-editor (or environment variable ALTERNATE_EDITOR)

This works nicely:

        emacsclient --alternate-editor=emacs some-file.org

which starts a non-server emacs for just this session if no
server is running.

> Therefore, I believe it's enough to report to user that server is not
> running (console output) and inform him to re-try again after starting
> server.
IMO, yes, but making things work regardless is better.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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