aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert1993-08-10 04:14:17 +0000
committerPaul Eggert1993-08-10 04:14:17 +0000
commit0bf9031ad18eb3c189ac9c2494e92c745ce664e7 (patch)
treef5210382cb124324dafc1e9040774be0eca075ca
parentffbc30b29a429e0f1ab2311792bbae2eeb97f359 (diff)
downloademacs-0bf9031ad18eb3c189ac9c2494e92c745ce664e7.tar.gz
emacs-0bf9031ad18eb3c189ac9c2494e92c745ce664e7.zip
ring-mod -> mod
-rw-r--r--lisp/comint.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 6881f6acd64..7670ae65265 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -413,7 +413,7 @@ buffer. The hook `comint-exec-hook' is run after each exec."
413 (if (> arg 0) -1 413 (if (> arg 0) -1
414 (if (< arg 0) 1 0)))) 414 (if (< arg 0) 1 0))))
415 (setq comint-input-ring-index 415 (setq comint-input-ring-index
416 (ring-mod (+ comint-input-ring-index arg) len)) 416 (mod (+ comint-input-ring-index arg) len))
417 (message "%d" (1+ comint-input-ring-index)) 417 (message "%d" (1+ comint-input-ring-index))
418 (insert (ring-ref comint-input-ring comint-input-ring-index)))))) 418 (insert (ring-ref comint-input-ring comint-input-ring-index))))))
419 419
@@ -450,11 +450,11 @@ If N is negative, find the next or Nth next match."
450 (while (/= arg 0) 450 (while (/= arg 0)
451 (let ((prev n)) 451 (let ((prev n))
452 ;; Step once. 452 ;; Step once.
453 (setq n (ring-mod (+ n motion) len)) 453 (setq n (mod (+ n motion) len))
454 ;; If we haven't reached a match, step some more. 454 ;; If we haven't reached a match, step some more.
455 (while (and (< n len) 455 (while (and (< n len)
456 (not (string-match regexp (ring-ref comint-input-ring n)))) 456 (not (string-match regexp (ring-ref comint-input-ring n))))
457 (setq n (ring-mod (+ n motion) len)) 457 (setq n (mod (+ n motion) len))
458 ;; If we have gone all the way around in this search, error. 458 ;; If we have gone all the way around in this search, error.
459 (if (= n prev) 459 (if (= n prev)
460 (error "Not found")))) 460 (error "Not found"))))