emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8b95ee4: * net/shr.el (shr-colorize-region): Allow


From: Katsumi Yamaoka
Subject: [Emacs-diffs] master 8b95ee4: * net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
Date: Tue, 29 Sep 2015 06:31:40 +0000

branch: master
commit 8b95ee49bc1d632a34230b367be53a97060ebe7e
Author: Katsumi Yamaoka <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>

    * net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.
    Suggested by Eli Zaretskii.
---
 lisp/net/shr.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index ebc8ab3..60203f5 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1042,7 +1042,7 @@ ones, in case fg and bg are nil."
                (shr-color-visible bg fg)))))))
 
 (defun shr-colorize-region (start end fg &optional bg)
-  (when (and (or fg bg) (>= (display-color-cells) 256))
+  (when (and (or fg bg) (>= (display-color-cells) 88))
     (let ((new-colors (shr-color-check fg bg)))
       (when new-colors
        (when fg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]