Function: smie-rule-parent

smie-rule-parent is a byte-compiled function defined in smie.el.gz.

Signature

(smie-rule-parent &optional OFFSET)

Documentation

Align with parent.

If non-nil, OFFSET should be an integer giving an additional offset to apply. Only meaningful when called from within smie-rules-function.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-rule-parent (&optional offset)
  "Align with parent.
If non-nil, OFFSET should be an integer giving an additional offset to apply.
Only meaningful when called from within `smie-rules-function'."
  (save-excursion
    (goto-char (cadr (smie-indent--parent)))
    (cons 'column
          (+ (or offset 0)
             (smie-indent-virtual)))))