unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ivan Shmakov <ivan@siamics.net>
Cc: emacs-devel@gnu.org
Subject: Re: Errors in redisplay in eww
Date: Wed, 30 Dec 2015 20:08:10 +0200	[thread overview]
Message-ID: <83y4cbbyid.fsf@gnu.org> (raw)
In-Reply-To: <87twn0vxx0.fsf@violet.siamics.net> (message from Ivan Shmakov on Wed, 30 Dec 2015 14:00:43 +0000)

> From: Ivan Shmakov <ivan@siamics.net>
> 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")



  reply	other threads:[~2015-12-30 18:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-29 15:52 Errors in redisplay in eww Eli Zaretskii
2015-12-29 16:16 ` Lars Ingebrigtsen
2015-12-29 17:53   ` Eli Zaretskii
2015-12-30 11:24     ` Lars Magne Ingebrigtsen
2015-12-30 16:06       ` Eli Zaretskii
2016-01-02  5:54         ` Lars Magne Ingebrigtsen
2016-01-02  8:41           ` Eli Zaretskii
2016-01-03  9:19             ` Lars Magne Ingebrigtsen
2016-01-04 19:09               ` Eli Zaretskii
2016-01-09  9:13                 ` Lars Magne Ingebrigtsen
2016-01-09  9:46                   ` Eli Zaretskii
2016-01-09 11:59                     ` Lars Magne Ingebrigtsen
2016-02-04  3:25                     ` Lars Ingebrigtsen
2015-12-30 14:00     ` Ivan Shmakov
2015-12-30 18:08       ` Eli Zaretskii [this message]
2016-01-02 23:40         ` Ivan Shmakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y4cbbyid.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ivan@siamics.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).