bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: martin rudalics
Subject: bug#21895: [PATCH] shr: don't invoke unbound function (Bug#21895)
Date: Fri, 13 Nov 2015 09:04:37 +0100

> +(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.
The right solution is to

(require 'fringe)

in ‘shr-mode’ as you proposed earlier.

martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]