From: Dan Espen <daneNO@MORE.mk.SPAMtelcordia.com>
To: help-gnu-emacs@gnu.org
Subject: Re: colored fonts in batch mode
Date: Thu, 08 May 2008 15:42:44 GMT [thread overview]
Message-ID: <ichcd8zts8.fsf@verizon.net> (raw)
In-Reply-To: mailman.11327.1210256313.18990.help-gnu-emacs@gnu.org
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.)
next prev parent reply other threads:[~2008-05-08 15:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 9:15 colored fonts in batch mode Carsten Dominik
2008-05-08 11:22 ` Jason Rumney
2008-05-08 12:23 ` Carsten Dominik
2008-05-08 14:18 ` Eli Zaretskii
[not found] ` <mailman.11327.1210256313.18990.help-gnu-emacs@gnu.org>
2008-05-08 15:42 ` Dan Espen [this message]
2008-05-09 13:45 ` Carsten Dominik
2008-05-08 15:45 ` Jason Rumney
2008-05-08 16:02 ` Johan Bockgård
2008-05-09 13:46 ` Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ichcd8zts8.fsf@verizon.net \
--to=daneno@more.mk.spamtelcordia.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.