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

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

bug#5490: 23.1.91; CC Mode, after a while, everything is topmost-intro.


From: Jan Djärv
Subject: bug#5490: 23.1.91; CC Mode, after a while, everything is topmost-intro.
Date: Tue, 09 Feb 2010 13:45:35 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Ok, here are some answers.

Alan Mackenzie skrev:

OK.  Now some more details, please!

(i) Have you ever noticed this bug happening on earlier Emacsen, in
  particular Emacs 23.1?

No.

(ii) Does this bug happen every time you use Emacs this long, or only
  sometimes?  If the latter, how often (10%, 50%, 90%)?

100%.  If I just keep editing it eveentually breaks.

(iii) Do you think there might be any connection with some of the more
  unusual minor modes you've got switched on?  Things like
  auto-encryption mode?


No, this doesn't seem to have any effect.

When Emacs reaches this broken state:
(iv) Are all C(++) buffers in this state, or only some?  Any correlation
  with how many edits have been done on a buffer, or how long it's been
  loaded?

It is a pre buffer breakage. One buffer usually gets borken first, while the others are ok. It is the one that I've changed/edited the most in.

(v) What about indentation in a freshly loaded file?

No problem.

(vi) Will M-x c-mode or M-x c++-mode clear the problem?

Yes.

(vii) Does reverting (M-x revert-buffer) a file fix indentation?

No.

(viii) Does killing and reloading a file fix indentation?

Yes.

(ix) Does intentation gradually deteriorate at around 4 hours, or does it
  break suddenly?

Suddenly.

(x) Do all CC Mode buffers break at the same time, or is it a "creeping
  death"?

Only one at the time.


Just one other thing: Could you please post a dump of your CC Mode
configuration (C-c C-b in a C(++) buffer).  Thanks.


X-Reporter-Void-Vars-Found: auto-fill-mode (setq
 c-basic-offset 4
 c-comment-only-line-offset 0
 c-indent-comment-alist '((anchored-comment column . 0) (end-block space . 1)
                          (cpp-end-block space . 2))
 c-indent-comments-syntactically-p nil
 c-block-comment-prefix "* "
 c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (awk-mode . "#+")
                           (other . "//+\\|\\**"))
 c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc)
                       (c-mode . gtkdoc))
 c-cleanup-list '(defun-close-semi list-close-comma scope-operator)
 c-hanging-braces-alist '((substatement-open before after)
                          (brace-list-open before after)
                          (brace-list-intro after) (brace-list-entry)
                          (brace-list-close before after)
                          (block-close . c-snug-do-while))
 c-hanging-colons-alist '((access-label after) (case-label after)
                          (label after) (member-init-intro before)
                          (inher-intro))
 c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
 c-backslash-column 48
 c-backslash-max-column 72
 c-special-indent-hook nil
 c-label-minimum-indentation 1
 c-offsets-alist '((inexpr-class . c-lineup-inexpr-block)
                   (inexpr-statement . +)
                   (lambda-intro-cont . +)
                   (inlambda . c-lineup-inexpr-block)
                   (template-args-cont c-lineup-template-args +)
                   (incomposition . +)
                   (inmodule . +)
                   (innamespace . 0)
                   (inextern-lang . +)
                   (composition-close . 0)
                   (module-close . 0)
                   (namespace-close . 0)
                   (extern-lang-close . 0)
                   (composition-open . 0)
                   (module-open . 0)
                   (namespace-open . 0)
                   (extern-lang-open . 0)
                   (objc-method-call-cont
                    c-lineup-ObjC-method-call-colons
                    c-lineup-ObjC-method-call
                    +
                    )
                   (objc-method-args-cont . c-lineup-ObjC-method-args)
                   (objc-method-intro . [0])
                   (friend . 0)
                   (cpp-define-intro c-lineup-cpp-define +)
                   (cpp-macro-cont . +)
                   (cpp-macro . [0])
                   (inclass . +)
                   (stream-op . c-lineup-streamop)
                   (arglist-cont-nonempty
                    c-lineup-gcc-asm-reg
                    c-lineup-arglist
                    )
                   (arglist-cont c-lineup-gcc-asm-reg 0)
                   (comment-intro
                    c-lineup-knr-region-comment
                    c-lineup-comment
                    )
                   (catch-clause . 0)
                   (else-clause . 0)
                   (do-while-closure . 0)
                   (access-label . -1000)
                   (case-label . 0)
                   (substatement . +)
                   (statement-case-intro . +)
                   (statement . 0)
                   (brace-entry-open . 0)
                   (brace-list-entry . 0)
                   (brace-list-intro . +)
                   (brace-list-close . 0)
                   (block-close . 0)
                   (block-open . 0)
                   (inher-cont . c-lineup-multi-inher)
                   (inher-intro . +)
                   (member-init-cont . c-lineup-multi-inher)
                   (member-init-intro . +)
                   (topmost-intro . 0)
                   (knr-argdecl . 0)
                   (func-decl-cont . +)
                   (inline-close . 0)
                   (class-close . 0)
                   (class-open . 0)
                   (defun-block-intro . +)
                   (defun-close . 0)
                   (defun-open . 0)
                   (c . c-lineup-C-comments)
                   (string . c-lineup-dont-change)
                   (topmost-intro-cont . 0)
                   (brace-list-open . 0)
                   (inline-open . 0)
                   (arglist-close . c-lineup-arglist)
                   (arglist-intro . c-lineup-arglist)
                   (statement-cont . +)
                   (statement-case-open . 0)
                   (label . -1000)
                   (substatement-label . 2)
                   (substatement-open . 0)
                   (knr-argdecl-intro . +)
                   (statement-block-intro . +)
                   )
 c-buffer-is-cc-mode 'c++-mode
 c-tab-always-indent t
 c-syntactic-indentation t
 c-syntactic-indentation-in-macros t
 c-ignore-auto-fill '(string cpp code)
 c-auto-align-backslashes t
 c-backspace-function 'backward-delete-char-untabify
 c-delete-function 'delete-char
 c-electric-pound-behavior '(alignleft)
 c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "gnu"))
 c-enable-xemacs-performance-kludge-p nil
 c-old-style-variable-behavior nil
 defun-prompt-regexp nil
 tab-width 8
 comment-column 32
 parse-sexp-ignore-comments t
 parse-sexp-lookup-properties t
 auto-fill-function nil
 comment-multi-line t
 comment-start-skip "\\(//+\\|/\\*+\\)\\s *"
 fill-prefix nil
 fill-column 70
 paragraph-start "[        ]*\\(//+\\|\\**\\)[     ]*$\\|^\f"
 adaptive-fill-mode t
adaptive-fill-regexp "[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-!|#%;>*·•‣⁃◦]+[ ]*\\)*\\)"
 )

--text follows this line--


Emacs  : GNU Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2010-02-03 on cons1
Package: CC Mode 5.31.8 (C++/lah)
Buffer Style: JHD
c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties 1-bit)

        Jan D.






reply via email to

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