bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CC Mode 5.28 (C++); comment-indent-newline does not insert a comm ent de


From: Van Valen,Joseph - LGA
Subject: CC Mode 5.28 (C++); comment-indent-newline does not insert a comm ent delimiter after the new line.
Date: Thu, 4 Oct 2001 18:11:52 -0400

int main()
{
        // This is line one of a comment



with the point at the end of the word "comment" execute "M-j" or"M-x
comment-indent-newline". Note that the a 
new line is created but the point is aligned with the first of the two
slashes of the previous line instead of 
inserting a new comment delimiter and aligning the point with the T of the
word "This" in the previous line as 
expected.

I am suspecting the cc-mode package for this because the other programming
modes I have tried execute this 
command properly (perl, elisp, makefiles, etc.).

Emacs  : GNU Emacs 21.0.105.1 (i386-msvc-nt5.0.2195)
 of 2001-09-06 on 1071521LGAD
Package: CC Mode 5.28 (C++)
Buffer Style: PERSONAL

c-emacs-features: (1-bit)

current state:
==============
(setq
 c-basic-offset 4
 c-comment-only-line-offset 0
 c-block-comment-prefix "* "
 c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (other .
"//+\\|\\**"))
 c-cleanup-list '(scope-operator defun-close-semi)
 c-hanging-braces-alist '((substatement-open before after) (brace-entry-open
before after)
                          (brace-list-open before after) (defun-open before
after) (defun-close before after)
                          (inline-open before after) (extern-lang-open
before after)
                          (extern-lang-close before after))
 c-hanging-colons-alist '((member-init-intro before) (inher-intro before)
(case-label after) (label after))
 c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
 c-backslash-column 48
 c-label-minimum-indentation 1
 c-offsets-alist '((string . +)
                   (c . ++)
                   (defun-open . 0)
                   (defun-close . 0)
                   (defun-block-intro . +)
                   (class-open . 0)
                   (class-close . 0)
                   (inline-close . 0)
                   (func-decl-cont . 0)
                   (knr-argdecl . +)
                   (topmost-intro . 0)
                   (topmost-intro-cont . +)
                   (member-init-intro . +)
                   (member-init-cont . +)
                   (inher-intro . +)
                   (inher-cont . c-lineup-multi-inher)
                   (block-open . 0)
                   (block-close . 0)
                   (brace-list-close . 0)
                   (brace-list-intro . +)
                   (brace-list-entry . +)
                   (brace-entry-open . 0)
                   (statement . 0)
                   (statement-case-intro . +)
                   (substatement . +)
                   (case-label . 0)
                   (access-label . --)
                   (do-while-closure . 0)
                   (else-clause . 0)
                   (catch-clause . 0)
                   (comment-intro . 0)
                   (arglist-cont . 0)
                   (arglist-cont-nonempty . c-lineup-arglist)
                   (stream-op . +)
                   (inclass . +)
                   (cpp-macro . 0)
                   (cpp-macro-cont . c-lineup-dont-change)
                   (friend . 0)
                   (objc-method-intro . +)
                   (objc-method-args-cont . +)
                   (objc-method-call-cont . +)
                   (extern-lang-open . 0)
                   (extern-lang-close . 0)
                   (inextern-lang . +)
                   (namespace-open . 0)
                   (namespace-close . 0)
                   (innamespace . 0)
                   (template-args-cont c-lineup-template-args +)
                   (inlambda . c-lineup-inexpr-block)
                   (lambda-intro-cont . +)
                   (inexpr-statement . 0)
                   (inexpr-class . +)
                   (statement-block-intro . +)
                   (knr-argdecl-intro . +)
                   (substatement-open . 0)
                   (label . 0)
                   (statement-case-open . 0)
                   (statement-cont . +)
                   (arglist-intro . ++)
                   (arglist-close . +)
                   (inline-open . 0)
                   (brace-list-open . 0)
                   )
 c-delete-function 'delete-char
 c-electric-pound-behavior nil
 c-indent-comments-syntactically-p nil
 c-tab-always-indent t
 defun-prompt-regexp nil
 tab-width 4
 comment-column 70
 parse-sexp-ignore-comments t
 auto-fill-function nil
 comment-multi-line t
 comment-start-skip "/\\*+ *\\|//+ *"
 fill-prefix nil
 paragraph-start "[     ]*\\(//+\\|\\**\\)[     ]*$\\|^\f"
 adaptive-fill-mode t
 adaptive-fill-regexp "[        ]*\\(//+\\|\\**\\)[     ]*\\([
]*\\([-|#;>*]+[         ]*\\|(?[0-9]+[.)][      ]*\\)*\\)"
 )



Thanks!

Joseph Van Valen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]