-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Theme is mixed up after update #5353
Comments
May be you have customizations in your |
Some themes are partially applied as part of their installation/update process. @hagmonk it is possible that when you relaunched spacemacs, a new theme was installed and partially applied. Do you still have a mixed theme if you relaunch spacemacs again? |
It persists after restart. Root cause was some stuff added to custom-set-faces. I was inclined to chalk this up to me being full of derp, however it just happened again! And I certainly didn't customize those faces myself. I had to revert d3833db because after that commit yas-snippets keeps barfing all the time (separate issue incoming for that one), and after restarting spacemacs I found my custom-set-faces looked like this:
Now that default came back after I deleted it the first time. Weird :) |
I have also noticed a I deleted the customize sections, saved init.el, ran It appears to happen because our local fork of Paradox calls In my case, (custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil))))) It matches the code in @hagmonk something (possibly parts of Spacemacs) sets variables and faces through |
I can as well confirm that I get those custom faces set even when I don't use them. That's why my first guess was pointing to it! |
Sounds like this particular instance could be worked around by setting paradox-github-token in advance, but this doesn't feel like the long term solution. The side effect of saving these variables is all sorts of unwanted junk being written to my config, which isn't great at all. Do you feel this needs more analysis (maybe advices set around these functions to audit who's calling them? I'm not super sure the standard way to debug this) before sending the bug upstream to paradox? |
I never encountered this issue. My |
Based on the age of this issue and that I am no longer experiencing it (and you've never seen it), I think it's safe to close. Thanks! |
My theme background color is not changing while I changing the theme. |
Interestingly, this just happened to me on the develop branch. I added themes-megapack, and then tried to change the theme, and ended up with a bunch of bizarre garbage theming where it looks like I had part of the interface in a light theme and part in a dark theme... and it persisted across multiple restarts. After finding this thread, I discovered that a |
I hate to say this, but though this is 7 years old, this is still an issue. An entry for
Indeed! I can confirm this. The easiest way to reproduce is to call I digged deeper and I found the issue. It's in Related:
|
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.
#16137 should fix this, but only on Emacs >= 28.0.90. So if you encounter this and still run Emacs 27, you should probably update. |
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.
Description
Theme is mixed up after update
Reproduction guide
I pulled from develop:
remote: Counting objects: 242, done.
remote: Total 242 (delta 159), reused 159 (delta 159), pack-reused 83
Receiving objects: 100% (242/242), 78.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (163/163), completed with 73 local objects.
From https://github.com/syl20bnr/spacemacs
f5924d1..66ed054 develop -> origin/develop
First, rewinding head to replay your work on top of it...
Fast-forwarded develop to 66ed054.
And relaunched spacemacs, and now my window is a hybrid of material-light and some other colors.
![spacemacs](https://cloud.githubusercontent.com/assets/13660/13516276/86d8c57c-e16d-11e5-90e2-81437aff7ec6.png)
#### System Info - OS: darwin - Emacs: 25.0.90.1 - Spacemacs: 0.105.12 - Spacemacs branch: develop (rev. 66ed054) - Graphic display: t - Distribution: spacemacs - Editing style: emacs - Completion: helm - Layers:The text was updated successfully, but these errors were encountered: