Does anyone know how to disable/stop doc-view mode from attempting to convert files when you are in dired and you hit view-file on a ps, pdf, file? I seem to remember there was a variable you could set to disable doc-view mode, but I cna't find it and there is nothing in the manual about disabling it.
Klaus Straubinger <KSN...@UseNet.ArcorNews.DE> writes: > Tim X <t...@nospam.dev.null> wrote:
>> Does anyone know how to disable/stop doc-view mode from attempting to >> convert files when you are in dired and you hit view-file on a ps, pdf, >> file?
> (rassq-delete-all #'doc-view-mode auto-mode-alist) did help for me, > at least in Emacs 23.1. This rather radical solution disables all > automatic choices of doc-view-mode, i.e., also for normal file opening.
Thanks Klaus. that was all I had come up with as well. Seems it may be the way to go if no other suggestions come up.
Tim X <t...@nospam.dev.null> writes: > Does anyone know how to disable/stop doc-view mode from attempting to > convert files when you are in dired and you hit view-file on a ps, pdf, > file?
I'm a bit curious. Which mode would you expect when trying to view an ps/pdf/dvi file in emacs?
>>> Does anyone know how to disable/stop doc-view mode from attempting to >>> convert files when you are in dired and you hit view-file on a ps, pdf, >>> file? >> I'm a bit curious. Which mode would you expect when trying to view an >> ps/pdf/dvi file in Emacs? > For PostScript, I would expect ps-mode, of course: > | (ps-mode) > | Major mode for editing PostScript with GNU Emacs.
I don't know about you, but that's what I get by default (and I can then view it with doc-view via C-c C-c).
> Unfortunately, there are no specialized modes for editing PDF and DVI > files, so I would expect that a default mode for viewing binary files > is chosen.
You could use find-file-literally for that. Or of course
Tassilo Horn <tass...@member.fsf.org> writes: > Tim X <t...@nospam.dev.null> writes:
>> Does anyone know how to disable/stop doc-view mode from attempting to >> convert files when you are in dired and you hit view-file on a ps, pdf, >> file?
> I'm a bit curious. Which mode would you expect when trying to view an > ps/pdf/dvi file in emacs?
I have my own conversion mode which I've been running for the past 9 years. The image rendering of files is of no use to me - I need the files converted into plain text. Unfortunately, the two are treading on each others toes. I know that I would probably be able to do something with doc-view mode to give me what I want, but the mode I've written also handles doc, docx, xls and ppt, plus integrates with browse-url so that if I try to view-file on any of these types, it gives me a text rendering that I can use. It is also a lot faster than doc-view.
I need it in text because I use emacspeak and it won't work with images.
On Friday, December 4, 2009 8:37:38 AM UTC-5, Tassilo Horn wrote:
> Tim X <t...@nospam.dev.null> writes:
> > Does anyone know how to disable/stop doc-view mode from attempting to
> > convert files when you are in dired and you hit view-file on a ps, pdf,
> > file?
> I'm a bit curious. Which mode would you expect when trying to view an
> ps/pdf/dvi file in emacs?
On Friday, December 4, 2009 8:37:38 AM UTC-5, Tassilo Horn wrote:
> Tim X <t...@nospam.dev.null> writes:
> > Does anyone know how to disable/stop doc-view mode from attempting to
> > convert files when you are in dired and you hit view-file on a ps, pdf,
> > file?
> I'm a bit curious. Which mode would you expect when trying to view an
> ps/pdf/dvi file in emacs?
(Remove types you don't want to be touched by this customisation!)
Anyway, with C-c you can switch back to "ASCII" (and forth) and when you're fast enough (or your computer is slow) you can stop doc-view-mode from doing the conversion.
You can also use M-x find-file-literally RET. Or of course use C-c C-c
to switch from doc-view-mode to the "other" mode (ps-mode,
fundamental-mode, ...).
> You can also use M-x find-file-literally RET. Or of course use C-c C-c
> to switch from doc-view-mode to the "other" mode (ps-mode,
> fundamental-mode, ...).