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

Unicode-font-setup void-variable error #33

Closed
jonathanwilner opened this issue Mar 17, 2023 · 6 comments
Closed

Unicode-font-setup void-variable error #33

jonathanwilner opened this issue Mar 17, 2023 · 6 comments

Comments

@jonathanwilner
Copy link

Hi there -

Been trying to figure this one out for a few days. It doesn't happen with the vanilla / first install of minemacs, but as soon as I seem to add a few modules, it appears. I get the full error when starting up with debugging enabled, but without it enabled, loading stops when the error hits - forcing me to then try to load the rest of the config by reloading init.el.

I'm totally stumped on how to get past this one & how to figure out what change / config is generating the problem, other than obviously the call to setup unicode-fonts.

My guess is that this is Mac related & has to do with trying to load a font weight. There's a similar seeming bug that was fixed for Spacemacs, but the workaround about weights/color doesn't seem to help, at least as I'm trying to apply it.

I'd love any help or direction to where to look in the configuration or how to give better debug feedback.

Thanks!


Debugger entered--Lisp error: (void-variable \...) (progn (set-fontset-font "fontset-default" '(64256 . 64335) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(65856 . 65935) (font-spec :name "Apple Symbols:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Courier New:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Geeza Pro:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Baghdad:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Damascus:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Al Bayan:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Nadeem:" :registry "iso10646-1") nil 'append) \...) eval((progn (set-fontset-font "fontset-default" '(64256 . 64335) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(65856 . 65935) (font-spec :name "Apple Symbols:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Courier New:" :registry "iso10646-1")) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Geeza Pro:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Baghdad:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Damascus:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Al Bayan:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Arial Unicode MS:" :registry "iso10646-1") nil 'append) (set-fontset-font "fontset-default" '(1536 . 1791) (font-spec :name "Nadeem:" :registry "iso10646-1") nil 'append) \...)) unicode-fonts--setup-1("fontset-default" nil) unicode-fonts-setup() (progn (select-frame frame 'norecord) (let* ((unicode-font-family (and t (plist-get minemacs-fonts :unicode-font-family)))) (if unicode-font-family (let ((tail unicode-fonts-block-font-mapping)) (while tail (let ((unicode-block ...)) (let* (...) (setcar ... ...)) (setq tail (cdr tail))))) nil)) (unicode-fonts-setup)) (unwind-protect (progn (select-frame frame 'norecord) (let* ((unicode-font-family (and t (plist-get minemacs-fonts :unicode-font-family)))) (if unicode-font-family (let ((tail unicode-fonts-block-font-mapping)) (while tail (let (...) (let* ... ...) (setq tail ...)))) nil)) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer)))) (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (let* ((unicode-font-family (and t (plist-get minemacs-fonts :unicode-font-family)))) (if unicode-font-family (let ((tail unicode-fonts-block-font-mapping)) (while tail (let ... ... ...))) nil)) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer))))) (progn (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (let* ((unicode-font-family (and t ...))) (if unicode-font-family (let (...) (while tail ...)) nil)) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer)))))) (if (and frame (display-graphic-p frame)) (progn (let ((old-frame (selected-frame)) (old-buffer (current-buffer))) (unwind-protect (progn (select-frame frame 'norecord) (let* ((unicode-font-family ...)) (if unicode-font-family (let ... ...) nil)) (unicode-fonts-setup)) (if (frame-live-p old-frame) (progn (select-frame old-frame 'norecord))) (if (buffer-live-p old-buffer) (progn (set-buffer old-buffer))))))) +unicode-fonts-setup-font(#<frame *minemacs-splash* 0x12e1a0230>) (if (display-graphic-p) (+unicode-fonts-setup-font (selected-frame)) (add-hook 'after-make-frame-functions #'+unicode-fonts-setup-font)) +unicode-fonts-initialize() run-hooks(minemacs-after-startup-hook) (progn (setq minemacs-after-startup-hook (reverse minemacs-after-startup-hook)) nil (run-hooks 'minemacs-after-startup-hook)) (if minemacs-after-startup-hook (progn (setq minemacs-after-startup-hook (reverse minemacs-after-startup-hook)) nil (run-hooks 'minemacs-after-startup-hook))) eval-buffer(#<buffer *load*> nil "/Users/Jonathan.Wilner/.emacs.d/core/minemacs-load..." nil t) ; Reading at buffer position 592 load-with-code-conversion("/Users/Jonathan.Wilner/.emacs.d/core/minemacs-load..." "/Users/Jonathan.Wilner/.emacs.d/core/minemacs-load..." nil t) require(minemacs-loaded) +minemacs--loaded-h() run-hooks(emacs-startup-hook term-setup-hook) #f(compiled-function () #<bytecode 0x41bcab4a44e7572>)() normal-top-level()

@abougouffa
Copy link
Owner

Hello @jonathanwilner ,

Thanks for the feedback,

It seems to be related to the unicode-fonts package.

Try to add this to your ~/.minemacs.d/config.el to disable loading the package:

(remove-hook 'minemacs-after-startup-hook #'+unicode-fonts-initialize)

@jonathanwilner
Copy link
Author

Hi there- will do, I was trying to keep unicode-fonts in there, as I like having unicode / symbols around.

@abougouffa
Copy link
Owner

abougouffa commented Mar 18, 2023

It seems that the issue is present on the upstream repo rolandwalker/unicode-fonts#36. There is a potential fix (as described in rolandwalker/unicode-fonts#36 (comment)); try this:

rm -r ~/.emacs.d/local/pcache/

@jonathanwilner
Copy link
Author

Yes! That did it. Thank you for finding that upstream. I should have looked there first! :-(

@abougouffa
Copy link
Owner

Can I consider this issue as resolved?

@jonathanwilner
Copy link
Author

jonathanwilner commented Mar 18, 2023 via email

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

No branches or pull requests

2 participants