some changes for tcl flycheck and maxframe for EmacsMacPort