help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Emacs as PS converter


From: Angelo Graziosi
Subject: Re: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 18:34:10 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]