Skip to content
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

Remapping unicode fonts on each startup #21

Open
guraltsev opened this issue Aug 26, 2016 · 13 comments
Open

Remapping unicode fonts on each startup #21

guraltsev opened this issue Aug 26, 2016 · 13 comments

Comments

@guraltsev
Copy link

There is some problem with the cache saving. I have persistent-soft installed and unicode-fonts, too.

my init.el has:

(require 'unicode-fonts)
(unicode-fonts-setup)

But every time I launch emacs the font mapping starts again. I do not understand why.

@dschwilk
Copy link

dschwilk commented Aug 29, 2016

I can confirm that this is also happening to me after a recent set of package upgrades.

This is a new problem for me as in the past, I only needed to wait for the mapping after I upgraded the package. I had never needed to explicitly require persistent-soft.

Update: I can confirm that the files ucs-utils and unicode-fonts are being created in ~/.emacs.d/var/pcache

@joaopizani
Copy link

Can conform also. I have already tried to uninstall and reinstall all plugins, did not help.

@dschwilk
Copy link

Is this some interaction with something else that changed recently (I assume pcache)? Because it does not look like there have been any changes to unicode-fonts or persistent soft.

@guraltsev
Copy link
Author

Yep! Actually I solved the problem downgrading pcache. You can try to
execute the example code to pcache and it doesn't work

On 31/08/16 15:41, Dylan Schwilk wrote:

Is this some interaction with something else that changed recently (I
assume pcache)? Because it does not look like there have been any
changes to unicode-fonts or persistent soft.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGtvzngyIuFoMNWCBil1wBcpNnuS8tmOks5qlYSkgaJpZM4JuA2U.

@joaopizani
Copy link

To which version did you downgrade pcache? And, could you somehow provide us with a tarball of your "~/.emacs.d/elpa/pcache-" directory?

I'm having lots of trouble to find a way to properly "downgrade" the pcache pkg from MELPA

@guraltsev
Copy link
Author

guraltsev commented Sep 1, 2016

pcache-0.3.1.tar.gz

I have pcache-0.3.1 from marmalade. The 20160724.1929 from melpa doesn't
work.

To downgrade I just removed the pcache directory from the elpa directory
and then installed the version using emacs' package manager from marmalade.

I am attaching the tar of my "~/.emacs.d/elpa/pcache-"

My emacs version is 24.5.1

Let me know.

On 01/09/16 11:31, João Pizani wrote:

To which version did you downgrade pcache? And, could you somehow
provide us with a tarball of your "~/.emacs.d/elpa/pcache-" directory?

I'm having lots of trouble to find a way to properly "downgrade" the
pcache pkg from MELPA


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGtvznWm71OIviRK6wFq6sxN2moTp4q8ks5qlptYgaJpZM4JuA2U.

@joaopizani
Copy link

It worked, thank you very much!

@dschwilk
Copy link

dschwilk commented Sep 1, 2016

@guraltsev :

Thanks. Yes, pcache 3.1 and all is well.

Yep! Actually I solved the problem downgrading pcache. You can try to execute the example code to
pcache and it doesn't work

Can you expand on what you mean by "example code"? If we know what exactly is failing maybe we can move this issue over to https://github.com/sigma/pcache

@guraltsev
Copy link
Author

It seems that with Emacs 25.1 and 20160724.1929 from melpa everything works ok again!

@byorgey
Copy link

byorgey commented Jan 3, 2017

I had pcache-20160724.1929 from melpa installed but was still seeing the same behavior (regenerating ~/.emacs.d/var/pcache/{ucs-utils,unicode-fonts} at every startup). Downgrading to pcache-0.3.1 fixed it for me.

mavit added a commit to mavit/pcache that referenced this issue Jan 5, 2017
`pcache`'s constructor's call to `pcache-validate-repo` silently fails unless `subr-x` is `require`d.

This fixes rolandwalker/unicode-fonts#21.
mavit added a commit to mavit/pcache that referenced this issue Jan 5, 2017
`pcache`'s constructor's call to `pcache-validate-repo` silently fails unless `subr-x` is `require`d.

This fixes rolandwalker/unicode-fonts#21.
@mavit
Copy link

mavit commented Jan 5, 2017

I believe that this is fixed in pcache 0.4.2.

@blaenk
Copy link

blaenk commented Aug 29, 2017

This has been happening to me non-stop. I'm on GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-08-25.

@chee
Copy link

chee commented Aug 20, 2020

for anyone who comes here in the future, what i did was:

  • let unicode-fonts run once, quit emacs
  • copy set-fontset-font sexps it saved in the pcache file at ~/.emacs.d/var/pcache/unicode-fonts
  • add them to a separate file (~/.emacs.d/chee/unicode-fonts-setup.el)
  • stop loading unicode-fonts in my .emacs.d/init.el
  • load my own unicode-fonts-setup.el file instead

also, for me this problem appeared to be caused by switching between different emacs binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants