unicode-fonts icon indicating copy to clipboard operation
unicode-fonts copied to clipboard

Remapping unicode fonts on each startup

Open guraltsev opened this issue 8 years ago • 13 comments

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.

guraltsev avatar Aug 26 '16 12:08 guraltsev

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

dschwilk avatar Aug 29 '16 16:08 dschwilk

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

joaopizani avatar Aug 31 '16 13:08 joaopizani

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.

dschwilk avatar Aug 31 '16 13:08 dschwilk

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 https://github.com/rolandwalker/unicode-fonts/issues/21#issuecomment-243767470, or mute the thread https://github.com/notifications/unsubscribe-auth/AGtvzngyIuFoMNWCBil1wBcpNnuS8tmOks5qlYSkgaJpZM4JuA2U.

guraltsev avatar Aug 31 '16 13:08 guraltsev

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

joaopizani avatar Sep 01 '16 09:09 joaopizani

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 https://github.com/rolandwalker/unicode-fonts/issues/21#issuecomment-244026688, or mute the thread https://github.com/notifications/unsubscribe-auth/AGtvznWm71OIviRK6wFq6sxN2moTp4q8ks5qlptYgaJpZM4JuA2U.

guraltsev avatar Sep 01 '16 09:09 guraltsev

It worked, thank you very much!

joaopizani avatar Sep 01 '16 09:09 joaopizani

@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

dschwilk avatar Sep 01 '16 14:09 dschwilk

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

guraltsev avatar Dec 28 '16 09:12 guraltsev

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.

byorgey avatar Jan 03 '17 20:01 byorgey

I believe that this is fixed in pcache 0.4.2.

mavit avatar Jan 05 '17 22:01 mavit

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.

blaenk avatar Aug 29 '17 20:08 blaenk

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.

chee avatar Aug 20 '20 15:08 chee