[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: |
Lawrence Mitchell |
Subject: |
bug#7751: 24.0.50; `fill-paragraph' on doc string with colons |
Date: |
Fri, 17 Feb 2012 12:55:28 +0000 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) |
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
- bug#7751: 24.0.50; `fill-paragraph' on doc string with colons,
Lawrence Mitchell <=