all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: "Gary ." <emacs@garydjones.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs daemon.. but quietly
Date: Mon, 22 Mar 2010 19:29:46 +0100	[thread overview]
Message-ID: <20100322182946.GA8597@tomas> (raw)
In-Reply-To: <a29c7cae1003050524u6d2bd266k25ec5bdf3e46021d@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Mar 05, 2010 at 02:24:44PM +0100, Gary . wrote:
> 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

If I understand you correctly, you want to suppress stdout/stderr output
of emacs --daemon?

You might just redirect that to /dev/null like so:

  emacs --daemon > /dev/null 2>&1

(or did I misunderstand you completely?)

>   ("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.

Hm. I don't quite understand this part. Besides, it seems a roundabout
way. What are you trying to achieve?

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLp7caBcgs9XrR2kYRAlwMAJ4sTtAZtUB5stmqKFTdOukbeArPuwCfQ00L
Ro1KfoynRG84RsyVvE0nFPQ=
=NNry
-----END PGP SIGNATURE-----




  parent reply	other threads:[~2010-03-22 18:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 13:24 emacs daemon.. but quietly Gary .
2010-03-22 13:09 ` Gary .
2010-03-22 18:29 ` tomas [this message]
2010-03-22 19:02   ` Richard Riley
2010-03-23 15:28     ` Gary .
2010-03-26 14:44       ` Richard Riley
2010-03-23 15:25   ` Gary .
2010-03-23 18:30   ` Gary .
     [not found] <mailman.2328.1267795489.14305.help-gnu-emacs@gnu.org>
2010-03-05 14:09 ` Andre Ramaciotti
2010-03-06 13:24 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100322182946.GA8597@tomas \
    --to=tomas@tuxteam.de \
    --cc=emacs@garydjones.name \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.