From a2b02942f88967f553612a4f154ec58c8b80d04f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Oct 2022 20:02:11 +0200 Subject: [PATCH] fix: void-function set-fontset-font error Due to some packages and modules using this in some (non-GUI) builds of Emacs. display-graphic-p isn't enough here, so rather than police all the possible offenders, I've defined it to no-op in those cases, instead. Close: #6876 --- lisp/doom-ui.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/doom-ui.el b/lisp/doom-ui.el index 534c7e8cb..05cc20c12 100644 --- a/lisp/doom-ui.el +++ b/lisp/doom-ui.el @@ -632,11 +632,13 @@ triggering hooks during startup." (put sym 'disabled "Doom doesn't support `customize', configure Emacs from $DOOMDIR/config.el instead")) (put 'customize-themes 'disabled "Set `doom-theme' or use `load-theme' in $DOOMDIR/config.el instead") -;; Doesn't exist in terminal Emacs, but some Emacs packages (internal and -;; external) use it anyway, leading to a void-function error, so define a no-op -;; substitute to suppress them. +;; These two functions don't exist in terminal Emacs, but some Emacs packages +;; (internal and external) use it anyway, leading to void-function errors. I +;; define a no-op substitute to suppress them. (unless (fboundp 'define-fringe-bitmap) (fset 'define-fringe-bitmap #'ignore)) +(unless (fboundp 'set-fontset-font) + (fset 'set-fontset-font #'ignore)) (after! whitespace (defun doom-is-childframes-p ()