Closed practicalli-johnny closed 2 years ago
This issue did not occur on Emacs 27, which I was using up until 21st April. There is a ~/.emacs.d/.cache/pcache/unicode-fonts
file from that time with the following header
(pcache-repository "unicode-fonts"
:file "unicode-fonts"
:object-name "unicode-fonts"
:version "27.1/0.5"
So it would seem that this issue affects Emacs versions after 27.1 at some point.
I am using a recent build of Emacs 29 (from Ubuntu Emacs PPA) and no new files are being created in ~/.emacs.d/.cache/pcache/
or in ~/.emacs.d/var/pcache/
Using Emacs 28.1 on Ubuntu the issue no longer occurs. A new version of the ~/.emacs.d/.cache/unicode-fonts
file is created for Emacs version 28.1
(pcache-repository "unicode-fonts"
:file "unicode-fonts"
:object-name "unicode-fonts"
:version "28.1/0.5"
Emacs 28 does not seem to be packaged for Ubuntu, although the steps to build from the Emacs source code are relatively straight forward: https://practical.li/blog/posts/build-emacs-28-on-ubuntu/
I don't know what's causing this issue but it's occurring in the (cl-call-next-method)
call within make-instance
. I don't really know much about eieio
though.
EDIT: I've commented on https://github.com/sigma/pcache/issues/16 as well.
I have just submitted a pull request fixing this issue: https://github.com/sigma/pcache/pull/17.
Description :octocat:
Unicode font mapping each time Spacemacs is started, rather than being cached
Spacemacs can take up to a minute to start due to a process that maps unicode blocks on fonts and the results of this process are not being cached.
Progress of mapping appears in the mini-buffer on Spacemacs startup.
In
*messages*
buffer on startup the following entries are addedReproduction guide :beetle:
unicode-fonts
layer with variables to enable ligaturesInstall FiraCode font, or any font with ligature support, on the operating system.
Restart Emacs
Observed behaviour: :eyes: :broken_heart:
Unicode fonts are mapped each time
Expected behaviour: :heart: :smile:
Unicode font mapping should be saved in the Spacemacs cache, so only runs once (unless font / configuration is changed)
System Info :computer:
Backtrace :paw_prints: