changeset 7678:3eb816e254e6

(c-fill-paragraph): Don't include part of comment terminator in the fill-prefix.
author Richard M. Stallman <rms@gnu.org>
date Wed, 25 May 1994 08:42:32 +0000
parents 431b1a011c29
children 5475c6144371
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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