From: Nick Dokos <nicholas.dokos@hp.com>
To: Herbert Sitz <hesitz@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Output to shell when calling emacsclient?
Date: Sat, 22 Oct 2011 15:22:30 -0400 [thread overview]
Message-ID: <26304.1319311350@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Herbert Sitz <hesitz@gmail.com> of "Sat, 22 Oct 2011 18:42:37 -0000." <loom.20111022T203838-978@post.gmane.org>
Herbert Sitz <hesitz@gmail.com> 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
next prev parent reply other threads:[~2011-10-22 19:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 18:42 Output to shell when calling emacsclient? Herbert Sitz
2011-10-22 19:22 ` Nick Dokos [this message]
2011-10-22 20:37 ` Herbert Sitz
2011-10-23 16:47 ` Herbert Sitz
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26304.1319311350@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=hesitz@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).