rolandwalker / unicode-fonts

Configure Unicode fonts for Emacs
227 stars 28 forks source link

don't update font cache if running remotely #17

Closed izahn closed 9 years ago

izahn commented 9 years ago

I've notice that when running emacs over ssh with X forwarding the font cache gets rebuilt. I'm not sure why this is (e.g., is it updating to mach fonts available on the client?), but I would like to make it stop. I looked for a way to determine (in elisp) if emacs is running over ssh, but didn't turn anything up. I would appreciate any suggestions for preventing font cache updating when running over ssh.

rolandwalker commented 9 years ago

Hi! That's a good point. It kinda does need to re-build the cache, because Emacs recognizes that the X11 it can see is now different.

First of all, I think the user ought to have the option to disable caching, though things do get very slow.

Secondly, the library should segregate the caches according to the SSH host. That way it would only be calculated once for a given connection. This is super easy to do because the cache is already aware of the windowing system and the Emacs version for the same reason.