help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing PDFs as text?


From: Tassilo Horn
Subject: Re: Viewing PDFs as text?
Date: Thu, 13 Mar 2008 10:29:59 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Bastien <bzg@altern.org> writes:

Hi Bastien,

> I tried it and found this problem: when the buffer is already
> converted C-c C-t on it will fail because it tries to create a
> directory that does already exist.
>
> ,----
> | (defun doc-view-doc->txt (txt callback)
> |   "Convert the current document to text and call CALLBACK when done."
> |   (make-directory (doc-view-current-cache-dir))
> `----
>
> A check before making this directory is enough to make it work ok
> here, but you know the code better than I do.

That shouldn't happen.

,----[ C-h f make-directory RET ]
| make-directory is an interactive compiled Lisp function in `files.el'.
| 
| (make-directory dir &optional parents)
| 
| Create the directory dir and any nonexistent parent dirs.
| If dir already exists as a directory, do nothing.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

Are you sure this is the place the error is thrown?

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]