From ff0a35672e57169bc004ccd8f4a7b6fceec5e93d Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Mon, 4 Dec 2023 18:57:08 -0500 Subject: [PATCH] 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. --- mood-line.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mood-line.el b/mood-line.el index ef30510..e22542d 100644 --- a/mood-line.el +++ b/mood-line.el @@ -82,10 +82,8 @@ ;; -------------------------------------------------------------------------- ;; (defmacro mood-line--deflazy (name) - "Define dummy function NAME to `require' its module and call actual function. -If NAME is already bound, this does nothing." - (when-let ((not-bound (not (fboundp name))) - (module (intern (car (split-string (symbol-name name) "--"))))) + "Define dummy function NAME to `require' its module and call actual function." + (let ((module (intern (car (split-string (symbol-name name) "--"))))) `(defun ,name (&rest args) "Not yet loaded." (fmakunbound (quote ,name))