From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: regcl Newsgroups: gmane.emacs.bugs Subject: bug#14668: 24.3; htmlfontify-buffer under emacs -nw produces blank page Date: Tue, 16 Jul 2013 18:14:54 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374012972 17022 80.91.229.3 (16 Jul 2013 22:16:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 22:16:12 +0000 (UTC) Cc: 14668@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 00:16:12 2013 Return-path: Envelope-to: geb-bug-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 1UzDXX-0003GY-9z for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 00:16:11 +0200 Original-Received: from localhost ([::1]:39565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzDXW-00033G-KW for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jul 2013 18:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzDXQ-000339-K9 for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 18:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzDXO-0007ic-An for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 18:16:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzDXO-0007iV-77 for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 18:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UzDXN-0001Dp-QE for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 18:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: regcl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jul 2013 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14668-submit@debbugs.gnu.org id=B14668.13740129254639 (code B ref 14668); Tue, 16 Jul 2013 22:16:01 +0000 Original-Received: (at 14668) by debbugs.gnu.org; 16 Jul 2013 22:15:25 +0000 Original-Received: from localhost ([127.0.0.1]:59223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzDWm-0001Cl-GD for submit@debbugs.gnu.org; Tue, 16 Jul 2013 18:15:24 -0400 Original-Received: from mail-qa0-f47.google.com ([209.85.216.47]:41083) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzDWl-0001CW-1E for 14668@debbugs.gnu.org; Tue, 16 Jul 2013 18:15:23 -0400 Original-Received: by mail-qa0-f47.google.com with SMTP id i13so2600813qae.20 for <14668@debbugs.gnu.org>; Tue, 16 Jul 2013 15:15:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:x-gm-message-state; bh=/eVRZKwY6ZBQoY73Abqk8l/K59N8PPEXuecjMioiAeg=; b=RyZ0DChPSylb5DCfxJ3FcP41V2HGEq3bEsXjG12U8REAon3rHnVufbbcoAnHbqMCT0 OAf9RpZURfI2Bgw+YtdTi5JFmurvW6ZxaaWBaMQWGb+tIxrY0I1TAlESoUS2ykIHMNyB sn1fv83H3HNPuy5DWAyw4DH0sxwFfQ1R5kYq1PNgK777x1tqO2WZ15u/JQkgdKmM5wlr Mf0ZhVH7O5WjFeQQQzuNvJ7YFh5W48JD6FVzrJeineU7/ZQGmjuxk8KM4Rn1blTQDedE YCnYh/wCzVrmY8lt1xR10ctpyiOPIv/FIR0zCvk6hRljYgDno2wJniibXWswq8nophxa 0o8A== X-Received: by 10.229.193.70 with SMTP id dt6mr1145580qcb.105.1374012917439; Tue, 16 Jul 2013 15:15:17 -0700 (PDT) Original-Received: from sombrero01.bwh.harvard.edu (ndcpat7.partners.org. [170.223.207.55]) by mx.google.com with ESMTPSA id t18sm7669776qam.12.2013.07.16.15.15.16 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 16 Jul 2013 15:15:16 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Fri, 21 Jun 2013 21:22:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Gm-Message-State: ALoCoQntojbPQ/10AKJImW/RnSAYAtUyHmh/UpqeVd/SlOuBO6yLoSofTJHLB5TsW2extsBRB2rs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76405 Archived-At: Hi Glenn, Sorry for the delay in responding. That fixes the problem for me. Many thanks! regcl Glenn Morris writes: > Thanks. I'm surprised this doesn't work. There seem to be two issues: > "unspecified-fg" and "unspecified-bg" colours, and the fact that font > :height == 1 in ttys. This hack seems to fix it: > > > *** lisp/htmlfontify.el 2013-02-22 01:32:45 +0000 > --- lisp/htmlfontify.el 2013-06-22 01:18:50 +0000 > *************** > *** 748,753 **** > --- 748,756 ---- > member lower than that of the color you are processing) strange things > may happen." > ;;(message "hfy-colour-vals");;DBUG > + (cond > + ((equal colour "unspecified-fg") (setq colour "black")) > + ((equal colour "unspecified-bg") (setq colour "white"))) > (let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals "white"))) > (rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals colour)))) > (if rgb16 > *************** > *** 773,778 **** > --- 776,783 ---- > "Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT. > Does not cope with the case where height is a function to be applied to > the height of the underlying font." > + ;; In ttys, the default face has :height == 1. > + (and (not (display-graphic-p)) (equal 1 height) (setq height 120)) > (list > (cond > ;;(t (cons "font-size" ": 1em"))