bug#81658: 31.1; :custom-face doesn't work anymore

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
merge 81658 77928
thanks

> From: Vincent Zhang <[email protected]>
> Date: Thu, 20 Aug 2026 00:37:05 +0800
> 
> 
> After I upgrade Emacs to 31 on macOS, :custom-face of use-package seems not working with doom-themes. 
> 
> My config:
> 
> ```elisp
> (use-package doom-themes
>   :init (load-theme 'doom-one-theme t))
> 
> (use-package symbol-overlay
>   :custom-face
>   (symbol-overlay-default-face ((t (:inherit region :background unspecified :foreground unspecified))))
>   (symbol-overlay-face-1 ((t (:inherit nerd-icons-blue :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-2 ((t (:inherit nerd-icons-pink :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-3 ((t (:inherit nerd-icons-yellow :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-4 ((t (:inherit nerd-icons-purple :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-5 ((t (:inherit nerd-icons-red :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-6 ((t (:inherit nerd-icons-orange :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-7 ((t (:inherit nerd-icons-green :background unspecified :foreground unspecified :inverse-video t))))
>   (symbol-overlay-face-8 ((t (:inherit nerd-icons-cyan :background unspecified :foreground unspecified :inverse-video t))))
>   :bind (("M-i"  . symbol-overlay-put)
>          ("M-n"  . symbol-overlay-jump-next)
>          ("M-p"  . symbol-overlay-jump-prev))
>   :bind-keymap ("M-s s"  . symbol-overlay-map)
>   :hook (prog-mode yaml-mode yaml-ts-mode))
> ```
> 
> It seems this was a recent change in use-package. Pre-31, :custom-face
> used face-spec-set without the face-defface-spec type (which makes it
> equivalent to custom-set-faces), but now it does.
> 
> Now the workaround is use `custom-set-faces` or revert
> `use-package-handler/:custom-face` to the old version.
> 
> Please see https://github.com/doomemacs/themes/issues/893 for more
> details.

This is a known issue for which there's no consensus, see bug#77928.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.