diff options
| author | Richard M. Stallman <rms@gnu.org> | 1994-05-25 08:42:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1994-05-25 08:42:32 +0000 |
| commit | 84f4e2168f12f97db4b0d03242f12a18948bf190 (patch) | |
| tree | cea451cdb849307037e4b387a45a22954300a424 | |
| parent | 47ba05ac9ce59f5959f24c82d9ccccaa4e633a30 (diff) | |
| download | emacs-84f4e2168f12f97db4b0d03242f12a18948bf190.tar.gz | |
(c-fill-paragraph): Don't include part of comment
terminator in the fill-prefix.
| -rw-r--r-- | lisp/progmodes/c-mode.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 91016c99b9b..a2478b6edfa 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -386,6 +386,11 @@ preserving the comment indentation or line-starting decorations." (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 |
