From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gene Newsgroups: gmane.emacs.help Subject: Re: Rendering buffer to HTML from command line script Date: Wed, 24 Feb 2016 12:41:12 -0800 (PST) Message-ID: <2ecd6da9-9b42-4ec4-b119-2d9762e68daa@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456346736 26662 80.91.229.3 (24 Feb 2016 20:45:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 20:45:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 21:45:36 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYgJU-000753-7j for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 21:45:36 +0100 Original-Received: from localhost ([::1]:38333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYgJT-0003b4-OB for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 15:45:35 -0500 X-Received: by 10.13.236.84 with SMTP id v81mr37950256ywe.2.1456346472818; Wed, 24 Feb 2016 12:41:12 -0800 (PST) X-Received: by 10.50.78.169 with SMTP id c9mr491442igx.5.1456346472784; Wed, 24 Feb 2016 12:41:12 -0800 (PST) Original-Path: usenet.stanford.edu!y89no3947762qge.0!news-out.google.com!h70ni510qge.0!nntp.google.com!w104no3291963qge.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=67.255.107.95; posting-account=xePGxQoAAAAgJalA5zaHmrGIX9Wk_gLW Original-NNTP-Posting-Host: 67.255.107.95 User-Agent: G2/1.0 Injection-Date: Wed, 24 Feb 2016 20:41:12 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:217005 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109298 Archived-At: On Saturday, February 20, 2016 at 5:07:43 PM UTC-5, St=E9phane Travostino w= rote: > If I modify the theme to disable these terminal requirements options, > htmlfontify renders correctly. >=20 > That's probably a long shot, but is it possible to either force a > particular terminal configuration from command line, or force-enable all > theme faces? I found the following in the docs for a package named faces+ (eval-after-load "faces" '(require 'faces+)) > For example, (display-color-cells) in X returns 16777216, while I get 0 > when executed from the script; that's probably part of the problem. >=20 > Why am I doing this: I want to create an Emacs theme browser web > application which creates a preview of any theme against a few different > file formats > I want an headless Emacs to create the HTML preview. You might want to consider invoking emacs-nox (EG emacs with No x-windows s= upport) as you mentioned `headless' emacs. To speed things up you might want to consider using the --quick option. I know this might be more general than you'd like, but it's all that comes = to mind at the moment. Cheers! Gene