GNU bug report logs -
#20256
25.0.50; css-mode: filling multi-line comments
Previous Next
Reported by: Simen Heggestøyl <simenheg <at> gmail.com>
Date: Sat, 4 Apr 2015 13:51:02 UTC
Severity: minor
Found in version 25.0.50
Done: Simen Heggestøyl <simenheg <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Mon, Apr 27, 2015 at 6:11 AM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> +(defun prog-fill-paragraph (&optional justify)
> [...]
>> + ;; Filling inside a comment whose comment-end marker is not
>> + ;; \n. This code is meant to be generic, so that it works
>> for
>> + ;; all modes.
>
> Hmm... so the code doesn't handle the case of comments that end with
> \n?
>
>
> Stefan
No, I don't think so. When the comment-end marker is \n,
`forward-comment' will leave point at the beginning of the next line,
causing the whole filling code to be skipped. Even when tweaking the
predicate so that the code is run anyway, it doesn't fill the comment
properly. Was it ever intended to do so? I assumed from the comment
that you quoted that it wasn't.
Those kinds of comments seem to be handled well by the default
`fill-paragraph', though.
-- Simen
[Message part 2 (text/html, inline)]
This bug report was last modified 10 years and 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.