Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Invalid face box' with emacs trunk on xterm-256color #118

Open
asurati opened this issue Dec 14, 2023 · 1 comment
Open

'Invalid face box' with emacs trunk on xterm-256color #118

asurati opened this issue Dec 14, 2023 · 1 comment

Comments

@asurati
Copy link

asurati commented Dec 14, 2023

Based on the emacs source code within the file xfaces.c around the error Invalid face box, and on the documentation of :box, the attribute :style does not accept an unspecified value. That value causes the enclosing loop to terminate prematurely, thereby setting valid_p to false, causing the error.

The diff that fixes the issue for xterm-256color is attached. It is based on commit 4a09c59. The attributes affected belong to the class monokai-256-class.

Although I have not tested with the X11 GUI emacs, the monokai-class, which seems to be applicable to GUI, is likely to be affected too; that class also contains instances of :style attributes with unspecified value that may need fixing.

With TERM=xterm, the error does not occur.

Edit: For some reason, the text file containing the diff does not attach. The elements that are affected by this issue are mode-line, mode-line-inactive and header-line.

Thank you.

@jamesmatanle
Copy link
Contributor

Reproduced on startup of emacs on mac, opened a PR that fixes it #120

Warning (initialization): An error occurred while loading ‘~/.emacs.d/init.el’:

error: Invalid face box, :color, #64645E, :line-width, 1, :style, unspecified

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

No branches or pull requests

2 participants