Function: semantic-grammar-indent

semantic-grammar-indent is an interactive and byte-compiled function defined in grammar.el.gz.

Signature

(semantic-grammar-indent)

Documentation

Indent the current line.

Use the Lisp or grammar indenter depending on point location.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/grammar.el.gz
(defun semantic-grammar-indent ()
  "Indent the current line.
Use the Lisp or grammar indenter depending on point location."
  (interactive)
  (let ((orig (point))
        first)
    (or (semantic-grammar-do-lisp-indent)
        (semantic-grammar-do-grammar-indent))
    (setq first (save-excursion
                  (beginning-of-line)
                  (skip-chars-forward "\t ")
                  (point)))
    (if (or (< orig first) (/= orig (point)))
        (goto-char first))))