From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.help Subject: Re: MS Word mode? Date: Fri, 08 Nov 2002 00:40:15 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87fzudc5k0.fsf@emacswiki.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036714240 10786 80.91.224.249 (8 Nov 2002 00:10:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 00:10:40 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 189wjM-0002na-00 for ; Fri, 08 Nov 2002 01:10:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 189waH-0003qq-00; Thu, 07 Nov 2002 19:01:13 -0500 Original-Newsgroups: gnu.emacs.help X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i Original-Lines: 20 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.92 (i686-pc-linux-gnu) Cancel-Lock: sha1:sRrVCvHgVSUXhq5nKOgszL7eFB0= Original-NNTP-Posting-Host: 217.162.237.77 Original-X-Trace: news.swissonline.ch 1036712133 217.162.237.77 (8 Nov 2002 00:35:33 +0200) Original-X-Complaints-To: abuse@swissonline.ch Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!feeder.via.net!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news.imp.ch!news.imp.ch!news-zh.switch.ch!news.swissonline.ch!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:106828 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3383 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3383 Roger Mason writes: > There was a question about this recently on this forum. Look for > undoc.el, I got it from the wiki (I think). It has worked very well for > me to date, although I have not attempted ro read complex documents. Well, it makes things readable, but it is far from perfect -- it seems to just delete any non-ascii characters, such that sometimes you will see words such as "Alex8" where "8" is some garbage that just looked like being part of a real word... In other words, interfacing to something like catdoc, antiword, or wvText (included with AbiWord) might be cool. Actually all you need is this: (add-to-list 'auto-mode-alist '("\\.doc\\'" . no-word)) (defun no-word () "Run antiword on the entire buffer." (shell-command-on-region (point-min) (point-max) "antiword - " t t)) Alex.