Emilia Smólska <[email protected]> wrote: > An improved (I think) version of the diff by op@, making the keywords > string+length pairs as the length is known at compile time, and also removing > an unnecessary "clever" hack that indented once for every brace on the line, > which shouldn't happen in practice with well-formatted code.
this looks fine to me; i plan to commit it this week unless someone disagrees strongly about it :-) > [...] > I think there are unfortunately more issues with c-mode that would require > changing a lot of the code -- for instance, getting the indentation of lines > following an unbraced statement correct would require (i think) looking back > more than one line, which the current code isn't doing (correct me if that's > not the case). Also, the indentation heuristics often "get confused" with > syntax like structure initializers... Worst of all, it's impossible to input > a tab in the middle of a line without using M-x insert, which makes it hard > to write KNF-style prototypes or structures, both of which use tabs. > > C-mode seems very hacky in general and the annoyances outweigh the benefits, > but I'm going to try to improve some of the issues if I find the time and > send patches eventually. can understand the feeling, I've been using mg for *a lot* of time, and I've learn to overcome some limitations. But I'm happy to see it getting better bit by bit, and also I'm happy to help and review diffs for it. Thanks!
