[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please install: Some improvements to doc-view.el
From: |
Juri Linkov |
Subject: |
Re: Please install: Some improvements to doc-view.el |
Date: |
Wed, 10 Oct 2007 00:55:29 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>> I think Gnus mechanism is irrelevant to doc-view. Gnus uses mailcap
>> mechanisms to find the appropriate mailcap entry and run an external
>> program in a separate process. doc-view displays the rendered image
>> in the Emacs buffer. So it could work exactly as image-mode for
>> pdf/ps/dvi files.
>
> Ok, that sounds reasonable to me and I'm willing to implement it. If I
> understand correctly, I have to add entries to `auto-mode-alist' and
> change `doc-view-mode' so that it calls `doc-view' for the current
> `buffer-file-name' plus a binding `C-c C-c' to toggle between the
> rendered image presentation and the text representation. Is that
> correct?
Yes, this seems to be correct. And also please don't forget to display
a message in the echo area saying how the user can switch to text-only
mode, something like:
Type C-c C-c to view the document as source text.
> One problem I see: Should `doc-view' called with NO-CACHE set to t?
> Personally I prefer calling (doc-view nil file) and adding a binding to
> the mode to reconvert the document.
Maybe, adding a binding like `g' (usually used to revert/refresh the buffer)
will help doing this.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Please install: Some improvements to doc-view.el, (continued)
- Re: Please install: Some improvements to doc-view.el, Michaƫl Cadilhac, 2007/10/03
- Re: Please install: Some improvements to doc-view.el, Tassilo Horn, 2007/10/04
- Re: Please install: Some improvements to doc-view.el, Richard Stallman, 2007/10/05
- Re: Please install: Some improvements to doc-view.el, Tassilo Horn, 2007/10/05
- Re: Please install: Some improvements to doc-view.el, Tassilo Horn, 2007/10/06
- Re: Please install: Some improvements to doc-view.el, Juri Linkov, 2007/10/06
- Re: Please install: Some improvements to doc-view.el, Sascha Wilde, 2007/10/08
- Re: Please install: Some improvements to doc-view.el, Tassilo Horn, 2007/10/08
- Re: Please install: Some improvements to doc-view.el, Juri Linkov, 2007/10/08
- Re: Please install: Some improvements to doc-view.el, Tassilo Horn, 2007/10/09
- Re: Please install: Some improvements to doc-view.el,
Juri Linkov <=
- Doc-view as default viewer for pdf, ps and dvi files (was: Please install: Some improvements to doc-view.el), Tassilo Horn, 2007/10/10
- Re: Doc-view as default viewer for pdf, ps and dvi files (was: Please install: Some improvements to doc-view.el), Richard Stallman, 2007/10/11
- Re: Doc-view as default viewer for pdf, ps and dvi files, Tassilo Horn, 2007/10/12
- Re: Doc-view as default viewer for pdf, ps and dvi files, Richard Stallman, 2007/10/12
- Re: Doc-view as default viewer for pdf, ps and dvi files, Tassilo Horn, 2007/10/13
- Re: Doc-view as default viewer for pdf, ps and dvi files, Richard Stallman, 2007/10/13
- Re: Doc-view as default viewer for pdf, ps and dvi files, Juri Linkov, 2007/10/17
- Re: Doc-view as default viewer for pdf, ps and dvi files, Tassilo Horn, 2007/10/18
- Re: Doc-view as default viewer for pdf, ps and dvi files, Tassilo Horn, 2007/10/18
- Re: Please install: Some improvements to doc-view.el, Richard Stallman, 2007/10/07