From: Stefan Monnier Date: Sun, 8 May 2022 14:33:49 +0000 (-0400) Subject: * lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case X-Git-Tag: emacs-29.0.90~1910^2~899 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b03d6265cd9427e11c5bfd4a56822b4475c8e8cd;p=emacs.git * lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case --- diff --git a/lisp/emacs-lisp/oclosure.el b/lisp/emacs-lisp/oclosure.el index cb8c59b05a2..9775e8cc656 100644 --- a/lisp/emacs-lisp/oclosure.el +++ b/lisp/emacs-lisp/oclosure.el @@ -223,7 +223,7 @@ list of slot properties. The currently known properties are the following: `:mutable': A non-nil value mean the slot can be mutated. `:type': Specifies the type of the values expected to appear in the slot." (declare (doc-string 2) (indent 1)) - (unless (stringp docstring) + (unless (or (stringp docstring) (null docstring)) (push docstring slots) (setq docstring nil)) (let* ((options (when (consp name)