Function: asm-indent-line

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

Signature

(asm-indent-line)

Documentation

Auto-indent the current line.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/asm-mode.el.gz
(defun asm-indent-line ()
  "Auto-indent the current line."
  (interactive)
  (let* ((savep (point))
	 (indent (condition-case nil
		     (save-excursion
		       (forward-line 0)
		       (skip-chars-forward " \t")
		       (if (>= (point) savep) (setq savep nil))
		       (max (asm-calculate-indentation) 0))
		   (error 0))))
    (if savep
	(save-excursion (indent-line-to indent))
      (indent-line-to indent))))