summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-05-21 17:29:50 +0000
committerDave Love <fx@gnu.org>2000-05-21 17:29:50 +0000
commit6a475c995540c653ab9964d864cf088ae66656c6 (patch)
treea56c314a29c1907023221a7e89635ccd47bbfe73 /lisp
parentb9f5db901fd414dbf8c13c575f4cf411c6fedb0e (diff)
downloademacs-6a475c995540c653ab9964d864cf088ae66656c6.tar.gz
(ring-elements): New function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/ring.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/ring.el b/lisp/emacs-lisp/ring.el
index 27100d84c77..e4cede28bd2 100644
--- a/lisp/emacs-lisp/ring.el
+++ b/lisp/emacs-lisp/ring.el
@@ -154,6 +154,10 @@ will be performed."
(let* ((hd (car ring)) (ln (car (cdr ring))) (vec (cdr (cdr ring))))
(aref vec (ring-index index hd ln (length vec))))))
+(defun ring-elements (ring)
+ "Return a list of the lements of RING."
+ (mapcar #'identity (cddr ring)))
+
;;; provide ourself:
(provide 'ring)