From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Rendering buffer to HTML from command line script Date: Fri, 05 Aug 2016 21:10:51 +0200 Message-ID: <877fbvowuc.fsf@zigzag.favinet> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1470776544 5617 195.159.176.226 (9 Aug 2016 21:02:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2016 21:02:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?St=C3=A9phane?= Travostino Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 09 23:02:20 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXEAE-0001J5-Eo for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Aug 2016 23:02:18 +0200 Original-Received: from localhost ([::1]:38043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXEAB-0004RR-Br for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Aug 2016 17:02:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXE9X-0004RM-TV for help-gnu-emacs@gnu.org; Tue, 09 Aug 2016 17:01:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXE9T-0003Bl-Uv for help-gnu-emacs@gnu.org; Tue, 09 Aug 2016 17:01:35 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:42242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXE9T-0003BZ-Qp for help-gnu-emacs@gnu.org; Tue, 09 Aug 2016 17:01:31 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.82) (envelope-from ) id 1bXE9R-0007xH-87; Tue, 09 Aug 2016 17:01:29 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1bVkWM-0001jS-8a; Fri, 05 Aug 2016 21:11:02 +0200 In-Reply-To: (=?utf-8?Q?=22St=C3=A9phane?= Travostino"'s message of "Sat, 20 Feb 2016 17:20:29 +0000") X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 67.59.132.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111102 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () St=C3=A9phane Travostino () Sat, 20 Feb 2016 17:20:29 +0000 For example: (defface 'foo (((min-colors 88) (class color) etc.)) If I modify the theme to disable these terminal requirements options, htmlfontify renders correctly. Did you try to set a terminal that has fulfills those requirements? You can use =E2=80=98toe -a=E2=80=99: $ toe -a dumb 80-column dumb tty pcansi ibm-pc terminal programs claiming to be ansi ansi ansi/pc-term compatible with color rxvt-unicode rxvt-unicode terminal (X Window System) rxvt rxvt terminal emulator (X Window System) [...] to find a name, such as =E2=80=98foo=E2=80=99 and then: $ TERM=3Dfoo emacs -q -Q --batch \ -eval '(message "%s" (getenv "TERM"))' foo The basic technique lies in the =E2=80=98TERM=3Dfoo=E2=80=99 portion of the command, prior to the executable name (in this case, "emacs"). This sets the environment variable =E2=80=98TERM=E2=80=99 only for that pro= cess. Maybe Emacs will consult the env var and DTRT for your application. Another (better) idea, from browsing =E2=80=98emacs --help=E2=80=99, is to = use: =2D-color, --color=3DMODE override color mode for character terminals; MODE defaults to `auto', and can also be `never', `always', or a mode name like `ansi8' which, being explicitly documented as character terminal support, should have a higher probability of success. =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (if you're human and you know it) read my lisp: (defun responsep (type via) (case type (technical (eq 'mailing-list via)) ...)) =2D--------------------------------------------- GPG key: 4C807502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlek5L8ACgkQZwMiJEyAdQKuBQCfT76tZu24TneMBKNoOmN55d6f eKcAoJrCaXljaLMBDxEB18Y4YWvukHKt =50du -----END PGP SIGNATURE----- --=-=-=--