From de6c196235ef8abfff52c9cfc3d97a6350e8a5a7 Mon Sep 17 00:00:00 2001 From: Marcin Borkowski Date: Sun, 17 Apr 2016 08:30:49 +0200 Subject: [PATCH] Fix `fill-single-char-nobreak-p' * lisp/textmodes/fill.el (fill-single-char-nobreak-p): make space after opening paren and a single-letter word unbreakable (Bug#20871) --- lisp/textmodes/fill.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 173d1c9..bade8fa 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -337,7 +337,10 @@ fill-single-char-nobreak-p (save-excursion (skip-chars-backward " \t") (backward-char 2) - (looking-at "[[:space:]][[:alpha:]]"))) + (or (looking-at "[[:space:]][[:alpha:]]") + (progn + (backward-char 1) + (looking-at "[[:space:]]([[:alpha:]]"))))) (defcustom fill-nobreak-predicate nil "List of predicates for recognizing places not to break a line. -- 2.4.3