emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; make-directory errors if the given dir already exists


From: Stefan Monnier
Subject: Re: 23.0.60; make-directory errors if the given dir already exists
Date: Thu, 13 Mar 2008 10:09:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:

> Start emacs -Q, go to *scratch* and eval

>   (make-directory "/tmp")

> or use any other existing directory.  You should get this error:

> Debugger entered--Lisp error: (file-already-exists "File exists" "/tmp")
>   make-directory-internal("/tmp")
>   make-directory("/tmp")
>   eval((make-directory "/tmp"))
>   eval-last-sexp-1(nil)
>   eval-last-sexp(nil)
>   call-interactively(eval-last-sexp nil nil)

> But the docstring of `make-directory' reads:

> ,----[ C-h f make-directory RET ]
> | make-directory is an interactive Lisp function in `files.el'.
> | 
> | (make-directory dir &optional parents)
> | 
> | Create the directory dir and any nonexistent parent dirs.
> | If dir already exists as a directory, do nothing.
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> [...]

Thanks.  The bug is in the docstring.  The "do nothing" is only true if
PARENT is non-nil.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]