# HG changeset patch # User Richard M. Stallman # Date 769855352 0 # Node ID 3eb816e254e69420bd4fc0ede4b6c63acd420914 # Parent 431b1a011c29980f1aac3146469438a4401088a2 (c-fill-paragraph): Don't include part of comment terminator in the fill-prefix. diff -r 431b1a011c29 -r 3eb816e254e6 lisp/progmodes/c-mode.el --- a/lisp/progmodes/c-mode.el Wed May 25 06:00:06 1994 +0000 +++ b/lisp/progmodes/c-mode.el Wed May 25 08:42:32 1994 +0000 @@ -386,6 +386,11 @@ (point)))) (beginning-of-line) (skip-chars-forward " \t*" max-prefix-end) + ;; Don't include part of comment terminator + ;; in the fill-prefix. + (and (eq (following-char) ?/) + (eq (preceding-char) ?*) + (backward-char 1)) (point))) ;; If the comment is only one line followed by a blank