Function: vi-indent-op

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

Signature

(vi-indent-op MOTION-COMMAND ARG)

Documentation

Perform indent command on range specified by MOTION-COMMAND with ARG.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/vi.el.gz
(defun vi-indent-op (motion-command arg)
  "Perform indent command on range 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
      (indent-region begin end nil)	; insert TAB as indent command
      t)))