diff options
author | Dave Love <fx@gnu.org> | 2000-05-21 17:29:50 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-05-21 17:29:50 +0000 |
commit | 6a475c995540c653ab9964d864cf088ae66656c6 (patch) | |
tree | a56c314a29c1907023221a7e89635ccd47bbfe73 /lisp | |
parent | b9f5db901fd414dbf8c13c575f4cf411c6fedb0e (diff) | |
download | emacs-6a475c995540c653ab9964d864cf088ae66656c6.tar.gz |
(ring-elements): New function.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emacs-lisp/ring.el | 4 |
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) |