unofficial mirror of emacs-devel@gnu.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: Fri, 14 Mar 2008 14:23:59 +0100	[thread overview]
Message-ID: <87r6ed4exc.fsf@member.fsf.org> (raw)
In-Reply-To: <v94pb98sga.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Thu, 13 Mar 2008 23:24:45 +0100")

Reiner Steib <reinersteib+gmane@imap.cc> 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 -




  reply	other threads:[~2008-03-14 13:23 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   ` Tassilo Horn [this message]
2008-03-16  9:25     ` doc-view.el: make-directory 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=87r6ed4exc.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 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).