mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
107f832577
commit
5276519255
2 changed files with 4 additions and 0 deletions
|
|
@ -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 macro-declarations-alist)
|
||||||
(push x defun-declarations-alist)))
|
(push x defun-declarations-alist)))
|
||||||
|
|
||||||
|
;;;###cl-autoload
|
||||||
(defun cl--optimize (f _args &rest qualities)
|
(defun cl--optimize (f _args &rest qualities)
|
||||||
"Serve `cl-optimize' in function declarations.
|
"Serve `cl-optimize' in function declarations.
|
||||||
Example:
|
Example:
|
||||||
|
|
@ -3335,6 +3336,7 @@ the form NAME which is a shorthand for (NAME NAME)."
|
||||||
:around #'cl--pcase-mutually-exclusive-p))
|
:around #'cl--pcase-mutually-exclusive-p))
|
||||||
|
|
||||||
|
|
||||||
|
;;;###cl-autoload
|
||||||
(defun cl-struct-sequence-type (struct-type)
|
(defun cl-struct-sequence-type (struct-type)
|
||||||
"Return the sequence used to build STRUCT-TYPE.
|
"Return the sequence used to build STRUCT-TYPE.
|
||||||
STRUCT-TYPE is a symbol naming a struct type. Return values are
|
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")
|
(define-error 'cl-struct-unknown-slot "struct has no slot")
|
||||||
|
|
||||||
|
;;;###cl-autoload
|
||||||
(defun cl-struct-slot-offset (struct-type slot-name)
|
(defun cl-struct-slot-offset (struct-type slot-name)
|
||||||
"Return the offset of slot SLOT-NAME in STRUCT-TYPE.
|
"Return the offset of slot SLOT-NAME in STRUCT-TYPE.
|
||||||
The returned zero-based slot index is relative to the start of
|
The returned zero-based slot index is relative to the start of
|
||||||
|
|
|
||||||
|
|
@ -481,6 +481,7 @@ FILE's name."
|
||||||
(insert "\n;;; End of scraped data\n\n")
|
(insert "\n;;; End of scraped data\n\n")
|
||||||
(generate-lisp-file-trailer
|
(generate-lisp-file-trailer
|
||||||
file :provide (and (stringp feature) feature)
|
file :provide (and (stringp feature) feature)
|
||||||
|
:compile t
|
||||||
:inhibit-provide (not feature))
|
:inhibit-provide (not feature))
|
||||||
(buffer-string))))
|
(buffer-string))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue