GNU bug report logs - #40124
Bad interaction between before-string and :box faces

Previous Next

Package: emacs;

Reported by: Clément Pit-Claudel <cpitclaudel <at> gmail.com>

Date: Wed, 18 Mar 2020 19:27:01 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 40124 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Clément Pit-Claudel <cpitclaudel <at> gmail.com>
Cc: demisbalbach <at> googlemail.com, 40124 <at> debbugs.gnu.org
Subject: Re: bug#40124: Bad interaction between before-string and :box faces
Date: Thu, 19 Mar 2020 17:00:03 +0200
> From: Clément Pit-Claudel <cpitclaudel <at> gmail.com>
> Date: Wed, 18 Mar 2020 15:26:38 -0400
> Cc: demisbalbach <at> googlemail.com
> 
> In the following sample, the word "test" should have its letters "e" and "s" in a box; but instead they display with just a bar above and below.  Removing the before-string property fixes the issue.
> 
> (with-current-buffer (get-buffer-create "box-test")
>   (erase-buffer)
>   (insert "test")
>   (let ((ov (make-overlay 2 4)))
>     (overlay-put ov 'face '(:box t))
>     (overlay-put ov 'before-string
>                  (propertize ">" 'display
>                              '(left-fringe right-arrow))))
>   (pop-to-buffer (current-buffer)))
> 
> This was reported by Artemios (cc'd) in https://github.com/flycheck/flycheck/issues/1666.

Thanks, I think I fixed this now on the master branch.




This bug report was last modified 4 years and 275 days ago.

Previous Next


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