Function: fill-french-nobreak-p
fill-french-nobreak-p is a byte-compiled function defined in
fill.el.gz.
Signature
(fill-french-nobreak-p)
Documentation
Return nil if French style allows breaking the line at point.
This is used in fill-nobreak-predicate to prevent breaking lines just
after an opening paren or just before a closing paren or a punctuation
mark such as ? or :. It is common in French writing to put a space
at such places, which would normally allow breaking the line at those
places.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/fill.el.gz
(defun fill-french-nobreak-p ()
"Return nil if French style allows breaking the line at point.
This is used in `fill-nobreak-predicate' to prevent breaking lines just
after an opening paren or just before a closing paren or a punctuation
mark such as `?' or `:'. It is common in French writing to put a space
at such places, which would normally allow breaking the line at those
places."
(or (looking-at "[ \t]*[])}»?!;:-]")
(save-excursion
(skip-chars-backward " \t")
(unless (bolp)
(backward-char 1)
(or (looking-at "[([{«]")
;; Don't cut right after a single-letter word.
(and (memq (preceding-char) '(?\t ?\s))
(eq (char-syntax (following-char)) ?w)))))))