From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++ Date: 04 Jul 2003 10:28:34 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057282171 26507 80.91.224.249 (4 Jul 2003 01:29:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2003 01:29:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 04 03:29:28 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19YFOC-0006tC-00 for ; Fri, 04 Jul 2003 03:29:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19YFWM-0001OB-00 for ; Fri, 04 Jul 2003 03:37:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YFOV-0005v0-Ca for emacs-devel@quimby.gnus.org; Thu, 03 Jul 2003 21:29:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19YFNt-0005Xy-TE for emacs-devel@gnu.org; Thu, 03 Jul 2003 21:29:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19YFNi-0004lx-FL for emacs-devel@gnu.org; Thu, 03 Jul 2003 21:29:02 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.214]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YFNa-0003mV-GI; Thu, 03 Jul 2003 21:28:50 -0400 Original-Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.194]) h641SaV02432; Fri, 4 Jul 2003 10:28:36 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate52.nec.co.jp [10.7.69.191]) by mailgate3.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h641Saw11689; Fri, 4 Jul 2003 10:28:36 +0900 (JST) Original-Received: from edtmg05.lsi.nec.co.jp ([10.26.17.202]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id h641SZ321123; Fri, 4 Jul 2003 10:28:35 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) id KAA23565; Fri, 4 Jul 2003 10:28:35 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) with ESMTP id h641SYNH011075; Fri, 4 Jul 2003 10:28:34 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id AC61337C2; Fri, 4 Jul 2003 10:28:34 +0900 (JST) Original-To: bug-cc-mode@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop X-Reporter-Void-Vars-Found: auto-fill-mode Original-Lines: 73 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15361 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15361 The new cc-awk mode seems to indent incorrectly on lines following a suffix `++' operator, e.g., the following is indented by the new awk-mode: { h++ print "foo" print "bar" } [This mode is generally brilliant, by the way -- now I can finally trust emacs to indent my awk programs, which simply wasn't possible before!] Thanks, -Miles Emacs : GNU Emacs 21.3.50.270 (i686-pc-linux-gnu) of 2003-07-04 on mcspd15 Package: CC Mode 5.30.1 (Message) Buffer Style: nil c-emacs-features: (posix-char-classes pps-extended-state col-0-paren gen-string-delim gen-comment-delim syntax-properties 1-bit) current state: ============== (setq c-basic-offset 'set-from-style c-comment-only-line-offset '(0 . 0) c-indent-comment-alist 'set-from-style c-indent-comments-syntactically-p 'set-from-style c-block-comment-prefix "" c-comment-prefix-regexp 'set-from-style c-doc-comment-style 'set-from-style c-cleanup-list 'set-from-style c-hanging-braces-alist 'set-from-style c-hanging-colons-alist 'set-from-style c-hanging-semi&comma-criteria 'set-from-style c-backslash-column 78 c-backslash-max-column 78 c-special-indent-hook nil c-label-minimum-indentation 'set-from-style c-offsets-alist nil c-buffer-is-cc-mode nil c-tab-always-indent nil 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 nil c-default-style '((java-mode . "java") (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 'do-auto-fill comment-multi-line nil comment-start-skip nil fill-prefix nil fill-column 72 paragraph-start "$\\|[ ]*$\\|-- $\\|---+$\\|^\f$\\|.*wrote:$\\|[ ]*\\(\\(> \\|\\w+>\\|[|:>]\\)[ ]*\\)+$\\|^-- $" adaptive-fill-mode t adaptive-fill-regexp "[ ]*\\(\\(> \\|\\w+>\\|[|:>]\\)[ ]*\\)+\\|[ ]*\\([-!|#%;>*]+[ ]*\\|(?[0-9]+[.)][ ]*\\)*" ) -- "1971 pickup truck; will trade for guns"