Hi tech -- Diff below adds the bounce matching for [] and {} in mg like it does for (). I miss having that from GNU Emacs, anyone else?
OK? ~Brian Index: keymap.c =================================================================== RCS file: /cvs/src/usr.bin/mg/keymap.c,v retrieving revision 1.51 diff -u -p -r1.51 keymap.c --- keymap.c 22 May 2013 19:23:45 -0000 1.51 +++ keymap.c 13 Aug 2014 22:49:08 -0000 @@ -388,16 +388,16 @@ static PF fund_del[] = { }; static PF fund_cb[] = { - showmatch /* ) */ + showmatch /* ) ] } */ }; #ifndef FUND_XMAPS #define NFUND_XMAPS 0 /* extra map sections after normal ones */ #endif -static struct KEYMAPE (6 + NFUND_XMAPS + IMAPEXT) fundmap = { - 6 + NFUND_XMAPS, - 6 + NFUND_XMAPS + IMAPEXT, +static struct KEYMAPE (8 + NFUND_XMAPS + IMAPEXT) fundmap = { + 8 + NFUND_XMAPS, + 8 + NFUND_XMAPS + IMAPEXT, selfinsert, { { @@ -414,6 +414,12 @@ static struct KEYMAPE (6 + NFUND_XMAPS + }, { ')', ')', fund_cb, NULL + }, + { + ']', ']', fund_cb, NULL + }, + { + '}', '}', fund_cb, NULL }, { CCHR('?'), CCHR('?'), fund_del, NULL