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

Fix: Rename category embark-selected to embark-selected-overlay #630

Merged
merged 1 commit into from Apr 30, 2023

Conversation

minad
Copy link
Contributor

@minad minad commented Apr 30, 2023

Otherwise the face property added by defface embark-selected conflicts with the overlay category properties. This leads to very weird errors in the messages buffer like Invalid face reference: 1234 and the overlays are not displayed properly.

Otherwise the face property added by `defface embark-selected'
conflicts with the overlay category properties.
minad added a commit to minad/jinx that referenced this pull request Apr 30, 2023
@oantolin
Copy link
Owner

oantolin commented Apr 30, 2023

Oh, thank goodness you figured this out. It was driving me a little crazy.

@minad
Copy link
Contributor Author

minad commented Apr 30, 2023

Yes, this pattern is actually more dangerous than I initially thought. For example Flymake uses the flymake category but the defgroup flymake also adds to the (symbol-plist 'flymake) (EDIT: I misremembered, for Flymake the category can be flymake-note, flymake-warning or flymake-error). In Jinx I also renamed to jinx-overlay to ensure that no clashes can happen at all.

@oantolin oantolin merged commit 820c7c6 into oantolin:master Apr 30, 2023
@minad
Copy link
Contributor Author

minad commented Apr 30, 2023

Thanks for the quick merge!

@oantolin
Copy link
Owner

oantolin commented May 1, 2023

No, thank you for the fix! Sometimes the selection overlay wasn't displaying at all despite C-u C-x = saying the overlay was there and it had me totally baffled.

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.

None yet

2 participants