Function: windmove-constrain-around-range

windmove-constrain-around-range is a byte-compiled function defined in windmove.el.gz.

This function is obsolete since 27.1; no longer used.

Signature

(windmove-constrain-around-range N MIN-N MAX-N)

Documentation

Ensure that N is between MIN-N and MAX-N inclusive by wrapping.

If N is less than MIN-N, return MAX-N; if greater than MAX-N, return MIN-N.

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/windmove.el.gz
(defun windmove-constrain-around-range (n min-n max-n)
  "Ensure that N is between MIN-N and MAX-N inclusive by wrapping.
If N is less than MIN-N, return MAX-N; if greater than MAX-N, return
MIN-N."
  (declare (obsolete "no longer used." "27.1"))
  (cond
   ((< n min-n) max-n)
   ((> n max-n) min-n)
   (t n)))