From: Angelo Graziosi <angelo.graziosi@alice.it>
To: help-gnu-emacs@gnu.org
Subject: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 16:05:28 +0100 [thread overview]
Message-ID: <547C83B8.4050005@alice.it> (raw)
Out of curiosity, I wonder if one can use Emacs as a postscript
converter.. Suppose I have a file foo.txt. If I visit it and the
M-x ps-spool-buffer-with-faces
the result is in a *PostScript* buffer that I can save as foo.ps.
But what if one wants use that from command line o shell script?
I have tried this:
$ emacs --batch foo.txt -f ps-spool-buffer-with-faces --visit
\*PostScript\* -f save-buffer
Formatting... 0%
Collecting face information...
Formatting...100%
Formatting...done
Wrote /home/angelo/work/*PostScript*
but '*PostScript*' is saved empty...
$ ls -lrt
...
... 0 1 dic 15.54 *PostScript*
Where is the error?
TIA,
Angelo.
next reply other threads:[~2014-12-01 15:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-01 15:05 Angelo Graziosi [this message]
2014-12-01 17:16 ` Using Emacs as PS converter Doug Lewan
2014-12-01 17:34 ` Angelo Graziosi
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=547C83B8.4050005@alice.it \
--to=angelo.graziosi@alice.it \
--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).