Function: align-adjust-col-for-rule

align-adjust-col-for-rule is a byte-compiled function defined in align.el.gz.

Signature

(align-adjust-col-for-rule COLUMN RULE SPACING TAB-STOP)

Documentation

Adjust COLUMN according to the given RULE.

SPACING specifies how much spacing to use. TAB-STOP specifies whether SPACING refers to tab-stop boundaries.

Source Code

;; Defined in /usr/src/emacs/lisp/align.el.gz
(defun align-adjust-col-for-rule (column _rule spacing tab-stop)
  "Adjust COLUMN according to the given RULE.
SPACING specifies how much spacing to use.
TAB-STOP specifies whether SPACING refers to tab-stop boundaries."
  (unless spacing
    (setq spacing align-default-spacing))
  (if (<= spacing 0)
      column
    (if (not tab-stop)
	(+ column spacing)
      (dotimes (_ spacing)
	(setq column (indent-next-tab-stop column)))
      column)))