Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!bu-cs!bzs From: bzs@bu-cs.UUCP (Barry Shein) Newsgroups: net.emacs,net.text Subject: M-x spell buffer with TeX files Message-ID: <188@bu-cs.UUCP> Date: Fri, 21-Feb-86 20:36:35 EST Article-I.D.: bu-cs.188 Posted: Fri Feb 21 20:36:35 1986 Date-Received: Mon, 24-Feb-86 05:49:29 EST Organization: Boston Univ Comp. Sci. Lines: 22 Xref: linus net.emacs:1706 net.text:894 The easiest thing to do for checking spelling of TeX files is to get the detex command which I believe should have been on the TeX distribution tape (thanks to Howard Trickey) and add it to the spell pipeline (spell is a shell file so this is quite easy.) Adding it *before* deroff seemed to work better as deroff will remove \a-little-bit whilst detex will remove \word-to-delimiter more or less which should happen first. I suspect there are cases where this may not be ideal in which case someone might want to just make an xspell or some such which only detex's and leave the other alone and teach GNU emacs about the new command (I would just copy spell.el to xspell.el and change the relevant shell command in that file.) Or maybe it should check an environment variable and automagically do the right thing, or maybe GNU emacs should check if you are in some sort of TeX input mode and/or the file ends in .tex and choose which command seems best, or perhaps 'file' should be taught about TeX files and that could be used to decide, or maybe we should build an expert system to see if the content of your paper is even worthwhile to bother checking the spelling on, or... -Barry Shein, Boston University