I've made good progress with programming by speech but I'm getting hung up by a bug I can't figure out how to debug. Folks in IRC have been helpful but still not quite there.
The way this portion of code words is that I say something, the grammar is recognized, then I tell Emacs to do something, which usually ends in putting the text I need in a temporary file. The macro does some processing on the text and refills the temporary file with the processed text. The macro then tells Emacs to read the text file, in this case into a narrow region.
For some reason, I'm getting an error when bringing the modified text back into Emacs. The two paste bins should contain all the information you need. For the actual system code, take a look at github for project togglename
This first link contains the error and the speech macro used to drive the entire processhttp://pastebin.com/6GRNPEDL
The second link contains the contents of the file postprocessing. You can tell because of all the little !!unknows scattered throughout the file.http://pastebin.com/3emW46Ly
any help figuring out what the hell is going on would be greatly appreciated.