Function: tuareg-indent-phrase

tuareg-indent-phrase is an interactive and natively compiled function defined in tuareg.el.

Signature

(tuareg-indent-phrase)

Documentation

Depending of the context: justify and indent a comment, or indent all lines in the current phrase.

Key Bindings

tuareg-mode-map C-c C-q tuareg-mode-map M-q

Source Code

;; Defined in /nix/store/6mbh851dhnag8f92qfrlh9ckldzwf6c6-emacs-packages-deps/share/emacs/site-lisp/elpa/tuareg-20260626.936/tuareg.el
(defun tuareg-indent-phrase ()
  "Depending of the context: justify and indent a comment,
or indent all lines in the current phrase."
  (interactive)
  (save-excursion
    (let ((ppss (syntax-ppss)))
      (cond
       ((equal ?\" (nth 3 ppss))
        (tuareg--fill-string))
       ((nth 4 ppss)
        (tuareg--fill-comment))
       (t (let ((phrase (tuareg-region-of-defun)))
            (if phrase
                (indent-region (car phrase) (cdr phrase)))))))))