GNU bug report logs -
#59271
29.0.50; Wrong tab-bar height at startup
Previous Next
Reported by: Gabriel <gabriel376 <at> hotmail.com>
Date: Mon, 14 Nov 2022 23:17:04 UTC
Severity: normal
Merged with 58912,
59283
Found in version 29.0.50
Done: Po Lu <luangruo <at> yahoo.com>
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 59271 in the body.
You can then email your comments to 59271 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#59271
; Package
emacs
.
(Mon, 14 Nov 2022 23:17:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gabriel <gabriel376 <at> hotmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 14 Nov 2022 23:17:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Description:
The tab-bar height is wrong (bigger than expected) at startup. It only
happens when tab-bar is enabled in init.el. After emacs is loaded, the
tab-bar height can be "fixed" by toggling the tab-bar.
A 'git bisect' indicates that the commit
52d4c98cec0901ef5cc1c55d5b3b33ac9d9c519f introduced this bug.
Steps:
1) Use the following in init.el:
(tab-bar-mode 1)
2) Run emacs
- tab-bar is shown, notice the height
3) M-x tab-bar-mode RET (hide tab-bar)
4) M-x tab-bar-mode RET (show tab-bar)
- tab-bar height is smaller than it was at startup
The video below demonstrates the issue:
[bug.mp4 (video/mp4, attachment)]
[Message part 3 (text/plain, inline)]
---
Gabriel
In GNU Emacs 29.0.50 (build 18, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0) of 2022-11-14 built on 4BQPCJ3
Repository revision: c0474ca21dd76cafbd1a04fd32d4a0bd42de6351
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Ubuntu 22.04.1 LTS
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
Important settings:
value of $LC_CTYPE: pt_BR.UTF-8
value of $LC_MONETARY: pt_BR.UTF-8
value of $LC_NUMERIC: pt_BR.UTF-8
value of $LC_TIME: pt_BR.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
display-fill-column-indicator-mode: t
display-line-numbers-mode: t
whitespace-mode: t
global-subword-mode: t
subword-mode: t
recentf-mode: t
savehist-mode: t
icomplete-vertical-mode: t
icomplete-mode: t
minibuffer-depth-indicate-mode: t
delete-selection-mode: t
display-time-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tab-bar-history-mode: t
tab-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
window-divider-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom
gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap
nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range gnus-win emacsbug message yank-media puny rfc822 mml mml-sec
epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader modus-operandi-theme
cursor-sensor display-fill-column-indicator display-line-numbers
whitespace diary-lib diary-loaddefs modus-vivendi-theme cal-julian solar
cal-dst cal-menu calendar cal-loaddefs gnus nnheader gnus-util
text-property-search time-date range sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils cl-extra help-mode cap-words superword
subword recentf tree-widget dired dired-loaddefs disp-table em-hist
em-pred esh-mode ring eshell esh-cmd generator esh-ext esh-opt esh-proc
esh-io esh-arg esh-module esh-groups esh-util files-x savehist icomplete
mb-depth delsel modus-themes time doom-modeline-autoloads try-autoloads
all-the-icons-completion-autoloads consult-autoloads
all-the-icons-ibuffer-autoloads json-mode-autoloads rx
all-the-icons-dired-autoloads shrink-path-autoloads
dockerfile-mode-autoloads json-snatcher-autoloads corfu-autoloads
orderless-autoloads inf-ruby-autoloads compat-autoloads
markdown-mode-autoloads f-autoloads go-mode-autoloads
docker-compose-mode-autoloads yaml-mode-autoloads vertico-autoloads
doom-themes-autoloads treemacs-all-the-icons-autoloads
treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads
hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads
avy-autoloads s-autoloads info dash-autoloads all-the-icons-autoloads
marginalia-autoloads finder-inf package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars pcase cus-edit pp
cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl tooltip cconv
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 nadvice seq simple cl-generic
indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs
theme-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 xinput2 x multi-tty make-network-process
emacs)
Memory information:
((conses 16 422982 472115)
(symbols 48 25069 46)
(strings 32 109738 32800)
(string-bytes 1 3047105)
(vectors 16 35854)
(vector-slots 8 461466 271265)
(floats 8 566 1258)
(intervals 56 537 140)
(buffers 984 11))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 00:50:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 59271 <at> debbugs.gnu.org (full text, mbox):
Gabriel <gabriel376 <at> hotmail.com> writes:
> Description:
> The tab-bar height is wrong (bigger than expected) at startup. It only
> happens when tab-bar is enabled in init.el. After emacs is loaded, the
> tab-bar height can be "fixed" by toggling the tab-bar.
>
> A 'git bisect' indicates that the commit
> 52d4c98cec0901ef5cc1c55d5b3b33ac9d9c519f introduced this bug.
>
> Steps:
> 1) Use the following in init.el:
> (tab-bar-mode 1)
> 2) Run emacs
> - tab-bar is shown, notice the height
> 3) M-x tab-bar-mode RET (hide tab-bar)
> 4) M-x tab-bar-mode RET (show tab-bar)
> - tab-bar height is smaller than it was at startup
>
> The video below demonstrates the issue:
What is printed when you run:
xrdb -query
on your system?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 01:32:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
>
> What is printed when you run:
>
> xrdb -query
>
> on your system?
Xft.dpi: 96
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xcursor.size: 24
Xcursor.theme: breeze_cursors
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 05:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 59271 <at> debbugs.gnu.org (full text, mbox):
Gabriel <gabriel376 <at> hotmail.com> writes:
> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs <at> gnu.org> writes:
>>
>> What is printed when you run:
>>
>> xrdb -query
>>
>> on your system?
>
> Xft.dpi: 96
> Xft.antialias: 1
> Xft.hinting: 1
> Xft.hintstyle: hintslight
> Xft.rgba: rgb
> Xcursor.size: 24
> Xcursor.theme: breeze_cursors
What happens if you build Emacs --without-cairo?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 05:45:02 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
> What happens if you build Emacs --without-cairo?
I just built emacs from master branch using '--without-cairo' and I
confirm it works as expected: the tab-bar is initialized with the
correct height.
I am running Ubuntu 22.04 with these related cairo packages installed in
my system:
$ apt list --installed | grep cairo
libcairo-gobject-perl/jammy,now 1.005-3build1 amd64 [installed,automatic]
libcairo-gobject2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
libcairo-perl/jammy,now 1.109-2build1 amd64 [installed,automatic]
libcairo-script-interpreter2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
libcairo2-dev/jammy,now 1.16.0-5ubuntu2 amd64 [installed]
libcairo2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
libcairomm-1.0-1v5/jammy,now 1.12.2-4build3 amd64 [installed,automatic]
libdecor-0-plugin-1-cairo/jammy,now 0.1.0-3build1 amd64 [installed,automatic]
libpangocairo-1.0-0/jammy,now 1.50.6+ds-2 amd64 [installed,automatic]
python3-cairo/jammy,now 1.20.1-3build1 amd64 [installed,automatic]
python3-gi-cairo/jammy-updates,now 3.42.1-0ubuntu1 amd64 [installed,automatic]
---
Gabriel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 11:49:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 59271 <at> debbugs.gnu.org (full text, mbox):
forcemerge 58912 59283 59271
thanks
Gabriel <gabriel376 <at> hotmail.com> writes:
> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs <at> gnu.org> writes:
>
>> What happens if you build Emacs --without-cairo?
>
> I just built emacs from master branch using '--without-cairo' and I
> confirm it works as expected: the tab-bar is initialized with the
> correct height.
>
> I am running Ubuntu 22.04 with these related cairo packages installed in
> my system:
>
> $ apt list --installed | grep cairo
> libcairo-gobject-perl/jammy,now 1.005-3build1 amd64 [installed,automatic]
> libcairo-gobject2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
> libcairo-perl/jammy,now 1.109-2build1 amd64 [installed,automatic]
> libcairo-script-interpreter2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
> libcairo2-dev/jammy,now 1.16.0-5ubuntu2 amd64 [installed]
> libcairo2/jammy,now 1.16.0-5ubuntu2 amd64 [installed,automatic]
> libcairomm-1.0-1v5/jammy,now 1.12.2-4build3 amd64 [installed,automatic]
> libdecor-0-plugin-1-cairo/jammy,now 0.1.0-3build1 amd64 [installed,automatic]
> libpangocairo-1.0-0/jammy,now 1.50.6+ds-2 amd64 [installed,automatic]
> python3-cairo/jammy,now 1.20.1-3build1 amd64 [installed,automatic]
> python3-gi-cairo/jammy-updates,now 3.42.1-0ubuntu1 amd64 [installed,automatic]
>
> ---
> Gabriel
Thanks. This should be fixed on master shortly, please test.
I've also merged this bug with several others with the same cause.
Forcibly Merged 58912 59271 59283.
Request was from
Po Lu <luangruo <at> yahoo.com>
to
control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2022 11:49:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Tue, 15 Nov 2022 22:36:01 GMT)
Full text and
rfc822 format available.
Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
>
> Thanks. This should be fixed on master shortly, please test.
>
> I've also merged this bug with several others with the same cause.
Hi Po Lu,
Thank you for the prompt fix.
The following test works as expected, i.e., the tab-bar height is
correct at startup:
$ cat .config/emacs/init.el
(tab-bar-mode 1)
However, if a different face is set (either in in early-init.el, init.el
or after Emacs is loaded), the tab-bar height is redisplayed with an
incorrect height. I tried many different approaches and combinations to
enable tab-bar + set a different face, and in all cases the issue could
be reproduced.
See the attached video for a simple demonstration of this new issue.
[bug.mp4 (video/mp4, attachment)]
[Message part 3 (text/plain, inline)]
---
Gabriel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59271
; Package
emacs
.
(Thu, 17 Nov 2022 01:30:02 GMT)
Full text and
rfc822 format available.
Message #28 received at submit <at> debbugs.gnu.org (full text, mbox):
This bug seems to be fixed by commit
690f7ac86ad9a9d714b1107d05c5e856a43bb18d in master branch.
I did a couple of tests and could not longer reproduce the original
issue.
I am OK to close this bug report, but would be a good idea to receive a
confirmation from Po Lu.
---
Gabriel
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Dec 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 185 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.