comparison lisp/progmodes/c-mode.el @ 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 51a7a67cd4c2
children b2cfcc126dac
comparison
equal deleted inserted replaced
7677:431b1a011c29 7678:3eb816e254e6
384 (calculate-c-indent-within-comment t) 384 (calculate-c-indent-within-comment t)
385 t) 385 t)
386 (point)))) 386 (point))))
387 (beginning-of-line) 387 (beginning-of-line)
388 (skip-chars-forward " \t*" max-prefix-end) 388 (skip-chars-forward " \t*" max-prefix-end)
389 ;; Don't include part of comment terminator
390 ;; in the fill-prefix.
391 (and (eq (following-char) ?/)
392 (eq (preceding-char) ?*)
393 (backward-char 1))
389 (point))) 394 (point)))
390 395
391 ;; If the comment is only one line followed by a blank 396 ;; If the comment is only one line followed by a blank
392 ;; line, calling move-to-column above may have added 397 ;; line, calling move-to-column above may have added
393 ;; some spaces and tabs to the end of the line; the 398 ;; some spaces and tabs to the end of the line; the