From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: colored fonts in batch mode Date: Thu, 08 May 2008 15:42:44 GMT Message-ID: References: <3eae7850-9fe0-413f-8e42-169ebf129ec6@k13g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210264840 14106 80.91.229.12 (8 May 2008 16:40:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 16:40:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 08 18:41:15 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ju9BD-0004gf-3f for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 18:41:15 +0200 Original-Received: from localhost ([127.0.0.1]:54342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ju9AV-0006tV-1D for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 12:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc01.POSTED!d15a3661!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.4 (Educational Television, i686-pc-linux) Cancel-Lock: sha1:XFsosoDSw9d4wjIB1gRlzP8kKS0= Original-Lines: 34 Original-NNTP-Posting-Host: 96.240.0.111 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trnddc01 1210261364 96.240.0.111 (Thu, 08 May 2008 11:42:44 EDT) Original-NNTP-Posting-Date: Thu, 08 May 2008 11:42:44 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:158451 X-Original-Bytes: 2251 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53818 Archived-At: Eli Zaretskii writes: >> From: Carsten Dominik >> 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.)