Mercurial > emacs
changeset 29055:661c97b907a8
(ring-elements): New function.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sun, 21 May 2000 17:29:50 +0000 |
parents | 25099b559af9 |
children | abee88aa37f0 |
files | lisp/emacs-lisp/ring.el |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/ring.el Sun May 21 17:26:47 2000 +0000 +++ b/lisp/emacs-lisp/ring.el Sun May 21 17:29:50 2000 +0000 @@ -154,6 +154,10 @@ (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)