unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: doc-view and auto-compression-mode
Date: Thu, 01 Nov 2007 20:32:17 +0100	[thread overview]
Message-ID: <87lk9hg3su.fsf@baldur.tsdh.de> (raw)
In-Reply-To: <v9640nx9n9.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Wed, 31 Oct 2007 22:21:46 +0100")

Reiner Steib <reinersteib+gmane@imap.cc> 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

  reply	other threads:[~2007-11-01 19:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 21:21 doc-view and auto-compression-mode Reiner Steib
2007-11-01 19:32 ` Tassilo Horn [this message]
2007-11-01 20:23   ` Reiner Steib
2007-11-01 20:54     ` Tassilo Horn
2007-11-05 21:03 ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lk9hg3su.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).