help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacs daemon.. but quietly


From: Stefan Monnier
Subject: Re: emacs daemon.. but quietly
Date: Tue, 04 May 2010 15:41:42 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

> Is there any way to stop emacs, run with --daemon, printing out
> details about all of the config files it is loading? At the moment I
> see
>   ("emacs" "--quiet")
>   Loading charset...
>   Loading charset...done
> (etc.) which is ugly since I want to start the server, when
> appropriate, when I start my login shell by doing something like

>   function serverExists {
>     TMPDIR=${TMPDIR-/tmp};
>     TMPFILE="${TMPDIR}/ps-output.$$";

>     ps > ${TMPFILE}
>     grep -q 'emacs-X11' ${TMPFILE}
>     SERVER_STARTED=$?;
>     rm ${TMPFILE}

>     return $SERVER_STARTED;
>   }

>   if serverExists ; then
>    export EMACS_SERVER="emacs already started"
>   else
>    emacs --daemon --quiet
>    export EMACS_SERVER="emacs started here"
>   fi
>   echo $EMACS_SERVER

> in my .bashrc.

> Any ideas, anyone?

Why is the output a problem?  How do you "login"?


        Stefan


PS: You could avoid starting this daemon eagerly and do it lazily using
the "-a ''" parameter.  BTW your `serverExists' could instead do
"emacsclient --eval 1".


reply via email to

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