From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Errors in redisplay in eww Date: Wed, 30 Dec 2015 20:08:10 +0200 Message-ID: <83y4cbbyid.fsf@gnu.org> References: <83twn1dzg8.fsf@gnu.org> <874mf16xiy.fsf@gnus.org> <8360zhdtv9.fsf@gnu.org> <87twn0vxx0.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1451498847 23627 80.91.229.3 (30 Dec 2015 18:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2015 18:07:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 19:07:27 2015 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 1aEL9i-00078v-Is for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2015 19:07:26 +0100 Original-Received: from localhost ([::1]:53336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEL9h-0003fq-SB for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2015 13:07:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEL9e-0003fj-FR for emacs-devel@gnu.org; Wed, 30 Dec 2015 13:07:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEL9a-0001YS-FH for emacs-devel@gnu.org; Wed, 30 Dec 2015 13:07:22 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEL9a-0001YM-Bn; Wed, 30 Dec 2015 13:07:18 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1252 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aEL9Z-0004Xw-Jl; Wed, 30 Dec 2015 13:07:18 -0500 In-reply-to: <87twn0vxx0.fsf@violet.siamics.net> (message from Ivan Shmakov on Wed, 30 Dec 2015 14:00:43 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:197185 Archived-At: > 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’m 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? Thanks. ====================================================================== 1 -> (shr-add-font 38 43 bold) 1 <- shr-add-font: nil ====================================================================== 1 -> (shr-face-background variable-pitch) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background nil) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background variable-pitch) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background nil) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-add-font 126 147 shr-link) 1 <- shr-add-font: nil ====================================================================== 1 -> (shr-add-font 149 163 bold) 1 <- shr-add-font: nil ====================================================================== 1 -> (shr-face-background variable-pitch) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background nil) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background variable-pitch) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background nil) 1 <- shr-face-background: nil ====================================================================== 1 -> (shr-face-background (variable-pitch (:background "#ffffff"))) 1 <- shr-face-background: (:background "#ffffff") ====================================================================== 1 -> (shr-face-background (variable-pitch bold (:background "#ffffff"))) 1 <- shr-face-background: (:background "#ffffff") ====================================================================== 1 -> (shr-face-background (variable-pitch shr-link (:background "#ffffff"))) 1 <- shr-face-background: (:background "#ffffff") ====================================================================== 1 -> (shr-face-background (variable-pitch bold (:background "#ffffff"))) 1 <- shr-face-background: (:background "#ffffff")