mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
refactor(lib): move fringe/fontset autodefs to doom-compat
This commit is contained in:
parent
4a6f9f741d
commit
395a807aae
2 changed files with 9 additions and 8 deletions
|
|
@ -7,6 +7,15 @@
|
|||
;;
|
||||
;;; Code:
|
||||
|
||||
;; 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))
|
||||
|
||||
|
||||
;;; From Emacs >= 28
|
||||
;; `format-spec' wasn't autoloaded until 28.1
|
||||
(unless (fboundp 'format-spec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue