From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: doc-view.el: make-directory (was: Changes to emacs/lisp/doc-view.el, v)
Date: Thu, 13 Mar 2008 23:24:45 +0100 [thread overview]
Message-ID: <v94pb98sga.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: E1JZrtx-0003NZ-Sa@cvs.savannah.gnu.org
On Thu, Mar 13 2008, Tassilo Horn on emacs-diffs:
> --- 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)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next parent reply other threads:[~2008-03-13 22:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1JZrtx-0003NZ-Sa@cvs.savannah.gnu.org>
2008-03-13 22:24 ` Reiner Steib [this message]
2008-03-14 13:23 ` doc-view.el: make-directory Tassilo Horn
2008-03-16 9:25 ` 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=v94pb98sga.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=tassilo@member.fsf.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).