Function: c-lineup-respect-col-0
c-lineup-respect-col-0 is a byte-compiled function defined in
cc-align.el.gz.
Signature
(c-lineup-respect-col-0 LANGELEM)
Documentation
If the current line starts at column 0, return [0]. Otherwise return nil.
This can be used for comments (in conjunction with, say,
c-lineup-comment), to keep comments already at column 0
anchored there, but reindent other comments.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-align.el.gz
(defun c-lineup-respect-col-0 (_langelem)
"If the current line starts at column 0, return [0]. Otherwise return nil.
This can be used for comments (in conjunction with, say,
`c-lineup-comment'), to keep comments already at column 0
anchored there, but reindent other comments."
(save-excursion
(back-to-indentation)
(if (eq (current-column) 0)
[0]
nil)))