Function: vi-narrow-op

vi-narrow-op is a byte-compiled function defined in vi.el.gz.

Signature

(vi-narrow-op MOTION-COMMAND ARG)

Documentation

Narrow to region specified by MOTION-COMMAND with ARG.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/vi.el.gz
(defun vi-narrow-op (motion-command arg)
  "Narrow to region specified by MOTION-COMMAND with ARG."
  (let* ((range (vi-effective-range motion-command arg))
	 (begin (car range)) (end (cdr range)))
    (if (= begin end)
	nil				; point not moved, abort op
      (narrow-to-region begin end))))