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

core-fonts-support: Don't fiddle with user's face Customization #16137

Merged

Conversation

real-or-random
Copy link
Contributor

Fixes #5353.

Related:
emacs-mirror/emacs@eae23d6 https://emacs.stackexchange.com/questions/33403/customize-creates-custom-set-faces-unintentionally

An alternative strategy is to call (set-frame-font fontspec nil nil). This will work on any emacs version, and this will also inhibit fiddling with the Customization. But this will apply the font setting only to the current frame. While this should be okay (because when this code runs, only the current frame should be graphical and thus relevant when it comes to font changes), I'm not convinced that this analysis is correct, and that it's a good idea to rely on this fact.

Fixes syl20bnr#5353.

Related:
emacs-mirror/emacs@eae23d6
https://emacs.stackexchange.com/questions/33403/customize-creates-custom-set-faces-unintentionally

An alternative strategy is to call `(set-frame-font fontspec nil nil)`.
This will work on any emacs version, and this will also inhibit
fiddling with the Customization. But this will apply the font setting
only to the current frame. While this *should* be okay (because when this
code runs, only the current frame should be graphical and thus relevant
when it comes to font changes), I'm not convinced that this analysis is
correct, and that it's a good idea to rely on this fact.
Copy link
Collaborator

@smile13241324 smile13241324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for your contribution 👍

@smile13241324 smile13241324 merged commit b1b05ec into syl20bnr:develop Oct 25, 2023
8 checks passed
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.

Theme is mixed up after update
2 participants