mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* lisp/emacs-lisp/ring.el (ring): Define as a type
This commit is contained in:
parent
1faeef7924
commit
3a9c803f24
@ -42,6 +42,8 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
;;; User Functions:
|
||||
|
||||
;;;###autoload
|
||||
@ -51,6 +53,8 @@
|
||||
(consp (cdr x)) (integerp (cadr x))
|
||||
(vectorp (cddr x))))
|
||||
|
||||
(cl-deftype ring () '(satisfies ring-p))
|
||||
|
||||
;;;###autoload
|
||||
(defun make-ring (size)
|
||||
"Make a ring that can contain SIZE elements."
|
||||
|
Loading…
Reference in New Issue
Block a user