GNU bug report logs - #7751
24.0.50; `fill-paragraph' on doc string with colons

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Tue, 28 Dec 2010 20:39:01 UTC

Severity: minor

Tags: fixed

Found in version 24.0.50

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 7751 <at> debbugs.gnu.org (full text, mbox):

From: Lawrence Mitchell <wence <at> gmx.li>
To: 7751 <at> debbugs.gnu.org
Subject: Re: bug#7751: 24.0.50; `fill-paragraph' on doc string with colons
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




This bug report was last modified 8 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.