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
This commit is contained in:
parent
9d4689de5f
commit
a2b02942f8
1 changed files with 5 additions and 3 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue