-
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
Properly initialize the display for daemon mode. #2652
Properly initialize the display for daemon mode. #2652
Conversation
e246f8f
to
fb52b00
Compare
For me it fixes the font issue, I could merge this if you are OK. |
fb52b00
to
8e3a6eb
Compare
Sure, I just changed the commit message to remove to the WIP. |
So, do we do it then? |
This fix works well for me, thank you |
@TheBB why is this pull request still not merged into develop? closing this pull request will close many contingent issues. |
8e3a6eb
to
34ba3ea
Compare
I just rebased this onto develop as of today, so it should be even easier to apply. :) |
I just tested it and it works 😄 If you have troubles to make it work (like me 😅), be sure to remove all compiled version ( |
I just ran into the problem and this fixed it. 👍 |
I wrote too soon. This only solves the font issue for the first frame I create. On subsequent frames the font is again too big as reported in #535 |
Add macro to wrap things that depend on the display being initialized (and a frame active), such as getting the font. Advise the `server-create-window-system-frame` function which is called by emacsclient when creating a window-system frame. This is only run the first time a frame is created, so the advice removes itself. Fixes: syl20bnr#299 and syl20bnr#1894 (Among others)
@cpaulik I just tested it again (after rebasing on current What I did:
I am running on NixOS, with this patch rebased on the latest I'd love to help track down why this isn't working for you to make this solution more robust so it can be merged. @cpaulik, could you tell me what steps you took to cause the issues with the incorrectly sized font? What platform are you on and which Emacs version? Are you using something other than the default font that is defined in the |
34ba3ea
to
33bb4a7
Compare
I've started again with an empty dotspacemacs file and can not reproduce my issue. I'll try to track it down. |
I've narrowed the problem down to the |
Is there any news regarding this one? |
I merged it!!! :-) Thank you 💯 |
WORK IN PROGRESS. NEEDS TESTING. NEEDS TO USE THIS THROUGHOUT THE REST
OF SPACEMACS INITIALIZATION.
Will push a clean commit when everything is working satisfactorily.
Add macro to wrap things that depend on the display being
initialized (and a frame active), such as getting the font. Advise the
server-create-window-system-frame
function which is called byemacsclient when creating a window-system frame. This is only run the
first time a frame is created, so the advice removes itself.
Fixes: #299 and #1894
(Among others)