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)]
Filling multi-line comments in `css-mode' is broken. Consider for
instance the following comment:
/*
* Multi-line comment here.
* This comment spans
* multiple
* lines.
* Better fill it!
*/
Filling it with a `fill-column' of 70, I'd expect the following
result:
/*
* Multi-line comment here. This comment spans multiple lines.
* Better fill it!
*/
But as of now, what we get is this:
/* * Multi-line comment here. * This comment spans * multiple *
lines. * Better fill it! */
From this comment in `css-fill-paragraph', it sounds like it is
supposed to work, or has been working some time before:
;; Filling inside a comment whose comment-end marker is not \n.
;; This code is meant to be generic, so that it works not only for
;; css-mode but for all modes.
Could someone fill me in?
Alternatively, we could let `css-mode' borrow comment filling code
from `cc-mode', like `js-mode' and `js2-mode' do. Please let me know
if that would be an acceptable fix.
-- 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.