all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: doc-view.el: make-directory
Date: Sun, 16 Mar 2008 10:25:24 +0100	[thread overview]
Message-ID: <87ve3nf2bf.fsf@member.fsf.org> (raw)
In-Reply-To: <87r6ed4exc.fsf@member.fsf.org> (Tassilo Horn's message of "Fri,  14 Mar 2008 14:23:59 +0100")

Tassilo Horn <tassilo@member.fsf.org> 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




      reply	other threads:[~2008-03-16  9:25 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 ` doc-view.el: make-directory (was: Changes to emacs/lisp/doc-view.el, v) Reiner Steib
2008-03-14 13:23   ` doc-view.el: make-directory Tassilo Horn
2008-03-16  9:25     ` Tassilo Horn [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ve3nf2bf.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.