mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 15:50:40 -08:00
*** empty log message ***
This commit is contained in:
parent
d501f51645
commit
c88ab9ce4a
40 changed files with 280 additions and 120 deletions
|
|
@ -1,5 +1,23 @@
|
|||
;;; Ring Code
|
||||
;;;============================================================================
|
||||
;;; ring.el --- handle rings of marks
|
||||
|
||||
;; Copyright (C) 1992 Free Software Foundation, Inc.
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
;; GNU Emacs is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 1, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; GNU Emacs is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with GNU Emacs; see the file COPYING. If not, write to
|
||||
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
;;; This code defines a ring data structure. A ring is a
|
||||
;;; (hd-index tl-index . vector)
|
||||
;;; list. You can insert to, remove from, and rotate a ring. When the ring
|
||||
|
|
@ -99,3 +117,5 @@ Answer is guaranteed to be non-negative, and less than m."
|
|||
(vec-index (comint-mod (+ index hd)
|
||||
(length vec))))
|
||||
(aref vec vec-index)))))
|
||||
|
||||
;;; ring.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue