[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: colored fonts in batch mode
From: |
Dan Espen |
Subject: |
Re: colored fonts in batch mode |
Date: |
Thu, 08 May 2008 15:42:44 GMT |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.4 (Educational Television, i686-pc-linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Carsten Dominik <dominik@science.uva.nl>
>> Date: Thu, 08 May 2008 14:23:36 +0200
>> Distribution: world
>>
>> > (set-frame-parameter nil 'display-type 'color)
>> > (defun display-color-cells (&optional display)
>> > "Fake hicolor display"
>> > 65536)
>>
>> Hmmm, I see where you are heading. However, in batch mode,
>> set-frame-parameter does not seem to be defined as a function.... Also
>> a (require 'frame) does not seem to help.
>>
>> Any further ideas?
>
> How about using the --color=NUMBER command-line switch, does this
> help in any way? E.g., try with 8 as NUMBER.
>
> I must say that what you are trying to do might simply be impossible
> with Emacs, as Emacs uses frame-type specific methods to turn colors
> on and off, so it needs to know what kind of frame is it dealing with.
>
> IOW, you are trying to piggy-back on the Emacs display engine, so you
> need to play by its rules.
I'm more familiar with XEmacs than emacs, but I think
the concept applies.
Rather using batch invocation wouldn't using the emacs
equivalent of "gnudoit" be a solution?
(gnudoit sends lisp commands to a running XEmacs.)
Re: colored fonts in batch mode, Johan Bockgård, 2008/05/08