From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: Errors in redisplay in eww Date: Sat, 02 Jan 2016 23:40:18 +0000 Message-ID: <87a8onwnx9.fsf@violet.siamics.net> References: <83twn1dzg8.fsf@gnu.org> <874mf16xiy.fsf@gnus.org> <8360zhdtv9.fsf@gnu.org> <87twn0vxx0.fsf@violet.siamics.net> <83y4cbbyid.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451778052 21677 80.91.229.3 (2 Jan 2016 23:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2016 23:40:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 03 00:40:46 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aFVmv-0001B6-0m for ged-emacs-devel@m.gmane.org; Sun, 03 Jan 2016 00:40:45 +0100 Original-Received: from localhost ([::1]:40069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVmu-0004nP-EV for ged-emacs-devel@m.gmane.org; Sat, 02 Jan 2016 18:40:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVmr-0004n9-4W for emacs-devel@gnu.org; Sat, 02 Jan 2016 18:40:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFVmp-000661-VG for emacs-devel@gnu.org; Sat, 02 Jan 2016 18:40:41 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:35256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVmp-0005yo-M4 for emacs-devel@gnu.org; Sat, 02 Jan 2016 18:40:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=GN6kULZ/DN34khzUYRnDVf1P85gz1RqH5jX3qUc15hw=; b=SEvPO2mwlewZBiC1Ny8oSoq6/6zZPw9DIBJeVLKDVbeLwAhDwPZ3sUz6qauuO8GNjNB80pNTHxAzojF+9J7aVODYTQZ4eOjZ5OOMbpvKRmjojVZoi7q2rHb+g3Y3zXyUZbohXnhVP772Uq6ZcI4Tp6CgOUYHa69Ai2noXS0sdlU=; Original-Received: from violet.siamics.net ([2001:470:1f13:1eb::1:1d]) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84) (envelope-from ) id 1aFVmd-0001oT-6v for emacs-devel@gnu.org; Sat, 02 Jan 2016 23:40:27 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1aFVmV-0005pf-Kq for emacs-devel@gnu.org; Sun, 03 Jan 2016 06:40:19 +0700 In-Reply-To: <83y4cbbyid.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Dec 2015 20:08:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197391 Archived-At: >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Wed, 30 Dec 2015 14:00:43 +0000 >>> The face is (nil (:background "#ffffff")), and the problem happens >>> when we try to merge its car (which is nil, not a valid face). >> If I=E2=80=99m reading the code correctly, the 'face property value is = set >> to either a font or the value returned by the shr-face-background >> function, /or/ the value passed to shr-add-font is prepended to the >> current face list. Could you please try doing, say, >> trace-function-background on these two functions and see if the >> former ever returns anything suspicious (like the list above; and >> for what inputs), or if the latter is ever called with a nil TYPE >> argument? > The contents of the trace buffer is below. Does this reveal anything > interesting? I see nothing suspicious there, alas. I have also tried rendering the HTML code of said Web page with a just built Emacs (c988877f), but see no nils in the resulting 'face lists. FWIW, the shr-face-background function uses consp where I guess face-list-p would be more appropriate. Still, I see no way it could be related to the issue described. 1796 (defun shr-face-background (face) 1797 (and (consp face) 1798 (let ((background nil)) 1799 (dolist (elem face) [=E2=80=A6] --=20 FSF associate member #7257 http://am-1.org/~ivan/ =E2=80=A6 3013 B6A0= 230E 334A