]> git.eshelyaron.com Git - emacs.git/commitdiff
cl-extra: Fix docstring retrieval
authorJulian Scheid <julians37@gmail.com>
Mon, 22 Feb 2021 15:06:03 +0000 (16:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 22 Feb 2021 15:06:58 +0000 (16:06 +0100)
* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Fix
docstring retrieval (bug#46662).

lisp/emacs-lisp/cl-extra.el

index 28ce6b115a4ce05bdf19978b3d93c71501a73bfd..84199c161277235036c4724cdbcaed79cded8bcd 100644 (file)
@@ -898,8 +898,8 @@ Outputs to the current buffer."
                (list (cl-prin1-to-string (cl--slot-descriptor-name slot))
                      (cl-prin1-to-string (cl--slot-descriptor-type slot))
                      (cl-prin1-to-string (cl--slot-descriptor-initform slot))
-                     (let ((doc (alist-get :documentation
-                                           (cl--slot-descriptor-props slot))))
+                     (let ((doc (plist-get (cl--slot-descriptor-props slot)
+                                           :documentation)))
                        (if (not doc) ""
                          (setq has-doc t)
                          (substitute-command-keys doc)))))