Commit 2a096caf authored by Michaël Cadilhac's avatar Michaël Cadilhac
Browse files

(fill-comment-paragraph): Prevent the use of an optimized comment regexp if

`comment-start-skip' uses a ^.
parent 90dd8ef0
2006-12-24 Michal Cadilhac <michael.cadilhac@lrde.org>
* textmodes/fill.el (fill-comment-paragraph): Prevent the use of
an optimized comment regexp if `comment-start-skip' uses a ^.
2006-12-24 Michal Cadilhac <michael.cadilhac@lrde.org>
 
* bs.el (bs--up): Remove interactive spec.
......@@ -838,7 +838,7 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'."
(commark
(comment-string-strip (buffer-substring comstart comin) nil t))
(comment-re
(if (string-match comment-start-skip (concat commark "a"))
(if (string-match comment-start-skip (concat "\0" commark "a"))
(concat "[ \t]*" (regexp-quote commark)
;; Make sure we only match comments that use
;; the exact same comment marker.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment