]> git.eshelyaron.com Git - emacs.git/commitdiff
Temporarily fix the oclosure bootstrap
authorPo Lu <luangruo@yahoo.com>
Tue, 29 Mar 2022 05:58:40 +0000 (13:58 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 29 Mar 2022 05:58:40 +0000 (13:58 +0800)
* lisp/emacs-lisp/oclosure.el (oclosure-define): Load oclosure
from source if `oclosure--define' is not defined during byte
compilation.

lisp/emacs-lisp/oclosure.el

index 3d17c6c668c012d27ba64855de45dc7b9aec655c..0c504e5d821f06b6e7926dba8431a70050a54af4 100644 (file)
@@ -248,6 +248,8 @@ list of slot properties.  The currently known properties are the following:
        ,(when options (macroexp-warn-and-return name
                        (format "Ignored options: %S" options)
                        nil))
+       (eval-when-compile (unless (fboundp 'oclosure--define)
+                            (load "oclosure.el")))
        (eval-and-compile
          (oclosure--define ',name ,docstring ',parent-names ',slots
                            ,@(when predicate `(:predicate ',predicate))))