bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chong Yidong
Subject: bug#7751: 24.0.50; `fill-paragraph' on doc string with colons
Date: Fri, 17 Feb 2012 22:13:20 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Lawrence Mitchell <wence@gmx.li> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]