From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tassilo Horn <thorn+news@fastmail.fm>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; make-directory errors if the given dir already exists
Date: Thu, 13 Mar 2008 10:09:03 -0400 [thread overview]
Message-ID: <jwv3aquvhr6.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <87hcfaap5f.fsf@fastmail.fm> (Tassilo Horn's message of "Thu, 13 Mar 2008 11:34:20 +0100")
> 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
prev parent reply other threads:[~2008-03-13 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 10:34 23.0.60; make-directory errors if the given dir already exists Tassilo Horn
2008-03-13 14:09 ` Stefan Monnier [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
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=jwv3aquvhr6.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-pretest-bug@gnu.org \
--cc=thorn+news@fastmail.fm \
/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).