Function: fill-paragraph-semlf

fill-paragraph-semlf is an interactive and byte-compiled function defined in fill.el.gz.

Signature

(fill-paragraph-semlf &optional JUSTIFY REGION)

Documentation

Fill paragraph at or after point using semantic linefeeds.

Refill text putting a newline character after each sentence.

If JUSTIFY is non-nil (interactively, with prefix argument), justify as well. The REGION argument is non-nil if called interactively; in that case, if Transient Mark mode is enabled and the mark is active, fill the active region.

See fill-paragraph and fill-region-as-paragraph-semlf for more details.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/fill.el.gz
(defun fill-paragraph-semlf (&optional justify region)
  "Fill paragraph at or after point using semantic linefeeds.
Refill text putting a newline character after each sentence.

If JUSTIFY is non-nil (interactively, with prefix argument), justify as
well.  The REGION argument is non-nil if called interactively; in that
case, if Transient Mark mode is enabled and the mark is active, fill the
active region.

See `fill-paragraph' and `fill-region-as-paragraph-semlf' for more
details."
  (interactive (progn
		 (barf-if-buffer-read-only)
		 (list (if current-prefix-arg 'full) t)))

  (let ((fill-region-as-paragraph-function #'fill-region-as-paragraph-semlf))
    (fill-paragraph justify region)))