Function: sqlind-use-anchor-indentation

sqlind-use-anchor-indentation is a natively compiled function defined in sql-indent.el.

Signature

(sqlind-use-anchor-indentation SYNTAX BASE-INDENTATION)

Documentation

Return the indentation of the line containing anchor of SYNTAX.

By default, the column of the anchor position is uses as a base indentation. You can use this function to switch to using the indentation of the anchor as the base indentation.

Source Code

;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defun sqlind-use-anchor-indentation (syntax _base-indentation)
  "Return the indentation of the line containing anchor of SYNTAX.
By default, the column of the anchor position is uses as a base
indentation.  You can use this function to switch to using the
indentation of the anchor as the base indentation."
  (save-excursion
    (goto-char (sqlind-anchor-point syntax))
    (current-indentation)))