* view .docx files as text?
@ 2009-08-22 3:11 knubee
2009-08-22 8:17 ` rpd
[not found] ` <mailman.5120.1250929049.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: knubee @ 2009-08-22 3:11 UTC (permalink / raw)
To: help-gnu-emacs
i currently use a combination of no-word.el and antiword to view .doc
files as text. unfortunately, the latest version of no-word.el seems
to be from 2002 and does not handle .docx files.
does anyone know of an existing solution for viewing .docx files as
text in an emacs buffer? (note: i don't need anything complicated for
conversion, etc. -- but sometimes i just need to be able to quickly
scan/read the contents of .docx files.)
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: view .docx files as text?
2009-08-22 3:11 view .docx files as text? knubee
@ 2009-08-22 8:17 ` rpd
[not found] ` <mailman.5120.1250929049.2239.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: rpd @ 2009-08-22 8:17 UTC (permalink / raw)
To: Help-gnu-emacs
Hi knubee
I am sorry I do not know the answer to view .docx as text but I would like
your help please to show me how to use no-word.el with antiword to view .doc
files!?
This is my .emacs code but I keep getting a message saying 'antiword' is not
recognized as an internal or external command, operable program or batch
file.
<<<<<
;;;;==========View .DOC with no-word.el & antiword====================
;;;
;;requires antiword
(add-to-list 'exec-path "C:\\antiword\\antiword.exe")
;(require 'antiword)
(load "C:\\Users\\Dad\\Emacs\\emacsaddons\\no-word.el")
(autoload 'no-word "no-word" "word to txt")
(add-to-list 'auto-mode-alist '("\\.doc\\'" . no-word))
;==
>>>>
I am grateful for any help with this, many thanks
knubee wrote:
>
> i currently use a combination of no-word.el and antiword to view .doc
> files as text. unfortunately, the latest version of no-word.el seems
> to be from 2002 and does not handle .docx files.
>
> does anyone know of an existing solution for viewing .docx files as
> text in an emacs buffer? (note: i don't need anything complicated for
> conversion, etc. -- but sometimes i just need to be able to quickly
> scan/read the contents of .docx files.)
>
> thanks.
>
>
--
View this message in context: http://www.nabble.com/view-.docx-files-as-text--tp25090346p25091664.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: view .docx files as text?
[not found] ` <mailman.5120.1250929049.2239.help-gnu-emacs@gnu.org>
@ 2009-08-22 10:25 ` knubee
2009-08-22 11:22 ` rpd
0 siblings, 1 reply; 4+ messages in thread
From: knubee @ 2009-08-22 10:25 UTC (permalink / raw)
To: help-gnu-emacs
> your help please to show me how to use no-word.el with antiword to view .doc
> files!?
i don't use win32, but i believe you only need the following:
(autoload 'no-word "no-word" "word to txt")
(add-to-list 'auto-mode-alist '("\\.doc\\'" . no-word))
(add-to-list 'exec-path "C:\\antiword\\")
the last line differs from yours. it does not include the actual
executable -- just the path to the directory where it resides.
hth.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: view .docx files as text?
2009-08-22 10:25 ` knubee
@ 2009-08-22 11:22 ` rpd
0 siblings, 0 replies; 4+ messages in thread
From: rpd @ 2009-08-22 11:22 UTC (permalink / raw)
To: Help-gnu-emacs
Hi
Thanks for your reply.
Unfortunately your code didn't work as it threw this error msg:
Debugger entered--Lisp error: (file-error "Cannot open load file" "no-word")
no-word()
set-auto-mode-0(no-word nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer Charlie missing - slips 14 03 09.doc>
"~/Documents/Charlie missing - slips 14 03 09.doc" nil nil
"~/Documents/Charlie missing - slips 14 03 09.doc" (55748 (22774 . 28458)))
find-file-noselect("c:/Users/Dad/Documents/Charlie missing - slips 14 03
09.doc" nil nil nil)
find-file("c:/Users/Dad/Documents/Charlie missing - slips 14 03 09.doc")
find-file-existing("c:/Users/Dad/Documents/Charlie missing - slips 14 03
09.doc")
menu-find-file-existing()
call-interactively(menu-find-file-existing)
When I try loading no-word.el it still doesn't work- I get a command in
minibuffer about coding(default) & if I [ret] then I get this error msg:
'antiword' is not recognized as an internal or external command,
operable program or batch file.
I have also placed no-word.el in emacs/site-lisp directory but I still get
the same error message.
I wonder if you or anyone else can offer some more help please?
knubee wrote:
>
>> your help please to show me how to use no-word.el with antiword to view
>> .doc
>> files!?
>
> i don't use win32, but i believe you only need the following:
>
> (autoload 'no-word "no-word" "word to txt")
> (add-to-list 'auto-mode-alist '("\\.doc\\'" . no-word))
> (add-to-list 'exec-path "C:\\antiword\\")
>
> the last line differs from yours. it does not include the actual
> executable -- just the path to the directory where it resides.
>
> hth.
>
>
--
View this message in context: http://www.nabble.com/view-.docx-files-as-text--tp25090346p25092917.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-22 11:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22 3:11 view .docx files as text? knubee
2009-08-22 8:17 ` rpd
[not found] ` <mailman.5120.1250929049.2239.help-gnu-emacs@gnu.org>
2009-08-22 10:25 ` knubee
2009-08-22 11:22 ` rpd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).