From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Doug Lewan <dougl@shubertticketing.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 18:34:10 +0100 [thread overview]
Message-ID: <547CA692.7050404@alice.it> (raw)
In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9892B9A336@DAKIYA1.pegasus.local>
Ciao Doug, thanks for clarification.
Ciao,
Angelo.
Il 01/12/2014 18:16, Doug Lewan ha scritto:
> First, note the following in the documentation for ps-spool-buffer-with-faces:
> This command works only if you are using
> a window system, so it has a way to determine color values.
>
> If you use --batch or run on a terminal, then there isn't a window system available as far as emacs can tell. Try "emacs --batch --eval='(message window-system)'" to see.
>
> Next, emacs does a *lot* of things to start up, and the environment might not always be good for doing programming kinds of things on the command line.
>
> For example, it's only in step 23 that a buffer is guaranteed to be selected, and that is /after/ it has handled the command line arguments (step 21). See the info for '(elisp) Startup Summary'.
>
> To do anything sophisticated, you should probably really be doing it in lisp where you have real control. Even using --eval '(sample code)' on the command line would probably be more reliable. If you want to use emacs to support shell programming, then maybe starting it --daemon and using emacsclient is the way to go. (On the other hand, you would then affect your whole environment and that might complicate other things.)
>
next prev parent reply other threads:[~2014-12-01 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-01 15:05 Using Emacs as PS converter Angelo Graziosi
2014-12-01 17:16 ` Doug Lewan
2014-12-01 17:34 ` Angelo Graziosi [this message]
2014-12-01 19:58 ` Angelo Graziosi
2014-12-01 20:09 ` Eli Zaretskii
2014-12-01 17:52 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2014-12-01 21:05 Angelo Graziosi
2014-12-02 3:32 ` Eli Zaretskii
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547CA692.7050404@alice.it \
--to=angelo.graziosi@alice.it \
--cc=dougl@shubertticketing.com \
--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.
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).