From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.help Subject: Re: colored fonts in batch mode Date: Thu, 08 May 2008 14:23:36 +0200 Organization: Faculty of Science, University of Amsterdam 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 1210254121 5014 80.91.229.12 (8 May 2008 13:42:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 13:42:01 +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 15:42:37 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 1Ju6NE-0008Ld-Gt for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 15:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:41186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ju6MW-0004mQ-Ex for geh-help-gnu-emacs@m.gmane.org; Thu, 08 May 2008 09:40:44 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!txtfeed1.tudelft.nl!tudelft.nl!binfeed1.tudelft.nl!usenet.uva.nl!news.science.uva.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-Distribution: world Original-NNTP-Posting-Host: nb-dominik2.science.uva.nl Original-X-Trace: info.science.uva.nl 1210249416 21326 146.50.22.167 (8 May 2008 12:23:36 GMT) Original-X-Complaints-To: usenet@science.uva.nl Original-NNTP-Posting-Date: Thu, 8 May 2008 12:23:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (darwin) Cancel-Lock: sha1:pnxwj6sn4HLyunQxiD8DeRDRLm4= Original-Xref: shelby.stanford.edu gnu.emacs.help:158449 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:53816 Archived-At: Jason Rumney writes: > On May 8, 10:15 am, Carsten Dominik wrote: > >> This works great in interactive work, when I actually have a window >> system running. However, in batch mode, Emacs seems to think that it >> is displaying on a black-and-white device, so the fontification is much >> poorer in this case. > > Try putting the following in a file (batch-color.el) and loading it as > the first part of your batch operation: > > (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? Thanks! - Carsten