Skip to content

about abnormal behavior in Corfu #883

@ningxilai

Description

@ningxilai

Theme(s)

All themes (base)

Describe your issue

Corfu detected an error:
  backtrace-to-string()
  corfu--debug((error "Face inheritance results in inheritance cycle" gnus-group-news-low))
  set-face-attribute(gnus-group-news-low-empty #<frame EmacsCorfuGUI 0x60212e9c1b8> :inherit gnus-group-news-low :weight normal)
  face-spec-set-2(gnus-group-news-low-empty #<frame EmacsCorfuGUI 0x60212e9c1b8> (:inherit gnus-group-news-low :weight normal))
  face-spec-recalc(gnus-group-news-low-empty #<frame EmacsCorfuGUI 0x60212e9c1b8>)
  x-create-frame-with-faces(((alpha-background . 90) (name . "EmacsCorfuGUI") (parent-frame . #<frame •init.el (~/.config/emacs) - Emacs 0x60209f01540>) (minibuffer . #<window 4 on  *Minibuf-0*>) (width . 0) (height . 0) (visibility) (background-color . "#272C36") (font . "-NONE-Lilex Nerd Font-ultralight-normal-normal-*-15-*-*-*-*-0-iso10646-1") (right-fringe . 5) (left-fringe . 0) (internal-border-width . 1) (child-frame-border-width . 1) (no-accept-focus . t) (no-focus-on-map . t) (min-width . t) (min-height . t) (border-width . 0) (outer-border-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (menu-bar-lines . 0) (tool-bar-lines . 0) (tab-bar-lines . 0) (tab-bar-lines-keep-state . t) (no-other-frame . t) (unsplittable . t) (undecorated . t) (fullscreen) (cursor-type) (no-special-glyphs . t) (desktop-dont-save . t) (inhibit-double-buffering . t)))
  #f(compiled-function (params) #<bytecode -0xe1308a8d24ea9f7>)(((alpha-background . 90) (name . "EmacsCorfuGUI") (parent-frame . #<frame •init.el (~/.config/emacs) - Emacs 0x60209f01540>) (minibuffer . #<window 4 on  *Minibuf-0*>) (width . 0) (height . 0) (visibility) (background-color . "#272C36") (font . "-NONE-Lilex Nerd Font-ultralight-normal-normal-*-15-*-*-*-*-0-iso10646-1") (right-fringe . 5) (left-fringe . 0) (internal-border-width . 1) (child-frame-border-width . 1) (no-accept-focus . t) (no-focus-on-map . t) (min-width . t) (min-height . t) (border-width . 0) (outer-border-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (menu-bar-lines . 0) (tool-bar-lines . 0) (tab-bar-lines . 0) (tab-bar-lines-keep-state . t) (no-other-frame . t) (unsplittable . t) (undecorated . t) (fullscreen) (cursor-type) (no-special-glyphs . t) (desktop-dont-save . t) (inhibit-double-buffering . t)))
  apply(#f(compiled-function (params) #<bytecode -0xe1308a8d24ea9f7>) ((alpha-background . 90) (name . "EmacsCorfuGUI") (parent-frame . #<frame •init.el (~/.config/emacs) - Emacs 0x60209f01540>) (minibuffer . #<window 4 on  *Minibuf-0*>) (width . 0) (height . 0) (visibility) (background-color . "#272C36") (font . "-NONE-Lilex Nerd Font-ultralight-normal-normal-*-15-*-*-*-*-0-iso10646-1") (right-fringe . 5) (left-fringe . 0) (internal-border-width . 1) (child-frame-border-width . 1) (no-accept-focus . t) (no-focus-on-map . t) (min-width . t) (min-height . t) (border-width . 0) (outer-border-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (menu-bar-lines . 0) (tool-bar-lines . 0) (tab-bar-lines . 0) (tab-bar-lines-keep-state . t) (no-other-frame . t) (unsplittable . t) (undecorated . t) (fullscreen) (cursor-type) (no-special-glyphs . t) (desktop-dont-save . t) (inhibit-double-buffering . t)))
  frame-creation-function(((alpha-background . 90) (name . "EmacsCorfuGUI") (parent-frame . #<frame •init.el (~/.config/emacs) - Emacs 0x60209f01540>) (minibuffer . #<window 4 on  *Minibuf-0*>) (width . 0) (height . 0) (visibility) (background-color . "#272C36") (font . "-NONE-Lilex Nerd Font-ultralight-normal-normal-*-15-*-*-*-*-0-iso10646-1") (right-fringe . 5) (left-fringe . 0) (internal-border-width . 1) (child-frame-border-width . 1) (no-accept-focus . t) (no-focus-on-map . t) (min-width . t) (min-height . t) (border-width . 0) (outer-border-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (menu-bar-lines . 0) (tool-bar-lines . 0) (tab-bar-lines . 0) (tab-bar-lines-keep-state . t) (no-other-frame . t) (unsplittable . t) (undecorated . t) (fullscreen) (cursor-type) (no-special-glyphs . t) (desktop-dont-save . t) (inhibit-double-buffering . t)))
  make-frame(((name . "EmacsCorfuGUI") (parent-frame . #<frame •init.el (~/.config/emacs) - Emacs 0x60209f01540>) (minibuffer . #<window 4 on  *Minibuf-0*>) (width . 0) (height . 0) (visibility) (background-color . "#272C36") (font . "-NONE-Lilex Nerd Font-ultralight-normal-normal-*-15-*-*-*-*-0-iso10646-1") (right-fringe . 5) (left-fringe . 0) (internal-border-width . 1) (child-frame-border-width . 1) (no-accept-focus . t) (no-focus-on-map . t) (min-width . t) (min-height . t) (border-width . 0) (outer-border-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (menu-bar-lines . 0) (tool-bar-lines . 0) (tab-bar-lines . 0) (tab-bar-lines-keep-state . t) (no-other-frame . t) (unsplittable . t) (undecorated . t) (fullscreen) (cursor-type) (no-special-glyphs . t) (desktop-dont-save . t) (inhibit-double-buffering . t)))
  corfu--make-frame(nil 5 182 135 210)
  corfu--popup-show((#<window 3 on init.el> 57647 (9 . 105) 0 nil 57647 (1 . 5) nil (0 . 0) (9 . 21)) 3 15 (#("  set" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part)) #("  setf" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setq" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setup" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  set:is" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setcar" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setcdr" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setenv" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  setopt" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-keyword-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference)) #("  set:add" 0 1 (display (space :width 0.5)) 1 2 (face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0 :inherit font-lock-function-name-face) display (raise 0.0) rear-nonsticky t) 2 3 (display (space :width 0.5)) 3 6 (face completions-common-part) 6 7 (face completions-first-difference))) 0 0 1)
  corfu--candidates-popup((#<window 3 on init.el> 57647 (9 . 105) 0 nil 57647 (1 . 5) nil (0 . 0) (9 . 21)))
  #f(compiled-function (&optional auto) #<bytecode 0x763534ed64d011f>)()
  apply(#f(compiled-function (&optional auto) #<bytecode 0x763534ed64d011f>) nil)
  #f(compiled-function (&rest args) #<bytecode 0x171890f07124ca40>)()
  apply(#f(compiled-function (&rest args) #<bytecode 0x171890f07124ca40>) nil)
  corfu--exhibit()

Steps to reproduce

After I commented out the few lines about gnus-group-news-low and gnus-group-news-low-empty in doom-themes-base.el, Corfu started working properly.

Operating system

Arch

Emacs version

emacs 31.1 pgtk

Installed commit of doom-themes

on the 31/12/2025

Disclosures

  • This issue was written with/by AI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugSomething isn't working as intendedneeds-triageIssue hasn't been assessed yet

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions