From: Stefan Monnier Date: Sun, 19 Jan 2003 00:19:44 +0000 (+0000) Subject: (fill-comment-paragraph): Fix simplistic regexp-concatenation. X-Git-Tag: ttn-vms-21-2-B4~11591 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ffb6ced1ce4324a1ef7a1a1cef3bc2de58865a0e;p=emacs.git (fill-comment-paragraph): Fix simplistic regexp-concatenation. --- diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 111cc10ab35..f58a2bb53cc 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -807,7 +807,7 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'." (looking-at comment-re))) ;; We may have gone too far. Go forward again. (line-beginning-position - (if (looking-at (concat ".*" comment-start-skip)) + (if (looking-at (concat ".*\\(?:" comment-start-skip "\\)")) 1 2)))) ;; Find the beginning of the first line past the region to fill. (save-excursion