Function: smie-indent-empty-line
smie-indent-empty-line is a byte-compiled function defined in
smie.el.gz.
Signature
(smie-indent-empty-line)
Documentation
Indentation rule when there's nothing yet on the line.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(t (smie-indent-virtual)))))) ;An infix.
(defun smie-indent-empty-line ()
"Indentation rule when there's nothing yet on the line."
;; Without this rule, SMIE assumes that an empty line will be filled with an
;; argument (since it falls back to smie-indent-sexps), which tends
;; to indent far too deeply.
(when (eolp)
(let ((token (or (funcall smie-rules-function :elem 'empty-line-token)
;; FIXME: Should we default to ";"?
;; ";"
)))
(when (assoc token smie-grammar)
(smie-indent-keyword token)))))