Skip to content

Fix "Invalid face reference: quote" in lambda-line-mode-formats#25

Open
ifinkelstein wants to merge 1 commit intoLambda-Emacs:mainfrom
ifinkelstein:fix/quoted-face-refs
Open

Fix "Invalid face reference: quote" in lambda-line-mode-formats#25
ifinkelstein wants to merge 1 commit intoLambda-Emacs:mainfrom
ifinkelstein:fix/quoted-face-refs

Conversation

@ifinkelstein
Copy link
Copy Markdown

Summary

  • Remove spurious ' (quote) before face names in :face-prefix-active and :face-prefix-inactive entries within the lambda-line-mode-formats defcustom
  • The defcustom value is already inside a quoted list '(...), so the inner ' before face names produces (quote face-name) at read time, which Emacs interprets as two faces: quote and face-name
  • This causes Invalid face reference: quote on every redisplay for any buffer whose mode entry has these values (vterm, eshell, term, prog-mode, etc.)

Fixes #24

Minimal reproduction

emacs -Q --eval "(progn (add-to-list 'load-path \"/path/to/lambda-line\") (add-to-list 'load-path \"/path/to/all-the-icons\") (require 'lambda-line) (lambda-line-mode 1) (eshell))"

Then check *Messages* for Invalid face reference: quote.

The :face-prefix-active and :face-prefix-inactive values in
lambda-line-mode-formats used quoted symbols ('face-name) inside
the already-quoted defcustom list '(...). The Lisp reader produces
(quote face-name) for these, which Emacs interprets as a two-element
face list containing `quote` — an invalid face — causing
"Invalid face reference: quote" on every redisplay.

Remove the inner quotes so the symbols are read as plain data.

Fixes Lambda-Emacs#24
ifinkelstein added a commit to ifinkelstein/dotemacs that referenced this pull request Apr 12, 2026
- lambda-line: use fork with fix for quoted face names in
  lambda-line-mode-formats defcustom (Lambda-Emacs/lambda-line#25)
- eglot: skip eglot-ensure in emacs-lisp-mode (no LSP server exists)
- claude-code, claude-code-ide: load from local forks with
  buffer-face-set / face-remap-add-relative quote fixes
ifinkelstein added a commit to ifinkelstein/dotemacs that referenced this pull request Apr 13, 2026
- lambda-line: use fork with fix for quoted face names in
  lambda-line-mode-formats defcustom (Lambda-Emacs/lambda-line#25)
- eglot: skip eglot-ensure in emacs-lisp-mode (no LSP server exists)
- claude-code, claude-code-ide: load from local forks with
  buffer-face-set / face-remap-add-relative quote fixes
ifinkelstein added a commit to ifinkelstein/dotemacs that referenced this pull request Apr 13, 2026
- lambda-line: use fork with fix for quoted face names in
  lambda-line-mode-formats defcustom (Lambda-Emacs/lambda-line#25)
- eglot: skip eglot-ensure in emacs-lisp-mode (no LSP server exists)
- claude-code, claude-code-ide: load from local forks with
  buffer-face-set / face-remap-add-relative quote fixes
ifinkelstein added a commit to ifinkelstein/dotemacs that referenced this pull request Apr 13, 2026
- lambda-line: use fork with fix for quoted face names in
  lambda-line-mode-formats defcustom (Lambda-Emacs/lambda-line#25)
- eglot: skip eglot-ensure in emacs-lisp-mode (no LSP server exists)
- claude-code, claude-code-ide: load from local forks with
  buffer-face-set / face-remap-add-relative quote fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid face reference: quote from quoted symbols in lambda-line-mode-formats defcustom

1 participant