[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Errors in redisplay in eww
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Errors in redisplay in eww |
Date: |
Sun, 03 Jan 2016 10:19:48 +0100 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> > Hope you will be able to tell, or at least ask some questions that
>> > will allow me to find that out.
>>
>> Is the `variable-pitch' face valid for you?
>
> Yes, both before and after visiting that URL.
shr adds the colours (mostly) by using `add-face-text-property'. Could
there be a bug somewhere in that code?
(defun shr-colorize-region (start end fg &optional bg)
(when (and shr-use-colors
(or fg bg)
(>= (display-color-cells) 88))
(let ((new-colors (shr-color-check fg bg)))
(when new-colors
(when fg
(add-face-text-property start end
(list :foreground (cadr new-colors))
t))
(when bg
(add-face-text-property start end
(list :background (car new-colors))
t)))
new-colors)))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no