From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6397: 24.0.50; `make-directory' return value Date: Thu, 10 Jun 2010 13:49:23 -0700 Message-ID: <3F4EAEC98DA7485299F2D80D33002278@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276203524 31753 80.91.229.12 (10 Jun 2010 20:58:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 20:58:44 +0000 (UTC) To: 6397@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 10 22:58:40 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMopg-0003u7-35 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 22:58:36 +0200 Original-Received: from localhost ([127.0.0.1]:40702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMope-0003xs-5o for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 16:58:34 -0400 Original-Received: from [140.186.70.92] (port=38090 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMopS-0003vc-DR for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMopR-0006Qs-6l for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:58:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55620) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMopR-0006Qo-5R for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:58:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMojK-0006ew-3i; Thu, 10 Jun 2010 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jun 2010 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.127620308225586 (code B ref -1); Thu, 10 Jun 2010 20:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2010 20:51:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMoif-0006ec-Jy for submit@debbugs.gnu.org; Thu, 10 Jun 2010 16:51:21 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMoid-0006eX-0f for submit@debbugs.gnu.org; Thu, 10 Jun 2010 16:51:19 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40506) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OMoiY-0001RZ-E4 for submit@debbugs.gnu.org; Thu, 10 Jun 2010 16:51:14 -0400 Original-Received: from [140.186.70.92] (port=35061 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMoiX-0001nw-30 for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMoiV-0005Kw-QH for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:51:12 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:63501) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMoiV-0005Ke-Jq for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 16:51:11 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5AKp6mE015189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Jun 2010 20:51:08 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5AIunhV011122 for ; Thu, 10 Jun 2010 20:51:05 GMT Original-Received: from abhmt007.oracle.com by acsmt355.oracle.com with ESMTP id 315244581276202961; Thu, 10 Jun 2010 13:49:21 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Jun 2010 13:49:21 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsI3mhCmJ1hPvUAT8uZe5uq+QBb5g== X-Auth-Type: Internal IP X-Source-IP: rcsinet15.oracle.com [148.87.113.117] X-CT-RefId: str=0001.0A090202.4C11503D.001D:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Jun 2010 16:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37679 Archived-At: The doc for `make-directory' doesn't mention its return value, and the code doesn't seem to do anything special about it. I think it should return non-nil (e.g. the directory name) if the creation succeeds and nil if it fails without error. And that should be documented. Or if it always raises an error when it does not create a directory, that's OK too, but that should then be documented. Yes, you can always determine whether it succeeded by checking `file-accessible-directory-p' or `file-exists-p' afterward (and beforehand, and comparing), but reasonable creation functions let you know whether they succeed. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-06-07 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'