aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-06-25 23:59:48 -0700
committerGlenn Morris2013-06-25 23:59:48 -0700
commiteab35f39222d075677e012469bf612e4fbb31caa (patch)
treecdcc8006ca28c7ee73818041b15f3b8b3796ddab
parentf2136e1e28e9b3f0eb2aef6ebaf6be37024e7bb9 (diff)
downloademacs-eab35f39222d075677e012469bf612e4fbb31caa.tar.gz
emacs-eab35f39222d075677e012469bf612e4fbb31caa.zip
* lisp/htmlfontify.el (hfy-triplet): Handle unspecified-fg, bg.
(hfy-size): Handle ttys. Fixes: debbugs:14668
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/htmlfontify.el6
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c43c23fa5d..7aa962b9ada 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-06-26 Glenn Morris <rgm@gnu.org> 12013-06-26 Glenn Morris <rgm@gnu.org>
2 2
3 * htmlfontify.el (hfy-triplet): Handle unspecified-fg, bg.
4 (hfy-size): Handle ttys. (Bug#14668)
5
3 * info-xref.el: Update for Texinfo 5 change in *note format. 6 * info-xref.el: Update for Texinfo 5 change in *note format.
4 (info-xref-node-re, info-xref-note-re): New constants. 7 (info-xref-node-re, info-xref-note-re): New constants.
5 (info-xref-check-buffer): Use info-xref-note-re. 8 (info-xref-check-buffer): Use info-xref-note-re.
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 768dda993e2..3de2b1a65e6 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -748,6 +748,10 @@ if you've redefined white, (esp. if you've redefined it to have a triplet
748member lower than that of the color you are processing) strange things 748member lower than that of the color you are processing) strange things
749may happen." 749may happen."
750 ;;(message "hfy-colour-vals");;DBUG 750 ;;(message "hfy-colour-vals");;DBUG
751 ;; TODO? Can we do somehow do better than this?
752 (cond
753 ((equal colour "unspecified-fg") (setq colour "black"))
754 ((equal colour "unspecified-bg") (setq colour "white")))
751 (let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals "white"))) 755 (let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals "white")))
752 (rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals colour)))) 756 (rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals colour))))
753 (if rgb16 757 (if rgb16
@@ -773,6 +777,8 @@ may happen."
773 "Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT. 777 "Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT.
774Does not cope with the case where height is a function to be applied to 778Does not cope with the case where height is a function to be applied to
775the height of the underlying font." 779the height of the underlying font."
780 ;; In ttys, the default face has :height == 1.
781 (and (not (display-graphic-p)) (equal 1 height) (setq height 100))
776 (list 782 (list
777 (cond 783 (cond
778 ;;(t (cons "font-size" ": 1em")) 784 ;;(t (cons "font-size" ": 1em"))