[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc-view and auto-compression-mode
From: |
Tassilo Horn |
Subject: |
Re: doc-view and auto-compression-mode |
Date: |
Thu, 01 Nov 2007 20:32:17 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Reiner Steib <address@hidden> writes:
Hi Reiner,
> $ echo foo | a2ps | gzip > /tmp/foo.ps.gz
> [stdin (plain): 1 page on 1 sheet]
> [Total: 1 page on 1 sheet] sent to the standard output
> $ emacs -Q /tmp/foo.ps.gz
>
> In Emacs do `C-c C-c' to view the PS file as image. I get the
> following error:
>
> ,----
> | For information about GNU Emacs and the GNU system, type C-h C-a.
> | uncompressing foo.ps.gz...done
> | Type C-c C-c to toggle between editing or viewing the document. [2 times]
> | DocView: converter process changed status to exited abnormally with code 1
> | .
> `----
The problem is that doc-view simply converts `buffer-file-name', not the
buffer contents, so in case of a compressed document it would be better
to save the uncompressed buffer contents to the cache directory and
convert that. Is there a better way to check if the file associated
with the current buffer is compressed instead of the file name
extension?
Bye,
Tassilo
- Re: doc-view and auto-compression-mode,
Tassilo Horn <=