diff options
| author | Glenn Morris | 2014-01-27 21:50:16 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-01-27 21:50:16 -0500 |
| commit | 793ffe819539d4f642631910598b9c8dc696ec38 (patch) | |
| tree | 427e29742730ec5e9487a9795c4138ba8d93115b /lisp/textmodes | |
| parent | afc123c7bfa0f8a88b52c1caa4f1b996e64fbe41 (diff) | |
| download | emacs-793ffe819539d4f642631910598b9c8dc696ec38.tar.gz emacs-793ffe819539d4f642631910598b9c8dc696ec38.zip | |
Doc for fill-single-char-nobreak-p
* doc/emacs/text.texi (Fill Commands): Mention fill-single-char-nobreak-p.
* lisp/textmodes/fill.el (fill-single-char-nobreak-p): Doc tweak.
* etc/NEWS: Related edit.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/fill.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 35cc5320250..dac74e758fa 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -330,10 +330,10 @@ places." | |||
| 330 | (eq (char-syntax (following-char)) ?w))))))) | 330 | (eq (char-syntax (following-char)) ?w))))))) |
| 331 | 331 | ||
| 332 | (defun fill-single-char-nobreak-p () | 332 | (defun fill-single-char-nobreak-p () |
| 333 | "Return t if point is placed just after a 1-letter word. | 333 | "Return non-nil if a one-letter word is before point. |
| 334 | This is used in `fill-nobreak-predicate' to prevent breaking line just | 334 | This function is suitable for adding to the hook `fill-nobreak-predicate', |
| 335 | after a 1-letter word (usually conjunction or preposition) which is | 335 | to prevent the breaking of a line just after a one-letter word, |
| 336 | considered composition error in Polish and Czech typography." | 336 | which is an error according to some rules of typography." |
| 337 | (save-excursion | 337 | (save-excursion |
| 338 | (skip-chars-backward " \t") | 338 | (skip-chars-backward " \t") |
| 339 | (backward-char 2) | 339 | (backward-char 2) |