+2008-03-16 Tassilo Horn <tassilo@member.fsf.org>
+
+ * doc-view.el (doc-view-doc->txt, doc-view-convert-current-doc):
+ Use non-nil PARENTS attribute of make-directory instead of
+ explicitly checking existence the current cache directory.
+
2008-03-16 Daiki Ueno <ueno@unixuser.org>
* epa-file.el (epa-file-select-keys): Fix bug with C-x C-s after
(defun doc-view-doc->txt (txt callback)
"Convert the current document to text and call CALLBACK when done."
- (unless (file-exists-p (doc-view-current-cache-dir))
- (make-directory (doc-view-current-cache-dir)))
+ (make-directory (doc-view-current-cache-dir) t)
(case doc-view-doc-type
(pdf
;; Doc is a PDF, so convert it to TXT
(setq doc-view-pending-cache-flush t)
(let ((png-file (expand-file-name "page-%d.png"
(doc-view-current-cache-dir))))
- (unless (file-exists-p (doc-view-current-cache-dir))
- (make-directory (doc-view-current-cache-dir)))
+ (make-directory (doc-view-current-cache-dir) t)
(case doc-view-doc-type
(dvi
;; DVI files have to be converted to PDF before Ghostscript can process