Function: indent-to-left-margin

indent-to-left-margin is a byte-compiled function defined in indent.el.gz.

Signature

(indent-to-left-margin)

Documentation

Indent current line to the column given by current-left-margin.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/indent.el.gz
;; This used to be the default indent-line-function,
;; used in Fundamental Mode, Text Mode, etc.
(defun indent-to-left-margin ()
  "Indent current line to the column given by `current-left-margin'."
  (save-excursion (indent-line-to (current-left-margin)))
  ;; If we are within the indentation, move past it.
  (when (save-excursion
	  (skip-chars-backward " \t")
	  (bolp))
    (skip-chars-forward " \t")))