Function: align--set-marker

align--set-marker is a macro defined in align.el.gz.

Signature

(align--set-marker MARKER-VAR POS &optional TYPE)

Documentation

If MARKER-VAR is a marker, move it to position POS.

Otherwise, create a new marker at position POS, with type TYPE.

Source Code

;; Defined in /usr/src/emacs/lisp/align.el.gz
(defmacro align--set-marker (marker-var pos &optional type)
  "If MARKER-VAR is a marker, move it to position POS.
Otherwise, create a new marker at position POS, with type TYPE."
  `(if (markerp ,marker-var)
       (move-marker ,marker-var ,pos)
     (setq ,marker-var (copy-marker ,pos ,type))))