GNU bug report logs -
#54196
29.0.50; flat-button face box style does not work as expected
Previous Next
Reported by: David Ponce <da_vid <at> orange.fr>
Date: Mon, 28 Feb 2022 09:31:02 UTC
Severity: normal
Tags: moreinfo
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54196 in the body.
You can then email your comments to 54196 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 09:31:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Ponce <da_vid <at> orange.fr>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 28 Feb 2022 09:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I noticed that the :box :style flat-button is not working as expected:
the line around the text seems to be there, but not visible.
Just evaluate the below code in the scratch buffer will show the
problem:
(insert
(propertize "This buffer is for text"
'font-lock-face
'( :box ( :line-width (4 . 4)
:color "dark grey"
:style pressed-button)))
"\n"
(propertize "This buffer is for text"
'font-lock-face
'( :box ( :line-width (4 . 4)
:color "dark grey"
:style released-button)))
"\n"
(propertize "This buffer is for text"
'font-lock-face
'( :box ( :line-width (4 . 4)
:color "dark grey"
:style flat-button)))
"\n"
)
Thanks
In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4)
of 2022-02-28 built on kilauea
Repository revision: 66899628f8a8c79ca8dfe32094f11a8320630fae
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: Fedora Linux 35 (KDE Plasma)
Configured using:
'configure --prefix=/home/dponce --with-cairo --without-sqlite3
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
WEBP X11 XDBE XIM XPM GTK3 ZLIB
Important settings:
value of $LC_TIME: fr_FR.utf8
value of $LANG: fr_FR.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message yank-media rmc puny rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils mule-util info
help-fns radix-tree cl-print debug backtrace help-mode find-func
cus-theme eieio-custom xwidget url-handlers image-mode dired
dired-loaddefs exif browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars mailcap format-spec bookmark
text-property-search wid-browse tree-widget seq gv byte-opt bytecomp
byte-compile cconv crm thingatpt cus-edit pp cus-start cus-load wid-edit
time-date subr-x cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
Memory information:
((conses 16 124700 10967)
(symbols 48 10190 1)
(strings 32 32692 1842)
(string-bytes 1 927675)
(vectors 16 18068)
(vector-slots 8 233951 17277)
(floats 8 53 116)
(intervals 56 5791 0)
(buffers 992 14))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 10:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 54196 <at> debbugs.gnu.org (full text, mbox):
David Ponce <da_vid <at> orange.fr> writes:
> I noticed that the :box :style flat-button is not working as expected:
> the line around the text seems to be there, but not visible.
>
> Just evaluate the below code in the scratch buffer will show the
> problem:
>
> (insert
> (propertize "This buffer is for text"
> 'font-lock-face
> '( :box ( :line-width (4 . 4)
> :color "dark grey"
> :style pressed-button)))
> "\n"
> (propertize "This buffer is for text"
> 'font-lock-face
> '( :box ( :line-width (4 . 4)
> :color "dark grey"
> :style released-button)))
> "\n"
> (propertize "This buffer is for text"
> 'font-lock-face
> '( :box ( :line-width (4 . 4)
> :color "dark grey"
> :style flat-button)))
> "\n"
> )
I'm not sure what I'm supposed to be looking for here. Can you include
some screenshots and point to what you think is the problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 28 Feb 2022 10:00:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 10:17:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 54196 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 28/02/2022 10:58, Lars Ingebrigtsen wrote:
> David Ponce <da_vid <at> orange.fr> writes:
>
>> I noticed that the :box :style flat-button is not working as expected:
>> the line around the text seems to be there, but not visible.
>>
>> Just evaluate the below code in the scratch buffer will show the
>> problem:
>>
>> (insert
>> (propertize "This buffer is for text"
>> 'font-lock-face
>> '( :box ( :line-width (4 . 4)
>> :color "dark grey"
>> :style pressed-button)))
>> "\n"
>> (propertize "This buffer is for text"
>> 'font-lock-face
>> '( :box ( :line-width (4 . 4)
>> :color "dark grey"
>> :style released-button)))
>> "\n"
>> (propertize "This buffer is for text"
>> 'font-lock-face
>> '( :box ( :line-width (4 . 4)
>> :color "dark grey"
>> :style flat-button)))
>> "\n"
>> )
>
> I'm not sure what I'm supposed to be looking for here. Can you include
> some screenshots and point to what you think is the problem?
>
My example above to illustrate the issue, inserts 3 lines with the same text in the scratch buffer:
1st line with a gray pressed-button box around the text. Work as expected.
2nd line with a gray released-button box around the text. Work as expected.
3rd line with a gray flat-button box around the text. Doesn' work as expected. The gray line around the text is not visible.
I attached a screen shot.
[face-box-screenshot.jpg (image/jpeg, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 10:29:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 54196 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
David Ponce <da_vid <at> orange.fr> writes:
> 1st line with a gray pressed-button box around the text. Work as expected.
> 2nd line with a gray released-button box around the text. Work as expected.
> 3rd line with a gray flat-button box around the text. Doesn' work as
> expected. The gray line around the text is not visible.
With a flat button, there is no line around the button. So you'd
typically say
(propertize "This buffer is for text"
'font-lock-face
'( :box ( :line-width (4 . 4)
:style flat-button)
:background "dark grey"))
and get
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 10:37:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 54196 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> With a flat button, there is no line around the button. So you'd
> typically say
But there's a bug here. It should be possible to specify the border
color, and if you do it in this order, you can:
(propertize "This buffer is for text"
'font-lock-face
'( :box ( :line-width (20 . 20)
:style flat-button
:color "red")
:background "dark grey"))
I'll try to fix that...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 10:43:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 54196 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I'll try to fix that...
I've now fixed this in Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 29.1, send any further explanations to
54196 <at> debbugs.gnu.org and David Ponce <da_vid <at> orange.fr>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 28 Feb 2022 10:43:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 11:16:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 54196 <at> debbugs.gnu.org (full text, mbox):
On 28/02/2022 11:42, Lars Ingebrigtsen wrote:
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> I'll try to fix that...
>
> I've now fixed this in Emacs 29.
>
Confirmed.
Thank you very much!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 12:57:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 54196 <at> debbugs.gnu.org (full text, mbox):
> Resent-From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
> Resent-CC: bug-gnu-emacs <at> gnu.org
> Resent-Sender: help-debbugs <at> gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 28 Feb 2022 11:42:11 +0100
> Cc: 54196 <at> debbugs.gnu.org
>
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> > I'll try to fix that...
>
> I've now fixed this in Emacs 29.
Strangely enough, I don't see any difference in behavior before and
after the change.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 12:58:01 GMT)
Full text and
rfc822 format available.
Message #33 received at 54196 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Strangely enough, I don't see any difference in behavior before and
> after the change.
Did you test with the :color before the :style?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Mon, 28 Feb 2022 13:26:01 GMT)
Full text and
rfc822 format available.
Message #36 received at 54196 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: da_vid <at> orange.fr, 54196 <at> debbugs.gnu.org
> Date: Mon, 28 Feb 2022 13:57:02 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Strangely enough, I don't see any difference in behavior before and
> > after the change.
>
> Did you test with the :color before the :style?
I've used the code you posted. It behaved correctly (AFAIU) for me
even before the change, and it continues to behave correctly after the
change.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54196
; Package
emacs
.
(Tue, 01 Mar 2022 15:11:02 GMT)
Full text and
rfc822 format available.
Message #39 received at 54196 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I've used the code you posted. It behaved correctly (AFAIU) for me
> even before the change, and it continues to behave correctly after the
> change.
Perhaps it somehow works differently on Windows? Reading the code, I
don't see how, but I guess it's possible.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 30 Mar 2022 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.