Function: meta-indent-line

meta-indent-line is an interactive and byte-compiled function defined in meta-mode.el.gz.

Signature

(meta-indent-line)

Documentation

Indent the line containing point as Metafont or MetaPost source.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/meta-mode.el.gz
(defun meta-indent-line ()
  "Indent the line containing point as Metafont or MetaPost source."
  (interactive)
  (let ((indent (meta-indent-calculate)))
    (if (/= (current-indentation) indent)
        (save-excursion
          (delete-region (line-beginning-position)
                         (progn (back-to-indentation) (point)))
          (indent-to indent)))
    (if (< (current-column) indent)
        (back-to-indentation))))