bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68880: 30.0.50; [pgtk] Theme customization is not applied by custom-


From: Dmitry Gutov
Subject: bug#68880: 30.0.50; [pgtk] Theme customization is not applied by custom-theme-set-faces until theme is re-enabled
Date: Sat, 3 Feb 2024 19:11:01 +0200
User-agent: Mozilla Thunderbird

On 03/02/2024 08:41, Po Lu wrote:
Dmitry Gutov <dmitry@gutov.dev> writes:

To reproduce, put this into .emacs:

(add-hook
   'after-init-hook
   (lambda ()
     (load-theme 'adwaita t)

     (custom-theme-set-faces
      'adwaita
      '(font-lock-comment-face ((t (:foreground "yellow")))))))

Then run emacs -Q.

Upon rereading your description, it appears as though you're reporting
that `emacs -Q' does not load the user's initialization files, while it
does in the non-PGTK builds.  Needless to say, if true, that is a severe
bug!

Not sure it relates to the user initialization files: like I say below, the same scenario and the result can be reproduced interactively after Emacs has initialized.

When the PGTK port is used, the comment face's foreground won't be
yellow. With other ports (e.g. GTK3 or Lucid), it is.

The use of after-init-hook itself it not crucial - you can just as well
enable the theme using 'M-x load-theme' and then evaluate the
custom-theme-set-faces form.

There is some text on the splash screen with font-lock-comment-face
applied, so you should see the effect right away.

I can reproduce this, thanks.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]