Remove fboundp check from mood-line--deflazy

Users are reporting errors caused by deflazy'd functions having void function
definitions. fboundp check may be causing this, and may be unnecessary anyhow.
This commit is contained in:
Jessie Hildebrandt 2023-12-04 18:57:08 -05:00
parent a19fecd385
commit ff0a35672e

View File

@ -82,10 +82,8 @@
;; -------------------------------------------------------------------------- ;; ;; -------------------------------------------------------------------------- ;;
(defmacro mood-line--deflazy (name) (defmacro mood-line--deflazy (name)
"Define dummy function NAME to `require' its module and call actual function. "Define dummy function NAME to `require' its module and call actual function."
If NAME is already bound, this does nothing." (let ((module (intern (car (split-string (symbol-name name) "--")))))
(when-let ((not-bound (not (fboundp name)))
(module (intern (car (split-string (symbol-name name) "--")))))
`(defun ,name (&rest args) `(defun ,name (&rest args)
"Not yet loaded." "Not yet loaded."
(fmakunbound (quote ,name)) (fmakunbound (quote ,name))