GNU bug report logs -
#67404
30.0.50; Issue with :box face attribute
Previous Next
Reported by: David Ponce <da_vid <at> orange.fr>
Date: Thu, 23 Nov 2023 15:24:02 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 67404-done <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 30 Nov 2023 17:20:44 +0100
> Cc: 67404 <at> debbugs.gnu.org
> From: David Ponce <da_vid <at> orange.fr>
>
> I confirm that with your fix on master branch, the behavior is now
> consistent between defface and customize-face: both signal an error
> on value zero for line-width :-)
Thanks for testing, I'm therefore closing this bug.
> However, please note that it remains possible to use a value zero for
> line-width on an anonymous face. For example, in the *scratch* buffer
> you still can eval the below expression without error:
>
> (insert
> (propertize "xxxx" 'font-lock-face
> '(:box (:style released-button :line-width (3 . 0)))))
This seems to be a general issue with anonymous faces: their
attributes are validated much more leniently than those of defface.
For example, try:
(insert
(propertize "xxxx" 'font-lock-face
'(:box (:style foobar :line-width 'bogus))))
or
(insert
(propertize "xxxx" 'font-lock-face
'(:underline (foo bar :style bogus :position))))
You get a face that effectively ignores the invalid attributes. I'm
not sure we need to change that.
This bug report was last modified 1 year and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.