Function: evil-narrow

evil-narrow is a byte-compiled function defined in evil-common.el.

This function is obsolete since 1.15.0.

Signature

(evil-narrow BEG END)

Documentation

Restrict the buffer to BEG and END.

BEG or END may be nil, specifying a one-sided restriction including point-min or point-max. See also evil-with-restriction.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-narrow (beg end)
  "Restrict the buffer to BEG and END.
BEG or END may be nil, specifying a one-sided restriction including
`point-min' or `point-max'. See also `evil-with-restriction.'"
  (declare (obsolete nil "1.15.0"))
  (narrow-to-region
   (if beg (max beg (point-min)) (point-min))
   (if end (min end (point-max)) (point-max))))