From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Output to shell when calling emacsclient? Date: Sat, 22 Oct 2011 15:22:30 -0400 Message-ID: <26304.1319311350@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHh9P-00072g-Cv for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 15:22:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHh9O-0006kG-8A for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 15:22:35 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:27656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHh9O-0006k7-5c for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 15:22:34 -0400 In-Reply-To: Message from Herbert Sitz of "Sat, 22 Oct 2011 18:42:37 -0000." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Herbert Sitz Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Herbert Sitz wrote: > I'm running --eval commands from the shell using emacsclient (and on windows > emacsclientw). > > The --batch option does not seem to be an option with emacsclient, although it > works fine with plain emacs. However, I would still like to print output to the > shell that I'm issuing the emacsclient command in. Is there some way to do this? > The message function will cause output to the echo area of emacs as well as to the standard output of the emacsclient command: ,---- | $ emacsclient --eval '(message "Hi there")' | "Hi there" `---- Nick