Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914428 - app-editors/emacs-29.1-r1 , background colour not functioning
Summary: app-editors/emacs-29.1-r1 , background colour not functioning
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2023-09-19 12:45 UTC by Joakim Tjernlund
Modified: 2024-10-03 15:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
site-start.el (file_914428.txt,1.36 KB, text/plain)
2023-09-19 17:48 UTC, Joakim Tjernlund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2023-09-19 12:45:02 UTC
I have (for a long time) in /etc/emacs/site-start.el
setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White")))
(setq initial-frame-alist default-frame-alist)

With emacs 29.1-r1 these settings stopped working and background is just
white.

Rebuilt emacs deps with emacs-updater
Comment 1 Ulrich Müller gentoo-dev 2023-09-19 17:31:23 UTC
> setq default-frame-alist '((background-color . "#333333") (foreground-color . "White") (cursor-color . "White")))
> (setq initial-frame-alist default-frame-alist)

I cannot reproduce the problem, this is working just fine here (after adding the missing opening parenthesis).

Can you attach your complete site-start.el? What values do you see for default-frame-alist and initial-frame-alist in Emacs, i.e. with C-h v?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 17:34:11 UTC
Can you reproduce it with emacs -Q?
Comment 3 Joakim Tjernlund 2023-09-19 17:48:35 UTC
Created attachment 870977 [details]
site-start.el
Comment 4 Joakim Tjernlund 2023-09-19 17:49:38 UTC
(In reply to Sam James from comment #2)
> Can you reproduce it with emacs -Q?

Yes, still same.

Creating a New Frame works, only the initial Frame when starting emacs
is wrong.
Comment 5 Joakim Tjernlund 2023-09-19 17:59:26 UTC
hmm, the problem only manifest if a ssh to a machine with emacs-29 installed.
Comment 6 Joakim Tjernlund 2023-09-19 18:03:02 UTC
(In reply to Joakim Tjernlund from comment #5)
> hmm, the problem only manifest if a ssh to a machine with emacs-29 installed.

and only if emacs-28 is installed on the local machine.
If I got emacs-29 on both local and remote machine it works, odd.
Comment 7 Ulrich Müller gentoo-dev 2023-09-19 18:22:42 UTC
(In reply to Joakim Tjernlund from comment #6)
> and only if emacs-28 is installed on the local machine.
> If I got emacs-29 on both local and remote machine it works, odd.

Do you want us to investigate this further, or can this bug be closed?
Comment 8 Joakim Tjernlund 2023-09-19 18:35:44 UTC
(In reply to Ulrich Müller from comment #7)
> (In reply to Joakim Tjernlund from comment #6)
> > and only if emacs-28 is installed on the local machine.
> > If I got emacs-29 on both local and remote machine it works, odd.
> 
> Do you want us to investigate this further, or can this bug be closed?

As it looks now it will pass once I have emacs-29 on all machines.
Lets close it, I will reopen if it resurfaces.
Comment 9 Joakim Tjernlund 2023-09-20 09:13:15 UTC
Sorry but I have to reopen this.

Upgraded my main machine to the same status as my laptop and my
main Desktop still has this problem.
Comment 10 Joakim Tjernlund 2023-09-20 09:47:04 UTC
I got a clue:
qlist mate-settings | grep xrdb
/etc/xrdb/Xaw.ad
/etc/xrdb/Tk.ad
/etc/xrdb/Motif.ad
/etc/xrdb/Emacs.ad
/etc/xrdb/Editres.ad
/etc/xrdb/General.ad
/usr/lib64/mate-settings-daemon/libxrdb.so
/usr/lib64/mate-settings-daemon/xrdb.mate-settings-plugin
/usr/share/glib-2.0/schemas/org.mate.SettingsDaemon.plugins.xrdb.gschema.xml

cat /etc/xrdb/Emacs.ad
Emacs.default.attributeForeground:	WINDOW_FOREGROUND
Emacs.default.attributeBackground:	WINDOW_BACKGROUND
 
Emacs*Foreground:		WINDOW_FOREGROUND
Emacs*Background:		WINDOW_BACKGROUND
Emacs*menubar*foreground:	FOREGROUND
Emacs*menubar*background:	BACKGROUND
Emacs*popup*Foreground:		FOREGROUND
Emacs*popup*Background:		BACKGROUND
Emacs*Dialog*foreground:	FOREGROUND
Emacs*Dialog*background:	BACKGROUND
Emacs*XlwScrollBar.Foreground:	FOREGROUND
Emacs*XlwScrollBar.Background:	BACKGROUND
Emacs*topToolBarShadowColor:	BACKGROUND
Emacs*bottomToolBarShadowColor:	BACKGROUND
Emacs*backgroundToolBarColor:	BACKGROUND
Emacs.scroll-bar.attributeBackground: BACKGROUND
Emacs.scroll-bar.attributeForeground: FOREGROUND
Emacs.mode-line.attributeForeground: FOREGROUND
Emacs.tool-bar.attributeBackground: BACKGROUND
Emacs.tool-bar.attributeForeground: FOREGROUND

so MATE loads these XRDB settings and if I remove Emacs.ad it works.
However, before emacs-29 I did have to change anything.
Why now ?
Comment 11 Ulrich Müller gentoo-dev 2023-09-20 10:26:30 UTC
Maybe the relative priority of initial-frame-alist and those resources has changed in Emacs 29. I don't see anything obvious in its NEWS file, however.

Maybe ask upstream in the emacs-devel mailing list?
Comment 12 Joakim Tjernlund 2023-09-20 16:20:22 UTC
(In reply to Ulrich Müller from comment #11)
> Maybe the relative priority of initial-frame-alist and those resources has
> changed in Emacs 29. I don't see anything obvious in its NEWS file, however.
> 
> Maybe ask upstream in the emacs-devel mailing list?

I did but I see you found out yourself :)
Comment 13 Ulrich Müller gentoo-dev 2024-10-03 12:55:52 UTC
This should be resolved upstream. Closing here.
Comment 14 Joakim Tjernlund 2024-10-03 13:33:54 UTC
(In reply to Ulrich Müller from comment #13)
> This should be resolved upstream. Closing here.

It is? I didn't notice that, any URL/ref to the fix?
Comment 15 Ulrich Müller gentoo-dev 2024-10-03 15:42:45 UTC
(In reply to Joakim Tjernlund from comment #14)
> (In reply to Ulrich Müller from comment #13)
> > This should be resolved upstream. Closing here.
> 
> It is? I didn't notice that, any URL/ref to the fix?

Sorry, "should be" in the sense that upstream should resolve the issue.