diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-31 11:33:47 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-31 11:39:00 +0200 |
commit | 5276519255c27e7dd01cbc3fea00d1c29f44d514 (patch) | |
tree | 9f643d3a9d0a4d048d5a18cf90dca743630ccb97 /lisp/emacs-lisp/cl-macs.el | |
parent | 107f832577123ea7ebe867cba55601d0142f546f (diff) | |
download | emacs-5276519255c27e7dd01cbc3fea00d1c29f44d514.tar.gz |
Fix cl byte-compile warning in cl-loaddefs.el
* lisp/emacs-lisp/cl-macs.el (cl--optimize)
(cl-struct-sequence-type, cl-struct-slot-offset): Autoload since
they are referred to by code in cl-loaddefs.el.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 6646167b92b..727b3098e34 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -2559,6 +2559,7 @@ values. For compatibility, (cl-values A B C) is a synonym for (list A B C). (push x macro-declarations-alist) (push x defun-declarations-alist))) +;;;###cl-autoload (defun cl--optimize (f _args &rest qualities) "Serve `cl-optimize' in function declarations. Example: @@ -3335,6 +3336,7 @@ the form NAME which is a shorthand for (NAME NAME)." :around #'cl--pcase-mutually-exclusive-p)) +;;;###cl-autoload (defun cl-struct-sequence-type (struct-type) "Return the sequence used to build STRUCT-TYPE. STRUCT-TYPE is a symbol naming a struct type. Return values are @@ -3374,6 +3376,7 @@ slots skipped by :initial-offset may appear in the list." (define-error 'cl-struct-unknown-slot "struct has no slot") +;;;###cl-autoload (defun cl-struct-slot-offset (struct-type slot-name) "Return the offset of slot SLOT-NAME in STRUCT-TYPE. The returned zero-based slot index is relative to the start of |