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

From: Chong Yidong <[email-masked]>
Date: Fri, 17 Feb 2012 22:13:20 +0800

Lawrence Mitchell <[email-masked]> writes:

>> 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?

As explained in the comments in that file, the colon is there so that
forms like

(defcustom foo nil
  :bar 3)

Don't get refilled to

(defcustom foo nil :bar 3)

when you type M-q.  The effect on docstrings containing colons is
unfortunate, but simply removing the colon from the regexp would be
incorrect.