GNU bug report logs - #21895
25.0.50; eww: Lisp error: (void-function fringe-columns)

Previous Next

Package: emacs;

Reported by: Eric Hanchrow <eric.hanchrow <at> gmail.com>

Date: Fri, 13 Nov 2015 00:08:02 UTC

Severity: normal

Found in version 25.0.50

Done: "John Wiegley" <jwiegley <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>, 21895 <at> debbugs.gnu.org
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





This bug report was last modified 9 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.