GNU bug report logs - #60580
29.0.60; crash in xdisp.c with modus theme and display-fill-column-indicator

Previous Next

Package: emacs;

Reported by: chad <yandros <at> gmail.com>

Date: Thu, 5 Jan 2023 19:21:02 UTC

Severity: normal

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Protesilaos Stavrou <info <at> protesilaos.com>
Cc: yandros <at> gmail.com, 60580 <at> debbugs.gnu.org
Subject: bug#60580: 29.0.60; crash in xdisp.c with modus theme and display-fill-column-indicator
Date: Fri, 06 Jan 2023 09:12:17 +0200
> From: Protesilaos Stavrou <info <at> protesilaos.com>
> Cc: 60580 <at> debbugs.gnu.org
> Date: Fri, 06 Jan 2023 06:01:05 +0200
> 
> >   ;;;;; display-fill-column-indicator-mode
> >       `(fill-column-indicator ((,class :height 1 :background ,bg-region :foreground ,bg-region)))
> >
> > I have no idea what is ":height 1" about, but I think it's wrong and
> > should be replaced with some reasonable value.
> 
> The ":height 1" has been there for many versions and never caused a
> problem of this sort.

I'm guessing that this is because almost no one builds Emacs with the
assertions enabled (--enable-testing=yes at configure time).  I do,
but the problem doesn't happen on my system, so I haven't seen it,
either.

> The reason it is like this is to make the indicator a contiguous
> line that is not affected by variations in font heights and/or a high
> 'line-spacing' value.  Otherwise the indicator can appear as a dashed
> line.

Why do you assume that ":height 1" will avoid this problem?  I think
you are just using some undocumented side effect of the
implementation, as there's no reason to believe using such small
height of the face can solve the problem with occasional 1-pixel gaps
in the fill-column indicator.

But let's first see if my latest changes prevent the assertion
violations even without changing the themed faces.




This bug report was last modified 2 years and 130 days ago.

Previous Next


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