Attached is a diff to allow no-tab-mode to compile. It's basically the same as a diff sent to this list around 2 years ago minus enabling this mode by default.
-- James Turner ja...@calminferno.net Index: cmode.c =================================================================== RCS file: /cvs/src/usr.bin/mg/cmode.c,v retrieving revision 1.7 diff -u -p cmode.c --- cmode.c 18 Jan 2011 17:35:42 -0000 1.7 +++ cmode.c 16 May 2012 19:48:03 -0000 @@ -243,7 +243,7 @@ getindent(const struct line *lp, int *curi) break; if (c == '\t' #ifdef NOTAB - && !(curbp-b_flag & BFNOTAB) + && !(curbp->b_flag & BFNOTAB) #endif /* NOTAB */ ) { nicol |= 0x07; Index: random.c =================================================================== RCS file: /cvs/src/usr.bin/mg/random.c,v retrieving revision 1.30 diff -u -p random.c --- random.c 21 Jan 2011 19:10:13 -0000 1.30 +++ random.c 16 May 2012 19:48:03 -0000 @@ -378,7 +378,7 @@ indent(int f, int n) (void)gotobol(FFRAND, 1); if ( #ifdef NOTAB - curbp->b_flag & BFNOTAB) ? linsert(n, ' ') == FALSE : + (curbp->b_flag & BFNOTAB) ? linsert(n, ' ') == FALSE : #endif /* NOTAB */ (((i = n / 8) != 0 && linsert(i, '\t') == FALSE) || ((i = n % 8) != 0 && linsert(i, ' ') == FALSE)))