Function: fill-polish-nobreak-p

fill-polish-nobreak-p is a byte-compiled function defined in fill.el.gz.

Signature

(fill-polish-nobreak-p)

Documentation

Return nil if Polish style allows breaking the line at point.

This function may be used in the fill-nobreak-predicate hook. It is almost the same as fill-single-char-nobreak-p, with the exception that it does not require the one-letter word to be preceded by a space. This blocks line-breaking in cases like
"(a jednak)".

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/fill.el.gz
(defun fill-polish-nobreak-p ()
  "Return nil if Polish style allows breaking the line at point.
This function may be used in the `fill-nobreak-predicate' hook.
It is almost the same as `fill-single-char-nobreak-p', with the
exception that it does not require the one-letter word to be
preceded by a space.  This blocks line-breaking in cases like
\"(a jednak)\"."
  (save-excursion
    (skip-chars-backward " \t")
    (backward-char 2)
    (looking-at "[^[:alpha:]]\\cl")))