syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.71k stars 4.9k forks source link

[unicode-fonts] Do not error in after-make-frame-functions #16643

Closed bcc32 closed 2 weeks ago

bcc32 commented 2 weeks ago

If unicode-fonts-setup errors (such as if the eieio cache is corrupted), emacsclient behaves confusingly by opening both a graphical frame and a terminal frame.

You can reproduce this scenario by corrupting ~/.emacs.d/.cache/pcache/unicode-fonts (such that is no longer valid Lisp syntax) and then starting Emacs with emacsclient -ca ''.

Also remove an unnecessary require, since unicode-fonts-setup is autoloaded.

michaelpass commented 2 weeks ago