Function: emacsql--indent

emacsql--indent is a byte-compiled function defined in emacsql.el.

Signature

(emacsql--indent)

Documentation

Indent and wrap the SQL expression in the current buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/emacsql-20261001.1544/emacsql.el
(defun emacsql--indent ()
  "Indent and wrap the SQL expression in the current buffer."
  (save-excursion
    (goto-char (point-min))
    (let ((case-fold-search nil))
      (while (search-forward-regexp " [A-Z]+" nil :no-error)
        (when (> (current-column) (* fill-column 0.8))
          (backward-word)
          (insert "\n    "))))))