Function: c-langelem-col
c-langelem-col is a byte-compiled function defined in cc-defs.el.gz.
Signature
(c-langelem-col LANGELEM &optional PRESERVE-POINT)
Documentation
Return the column of the anchor position in LANGELEM.
Also move the point to that position unless PRESERVE-POINT is non-nil.
LANGELEM is either a cons cell on the "old" form given as the first
argument to lineup functions or a syntactic element on the "new"
form as used in c-syntactic-element.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defun c-langelem-col (langelem &optional preserve-point)
"Return the column of the anchor position in LANGELEM.
Also move the point to that position unless PRESERVE-POINT is non-nil.
LANGELEM is either a cons cell on the \"old\" form given as the first
argument to lineup functions or a syntactic element on the \"new\"
form as used in `c-syntactic-element'."
(let ((pos (c-langelem-pos langelem))
(here (point)))
(if pos
(progn
(goto-char pos)
(prog1 (current-column)
(if preserve-point
(goto-char here))))
0)))