Xref: utzoo comp.emacs:10004 comp.text.tex:5164 gnu.emacs.help:1065 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!klein.msri.org!rdong From: rdong@klein.msri.org (Rui-Tao Dong ­ΘΜ) Newsgroups: comp.emacs,comp.text.tex,gnu.emacs.help Subject: Ispelling in emacs Summary: ispell, tex, latex, detex, emacs Keywords: ispell, tex, latex, detex, emacs Message-ID: <9504@dog.ee.lbl.gov> Date: 4 Feb 91 18:29:50 GMT Reply-To: rdong@klein.msri.org (Rui-Tao Dong ­ΘΜ) Organization: Mathematical Sciences Research Institute, Berkeley Lines: 35 X-Local-Date: Mon, 4 Feb 91 10:29:51 PST I have been using ispell in emacs for a while. It works great. However, I have problem w/ detex. Like every mathematician, I use TeX a lot. I would like to have emacs detex ( or delatex ) before it does ispell. I looked at the LISP codes in ispell.el (although I don't know any LISP.) and replaced "tr" by "detex". It works fine for TeX files, but causes trouble for non-tex file. Every time it encounters a "$", detex thinks it as the beginning of a mathemtical formula and looks for the match "$" at the end, which it can't find. My questions are: a) Is there a newer version of ispell.el which fixes this problem? b) If not, can some LISP experts on the net hack ispell.el and fix it. What I like to have is that when emacs is in TeX (or LaTeX) mode, it will switch on detex. Otherwise, it will do ispell directly. I have seen a LISP version of detex. I don't know if it's better than the unix detex. Thank! ------------------------------------------------------------------------- Rui - Tao Dong | (415) 237 - 7628 (H) 110 Lakeshore Court | (415) 643 - 6048 (O) Richmond, CA 94804 | rdong@borel.msri.org -- Regards, -------------------------------------------------------------------------