Subject: bug#7751: 24.0.50; `fill-paragraph' on doc string with colons

From: Lawrence Mitchell <[email-masked]>
Date: Fri, 17 Feb 2012 12:55:28 +0000

Following up open bugs...

Lawrence Mitchell wrote:

[...]

> Here's an even more minimal test-case:

> emacs -Q

> (setq emacs-lisp-docstring-fill-column 30)
> (insert "\"a word, another word and more :bar\"")

> M-q

> gives a break of:

> | a word, another word and
> | more :bar

> whereas one would expect

> | a word, another word and more
> | :bar

> The problem appears to be in the regexp used to define
> paragraph-start in lisp-fill-paragraph:

> ...
>       (let ((paragraph-start (concat paragraph-start
> 				     "\\|\\s-*\\([(;:\"]\\|`(\\|#'(\\)"))
> ...

> Removing the colon leads to "expected" line breaking.

[...]

Would a patch to do this be welcome?

Lawrence