unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20778: Flush left indentation in c-mode
@ 2015-06-09 16:49 Bruce Korb
       [not found] ` <mailman.4701.1433868613.904.bug-gnu-emacs@gnu.org>
  2015-06-26 21:24 ` Bruce Korb
  0 siblings, 2 replies; 6+ messages in thread
From: Bruce Korb @ 2015-06-09 16:49 UTC (permalink / raw)
  To: 20778


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
> }





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-14 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09 16:49 bug#20778: Flush left indentation in c-mode Bruce Korb
     [not found] ` <mailman.4701.1433868613.904.bug-gnu-emacs@gnu.org>
2015-06-10 11:00   ` Alan Mackenzie
2015-06-12 14:55     ` Bruce Korb
2015-06-26 21:24 ` Bruce Korb
2021-08-16 13:05   ` Lars Ingebrigtsen
2021-09-14 10:54     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).