On 09/07/2014 08:17 AM, Eli Zaretskii wrote: >> Date: Sat, 06 Sep 2014 20:24:46 -0700 >> From: Daniel Colascione >> >> Mind just importing http://www.emacswiki.org/emacs/ntcmd.el into trunk? > > Would you mind some comments about it? Sorry --- I should have been more specific. I wrote ntcmd a while ago because I was frustrated with existing modes for working with batch files. ntcmd uses a parser to deal with cmd.exe's very weird syntax; it's important to do that because cmd's syntax is highly irregular and using regular font-lock patterns to match it is doomed --- in particular, matches involving loop variables are complicated. (See ntcmd-forward-generic-cmd and ntcmd-forward-for-cmd for some interesting special cases and fossilized cmd.exe bugs.)