[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: |
Sun, 16 Mar 2008 10:25:24 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
Tassilo Horn <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.
Done!
Bye,
Tassilo