Function: cmake-indent-line-to

cmake-indent-line-to is a natively compiled function defined in cmake-mode.el.

Signature

(cmake-indent-line-to COLUMN)

Documentation

Indent the current line to COLUMN.

If point is within the existing indentation it is moved to the end of the indentation. Otherwise it retains the same position on the line

Source Code

;; Defined in /nix/store/xpmgnbrvz0j5ic5m3q6fvh28ca8a9avm-emacs-packages-deps/share/emacs/site-lisp/elpa/cmake-mode-20261002.1529/cmake-mode.el
(defun cmake-indent-line-to (column)
  "Indent the current line to COLUMN.
If point is within the existing indentation it is moved to the end of
the indentation.  Otherwise it retains the same position on the line"
  (if (cmake-point-in-indentation)
      (indent-line-to column)
    (save-excursion (indent-line-to column))))