From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.emacs.bugs Subject: bug#20778: Flush left indentation in c-mode Date: Tue, 09 Jun 2015 09:49:15 -0700 Message-ID: <5577190B.4000003@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433868630 22228 80.91.229.3 (9 Jun 2015 16:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 16:50:30 +0000 (UTC) To: 20778@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 18:50:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z2MjB-0003Wj-0f for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 18:50:17 +0200 Original-Received: from localhost ([::1]:36291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MjA-0000kP-Fc for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 12:50:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Mj5-0000kC-EK for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:50:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2Miz-0000nX-Pu for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:50:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Miz-0000ly-IX for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:50:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z2Miz-0002SD-2v for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:50:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bruce Korb Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jun 2015 16:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14338685729383 (code B ref -1); Tue, 09 Jun 2015 16:50:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jun 2015 16:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:46420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2MiR-0002RH-BE for submit@debbugs.gnu.org; Tue, 09 Jun 2015 12:49:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48845) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2MiP-0002R1-48 for submit@debbugs.gnu.org; Tue, 09 Jun 2015 12:49:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2MiI-0000Ls-Kh for submit@debbugs.gnu.org; Tue, 09 Jun 2015 12:49:23 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MiI-0000Ln-Hv for submit@debbugs.gnu.org; Tue, 09 Jun 2015 12:49:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MiH-0000cV-Jc for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:49:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2MiE-0000KP-9w for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:49:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2MiE-0000KI-6v for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:49:18 -0400 Original-Received: from adsl-75-18-229-172.dsl.pltn13.sbcglobal.net ([75.18.229.172]:56724 helo=[172.16.16.2]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1Z2MiD-0005QH-QU for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 12:49:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103773 Archived-At: With the patched cc-mode, I ran into this situation again. It seems to think that the flush-left alignment of the "if" statement is fine. The rest of the code indents as you see here. Reloading cc-mode does no good, it leaves the statement flush left. Closing and re-visiting the file cleans up the confusion and re-indents correctly. I do not know what you can do about it without better information from me, but I don't know what to tell you either. :( Oh, the "c-file-style" is "linux". > void ftl_ns_print(void) > { > #if MAX_EVENT_EVT_PRIORITY >= LOG_DEBUG > int skip_ct = 0; > > for (int i = 0; i < s_ns_table.nst_count; i++) { > struct ftl_ns_t * const ns_p = &s_ns_table.nst_ns_list[i]; > > if (ns_p->active_ns_id == NS_ID_NULL) { > skip_ct++; > continue; > } > > EMIT_PRINT_NS_EVENT( > debug, "ns_id=%d, flags=%u, active_ns_id=%d, parent_ns_id=%d, next_snapshot_ns_id=%d, " > "snapshot_sn=%u, size_byte=%lu, used_bytes=%lu, physical_used_bytes=%lu, max_lpn=%lu, " > "creation_io_id=%lu, snapshot_sn_seq=%u\n", > sint32, ns_p->ns_id, > uint32, ns_p->flags, > sint32, ns_p->active_ns_id, > sint32, ns_p->parent_ns_id, > sint32, ns_p->next_snapshot_ns_id, > uint32, ns_p->snapshot_sn, > uint64, ns_p->size_bytes, > uint64, ns_p->used_bytes, > uint64, ns_p->physical_used_bytes, > uint64, ns_p->max_lpn, > uint64, ns_p->creation_io_id, > uint32, ns_p->snapshot_sn_seq > ); > } > > if (skip_ct > 0) > EMIT_SKIPPED_NS_EVENT(debug, "skipped %d empty name spaces", sint32, skip_ct); > #endif > }