Subject: Re: bug#21895: [PATCH] shr: don't invoke unbound function (Bug#21895)

From: Eli Zaretskii <[email-masked]>
Date: Fri, 13 Nov 2015 10:23:17 +0200

> Date: Fri, 13 Nov 2015 09:04:37 +0100
> From: martin rudalics <[email-masked]>
> 
>  > +(defun fringes-p ()
>  > +  "Return t if fringe-columns is bound, and either (fringe-columns 'left)
>  > or (fringe-columns 'right) returns nonzero."
>  > +  (and (fboundp 'fringe-columns)
>  > +       (or (not (zerop (fringe-columns 'right)))
>  > +           (not (zerop (fringe-columns 'left))))))
>  > +
> 
> This is wrong when ‘fringe-columns’ is unbound and a fringe is present.

Why would that happen?  fringe.el is preloaded when GUI frames are
supported, and if not, there are no fringes.  What am I missing?

> The right solution is to
> 
> (require 'fringe)
> 
> in ‘shr-mode’ as you proposed earlier.

What if the user doesn't want fringes in her sessions?