From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: emacs daemon.. but quietly Date: Mon, 22 Mar 2010 20:02:22 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: <0frk77-nr6.ln1@news.eternal-september.org> References: <20100322182946.GA8597@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1269285357 30608 80.91.229.12 (22 Mar 2010 19:15:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2010 19:15:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 22 20:15:52 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntn6I-0008JN-MV for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Mar 2010 20:15:47 +0100 Original-Received: from localhost ([127.0.0.1]:49645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntn6H-0006qT-T4 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Mar 2010 15:15:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntn5u-0006pc-Ng for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 15:15:22 -0400 Original-Received: from [140.186.70.92] (port=35054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntn5t-0006p4-Hn for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 15:15:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntn5s-0005uv-6s for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 15:15:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53290) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntn5r-0005up-S9 for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 15:15:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ntn5o-0007zI-Js for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 20:15:16 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 20:15:16 +0100 Original-Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 20:15:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72452 Archived-At: tomas@tuxteam.de writes: > 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 > As is emacs --daemon IMO. In emacs 23 using the alternate editor setting. My "edit" script is:- ,---- | #!/bin/bash | # edit | export GDK_NATIVE_WINDOWS=1 | exec emacsclient --alternate-editor="" -c "$@" `---- Its in the man page for emacsclient and the wiki. -- ASCII ribbon campaign ( ) - against HTML email X & vCards / \