[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc-view.el: make-directory
From: |
Tassilo Horn |
Subject: |
Re: doc-view.el: make-directory |
Date: |
Fri, 14 Mar 2008 14:23:59 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
Reiner Steib <address@hidden> writes:
>> --- doc-view.el 12 Mar 2008 15:26:48 -0000 1.56
>> +++ doc-view.el 13 Mar 2008 18:11:37 -0000 1.57
>> @@ -600,7 +600,8 @@
>>
>> (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))
>> + (unless (file-exists-p (doc-view-current-cache-dir))
>> + (make-directory (doc-view-current-cache-dir)))
>
> Wouldn't using non-nil `parents' be a more simple solution?
>
> (make-directory (doc-view-current-cache-dir) t)
Indeed. I'll change that tomorrow if nobody does it till then.
Bye,
Tassilo
--
"Emacs is not a development tool but a way of life."
- David Kastrup in alt.religion.emacs -