-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error with modeline when using svg-lib #76
Comments
Merci ! For the bootstrap:XXX, the problem seems that svg-lib is unable to create the button for some reason. Can you try to toggle debug on error and report the error (if any) ? |
I have activated toggle debug on error (M-x toggle-debug-on-error) but it does not stop and report anything else than the previous error of the inial post. I have done a capture with orgroam this time to have the error with your default button :
I'm not good enough in elisp to understand fully what all that means. Well I found that : https://www.gnu.org/software/emacs/manual/html_node/elisp/Debugging-Redisplay.html So here the content of the buffer *Redisplay_trace* after evaluating (setq backtrace-on-redisplay-error t)
I hope that can help. |
Can you try in a scratch buffer: (require 'svg-lib)
(insert (propertize "HOME" 'display (svg-lib-tag "[material:home] HOME"))) |
You get no error alongside? Can you also try to remove |
Hi, I think I found what was the problem. I was trying to search for any errors, then I check the svg-lib.el inside my I did not have any mention of Version 0.3.1 inside of it. Then I checked on ELPA to see if i have an old version, but when i download the package directly from there it's still an old version. https://elpa.gnu.org/packages/svg-lib.html -> https://elpa.gnu.org/packages/svg-lib-0.3.tar So I installed svg-lib with a git clone of repo and in my config before nano-modline use-package :
Now i don't have any error. But the modeline still show the text [bootstrap:arrows-expand], I checked your code (i'm still a newcomer with elisp) and found out that nano-modeline/nano-modeline.el Line 565 in 04676d5
Now How can I install svg-lib correctly ? |
Not sure actually. It's weird that svg-lib is installed but |
Same problem here, but no workaround.
|
You mean you cannot display svg tags inside the mode line ? |
Hello,
I use "nano-theme" and "nano-modeline" and instead of seeing icons in modeline I see text [bootstrap:XXX], I see this for exmple when I am in "capture" in orgmode (org roam dailies capture today).
Looking at the sources I see that svg-lib is required, so I add it via a :
(use-package svg-lib) in my conf and when I restart my emacs my modeline disappears and I get this kind of error :
Here my conf for nano-modeline :
On the other hand, "modelines" that don't use button like the default org one work very well.
And without svg-lib everything is OK but button are juste text [bootstrap:XXX]
PS : C'est un plaisir d'utiliser vos créations 👍
The text was updated successfully, but these errors were encountered: