-
Notifications
You must be signed in to change notification settings - Fork 129
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
Dashboard frame not centered with emacsclient #430
Comments
So it does work in regular startup but not with emacsclient? Can you write down steps to reproduce this bug? 🙏 |
Yep, well not very complicated I guess you just : Or at least that's what I have... |
Could it have something to do with how I set up dependencies for dashboard ?? It might so here are also the setup in my init.el file for
|
I have the same issue and I also run the emacs daemon. However, the issue appears even if it is not in a daemon mode, in my case. If If |
I have the same issue since updating the package to the latest version; I am not in daemon mode. |
Can you give a version number of the package that did not have that bug pls ? And maybe a link to a dashboard.el and dashboard-widgets.el to look for difference ? |
* fix(centering): Caculate line length in pixel width * changelog * fix compile warnings
I'm not entierly sure, but think the bug might here at this modification that is pretty rencent : I've left a comment for a maintainer of the package has more info and help, if it ever is help and not misleading ! |
Sorry, I don't know. I just updated from Melpa and am currently on dashboard-20230103.501. As I auto-deleted the old package, I cannot check for the version number anymore. It is most probably the preceding version, as I tend to update quite regularly. Is there any other way to check which earlier versions were installed? |
The PR #427 calculate the length in pixels so it can correctly center characters like unicodes, emojis, etc. The most relevant factor is |
The problem is caused by a buggy It will be fixed in the future See seagle0128/doom-modeline#601 for a long discussion about the problem. |
@fredericgiquel So it seems the In any case, dropping it from Compat for now is the right approach given that @jcs090218 seems to use |
@minad Here is what I see with Emacs 28.2 and Compat 29.1.0.1: |
@fredericgiquel Yes, that's obvious from the screenshot. Just update to the new version of Compat 29.1.1.0 released yesterday. |
Ah, okay. Now everything make sense. Since @minad Thanks for taking care of this! 😄 👍 |
) These functions seem to hangup from time to time on 28.2 (seagle0128/doom-modeline#601). By dropping the functions the hangup in doom-modeline is resolved, since doom-modeline contains a runtime check for string-pixel-width. The compatibility function implementations do not contain any loops, this means there is an underlying bug in `window-text-pixel-size' in 28.2 exposed by the compatibility function. Either the compatibility function must be written in a different form or we cannot provide them at all.
Hmm... very strange. Can you try clean install the package? Maybe a quick hack is to replace the function (defun dashboard-string-pixel-width (str)
"..."
(require 'shr)
(shr-string-pixel-width str))
|
Hi there,
I launch an emacs server when my computer boots and launch new frame with emacsclient.
Don't know exactly why but a new frame with
emacsclient -c
bounded toCTRL-Alt-e
(orC-M-e
) will end up with a dashboard frame that is pushed to the right and not centered. Not very important but dont look good and looking good is the point of this package ^^'How could I fix that issue ?
Here is my config for dashboard in my init.el :
And here is an image of the rendering :
The text was updated successfully, but these errors were encountered: