From unknown Sun Jun 15 13:00:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file Resent-From: Kaushal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Feb 2015 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19963@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.142506700912632 (code B ref -1); Fri, 27 Feb 2015 19:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2015 19:56:49 +0000 Received: from localhost ([127.0.0.1]:60224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR1j-0003Hf-Ls for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42061) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR1g-0003HN-Qz for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRR1a-0001WH-5O for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1a-0001WC-2U for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1Y-0005Qr-7V for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRR1W-0001VM-Ru for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:36 -0500 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:36487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1W-0001VE-M2 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:34 -0500 Received: by igkb16 with SMTP id b16so3265530igk.1 for ; Fri, 27 Feb 2015 11:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lknB2kSfobC29DOxBLNFUUmJwFdVwS9grEvgOEvWcrQ=; b=K8POXg0HHVqOARvd7/+SFdwPz+xV6rsZ0IBoQyfxNOlhjeNKqlzpsVGg2oc/UnfXGW nYyrI7dbYF+E07aF7+PfB5hYDgjE+B6qOedAgIEl7CWZTv9m5wczVxuq4yGXzOHTm6XS Tclv2ka77/kPmKR6/XvZE6Sqqbjd/f5+Kd1eFOQOPKkXFG+uSN6OMupQ6onswQtmvUJF /7vTs9Pfa1ASdP/+si5Ht2jG/MAdw7tjaQ0O9qAusyGVuQrPVKj2LOyQcUtwybI8DOZZ /OJEOQskwsP/olcbOdLal5PDBAg04462angmTGDi24KsUS0T+Vb3GHoGMco3tvhkbEJY PctA== X-Received: by 10.50.79.230 with SMTP id m6mr6446125igx.33.1425066992333; Fri, 27 Feb 2015 11:56:32 -0800 (PST) MIME-Version: 1.0 From: Kaushal Date: Fri, 27 Feb 2015 19:56:30 +0000 Message-ID: Content-Type: multipart/alternative; boundary=089e01229aaadd01f905101743c3 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e01229aaadd01f905101743c3 Content-Type: text/plain; charset=ISO-8859-1 Hi, If a folder has a file "a.b", I can't create a folder named "a.b" in the same parent folder. Here is how to recreate that in an "emacs -Q" session: > emacs -Q & C-x C-w C-a C-k ~/.emacs.d/test.el M-: (make-directory "~/.emacs.d/test.el") Doing so gave me the below error. Unix allows have a file and a directory with the same name in the same parent folder. I believe that the distinction between an existing file or an existing directory is not being made here. Debugger info: Debugger entered--Lisp error: (file-already-exists "File exists" "/home/kmodi/.emacs.d/test.el/") make-directory-internal("/home/kmodi/.emacs.d/test.el/") make-directory("~/.emacs.d/test.el/") eval((make-directory "~/.emacs.d/test.el/") nil) eval-expression((make-directory "~/.emacs.d/test.el/") nil) funcall-interactively(eval-expression (make-directory "~/.emacs.d/test.el/") nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2015-02-23 on ... Repository revision: ed7005c0e974a43c9b63d6f5d8ef6bd4099ba449 Windowing system distributor `The X.Org Foundation', version 11.0.60900000 System Description: Red Hat Enterprise Linux Client release 5.10 (Tikanga) Configured using: `configure --prefix=/home/kmodi/usr_local/apps/emacs/25.0 CPPFLAGS=-fgnu89-inline' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /home/kmodi/.emacs.d/test.el... Wrote /home/kmodi/.emacs.d/test.el Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode debug vc-git diff-mode easymenu easy-mmode time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 81214 6429) (symbols 48 18676 0) (miscs 40 65 124) (strings 32 13094 4483) (string-bytes 1 366132) (vectors 16 10734) (vector-slots 8 399013 6373) (floats 8 80 106) (intervals 56 209 19) (buffers 976 14) (heap 1024 234303 1302)) --089e01229aaadd01f905101743c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

If a folder has a file &= quot;a.b", I can't create a folder named "a.b" in the sa= me parent folder.

Here is how to recreate that in = an "emacs -Q" session:

> emacs -Q &am= p;
C-x C-w C-a C-k ~/.emacs.d/test.el
M-: (make-directo= ry "~/.emacs.d/test.el&qu= ot;)

Doing so gave me= the below error.

Uni= x allows have a file and a directory with the same name in the same parent = folder. I believe that the distinction between an existing file or an exist= ing directory is not being made here.

Debug= ger info:
Debugger entered--Lisp error: (file-already-exists= "File exists" "/home/kmodi/.emacs.d/test.el/")
=A0 make-directory-internal("/home/kmodi/.emacs.d/test.el/")
=A0 make-directory("~/.emacs.d/test.el/")
=A0 = eval((make-directory "~/.emacs.d/test.el/") nil)
=A0 ev= al-expression((make-directory "~/.emacs.d/test.el/") nil)
=A0 funcall-interactively(eval-expression (make-directory "~/.emacs= .d/test.el/") nil)
=A0 call-interactively(eval-expression ni= l nil)
=A0 command-execute(eval-expression)

<= /div>
In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.= 10.4)
=A0of 2015-02-23 on ...
Repository revision: ed70= 05c0e974a43c9b63d6f5d8ef6bd4099ba449
Windowing system distributor= `The X.Org Foundation', version 11.0.60900000
System Descrip= tion: Red H= at Enterprise Linux Client release 5.10 (Tikanga)

= Configured using:
=A0`configure --prefix=3D/home/kmodi/usr_local/= apps/emacs/25.0
=A0CPPFLAGS=3D-fgnu89-inline'

<= /div>
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMA= GICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS = LIBXML2 FREETYPE LIBOTF XFT ZLIB

Important setting= s:
=A0 value of $LANG: en_US.UTF-8
=A0 locale-coding-sy= stem: utf-8-unix

Major mode: Debugger
Minor modes in effect:
=A0 diff-auto-refine-mode: t<= /div>
=A0 tooltip-mode: t
=A0 global-eldoc-mode: t
= =A0 electric-indent-mode: t
=A0 mouse-wheel-mode: t
=A0= tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-sh= adow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock= -mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-= mode: t
=A0 auto-encryption-mode: t
=A0 auto-compressio= n-mode: t
=A0 buffer-read-only: t
=A0 line-number-mode:= t

Recent messages:
For information abou= t GNU Emacs and the GNU system, type C-h C-a.
Saving file /home/kmodi/.emacs.d/test.el...
Wrote /home/kmodi/.emacs.d/test.el

Load-path shadows:
None found.

Features= :
(shadow sort gnus-util mail-extr emacsbug message dired format-= spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse = rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 = ietf-drums
mm-util help-fns mail-prsvr mail-utils help-mode debug= vc-git diff-mode
easymenu easy-mmode time-date tooltip eldoc ele= ctric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win x= -dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list = newcomment elisp-mode lisp-mode
prog-mode register page menu-bar = rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock synt= ax facemenu font-core frame cham georgian
utf-8-lang misc-lang vi= etnamese tibetan thai tai-viet lao korean
japanese hebrew greek r= omanian slovak czech european ethiopic indian
cyrillic chinese ca= se-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer cl-= preloaded nadvice loaddefs button faces cus-face macroexp
files t= ext-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
fo= nt-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
<= br>
Memory information:
((conses 16 81214 6429)
=A0(symbols 48 18676 0)
=A0(miscs 40 65 124)
=A0(str= ings 32 13094 4483)
=A0(string-bytes 1 366132)
=A0(vect= ors 16 10734)
=A0(vector-slots 8 399013 6373)
=A0(float= s 8 80 106)
=A0(intervals 56 209 19)
=A0(buffers 976 14= )
=A0(heap 1024 234303 1302))

--089e01229aaadd01f905101743c3-- From unknown Sun Jun 15 13:00:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kaushal Subject: bug#19963: closed (Re: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file) Message-ID: References: <83vbin3u0k.fsf@gnu.org> X-Gnu-PR-Message: they-closed 19963 X-Gnu-PR-Package: emacs Reply-To: 19963@debbugs.gnu.org Date: Fri, 27 Feb 2015 21:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1425073742-22958-1" This is a multi-part message in MIME format... ------------=_1425073742-22958-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19963: 25.0.50; Unable to create a directory with name same as an existing= file which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19963@debbugs.gnu.org. --=20 19963: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19963 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1425073742-22958-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19963-done) by debbugs.gnu.org; 27 Feb 2015 21:48:50 +0000 Received: from localhost ([127.0.0.1]:60256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSmA-0005xv-1C for submit@debbugs.gnu.org; Fri, 27 Feb 2015 16:48:50 -0500 Received: from mtaout29.012.net.il ([80.179.55.185]:59031) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSm7-0005xf-0I for 19963-done@debbugs.gnu.org; Fri, 27 Feb 2015 16:48:48 -0500 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NKG00P009AI7B00@mtaout29.012.net.il> for 19963-done@debbugs.gnu.org; Fri, 27 Feb 2015 23:44:30 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKG00LXE9Q6TI40@mtaout29.012.net.il>; Fri, 27 Feb 2015 23:44:30 +0200 (IST) Date: Fri, 27 Feb 2015 23:48:59 +0200 From: Eli Zaretskii Subject: Re: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file In-reply-to: X-012-Sender: halo1@inter.net.il To: Kaushal Message-id: <83vbin3u0k.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19963-done Cc: 19963-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Kaushal > Date: Fri, 27 Feb 2015 19:56:30 +0000 > > If a folder has a file "a.b", I can't create a folder named "a.b" in the same > parent folder. As expected. > Unix allows have a file and a directory with the same name in the same parent > folder. Not here, it doesn't: eliz@fencepost:~/ttttttt$ touch a.b eliz@fencepost:~/ttttttt$ ls a.b eliz@fencepost:~/ttttttt$ mkdir a.b mkdir: cannot create directory `a.b': File exists eliz@fencepost:~/ttttttt$ A directory is just a special kind of file on most filesystems, and like a file, it has an entry in its parent directory. So there cannot be a file and a directory with the same name, because there can be 2 identical entries in their parent directory. This is not a bug in Emacs, this is a limitation of the underlying filesystem to which Emacs heeds. I'm closing this bug. ------------=_1425073742-22958-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Feb 2015 19:56:49 +0000 Received: from localhost ([127.0.0.1]:60224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR1j-0003Hf-Ls for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42061) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR1g-0003HN-Qz for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRR1a-0001WH-5O for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1a-0001WC-2U for submit@debbugs.gnu.org; Fri, 27 Feb 2015 14:56:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1Y-0005Qr-7V for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRR1W-0001VM-Ru for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:36 -0500 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:36487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1W-0001VE-M2 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:56:34 -0500 Received: by igkb16 with SMTP id b16so3265530igk.1 for ; Fri, 27 Feb 2015 11:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lknB2kSfobC29DOxBLNFUUmJwFdVwS9grEvgOEvWcrQ=; b=K8POXg0HHVqOARvd7/+SFdwPz+xV6rsZ0IBoQyfxNOlhjeNKqlzpsVGg2oc/UnfXGW nYyrI7dbYF+E07aF7+PfB5hYDgjE+B6qOedAgIEl7CWZTv9m5wczVxuq4yGXzOHTm6XS Tclv2ka77/kPmKR6/XvZE6Sqqbjd/f5+Kd1eFOQOPKkXFG+uSN6OMupQ6onswQtmvUJF /7vTs9Pfa1ASdP/+si5Ht2jG/MAdw7tjaQ0O9qAusyGVuQrPVKj2LOyQcUtwybI8DOZZ /OJEOQskwsP/olcbOdLal5PDBAg04462angmTGDi24KsUS0T+Vb3GHoGMco3tvhkbEJY PctA== X-Received: by 10.50.79.230 with SMTP id m6mr6446125igx.33.1425066992333; Fri, 27 Feb 2015 11:56:32 -0800 (PST) MIME-Version: 1.0 From: Kaushal Date: Fri, 27 Feb 2015 19:56:30 +0000 Message-ID: Subject: 25.0.50; Unable to create a directory with name same as an existing file To: "bug-gnu-emacs@gnu.org" Content-Type: multipart/alternative; boundary=089e01229aaadd01f905101743c3 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e01229aaadd01f905101743c3 Content-Type: text/plain; charset=ISO-8859-1 Hi, If a folder has a file "a.b", I can't create a folder named "a.b" in the same parent folder. Here is how to recreate that in an "emacs -Q" session: > emacs -Q & C-x C-w C-a C-k ~/.emacs.d/test.el M-: (make-directory "~/.emacs.d/test.el") Doing so gave me the below error. Unix allows have a file and a directory with the same name in the same parent folder. I believe that the distinction between an existing file or an existing directory is not being made here. Debugger info: Debugger entered--Lisp error: (file-already-exists "File exists" "/home/kmodi/.emacs.d/test.el/") make-directory-internal("/home/kmodi/.emacs.d/test.el/") make-directory("~/.emacs.d/test.el/") eval((make-directory "~/.emacs.d/test.el/") nil) eval-expression((make-directory "~/.emacs.d/test.el/") nil) funcall-interactively(eval-expression (make-directory "~/.emacs.d/test.el/") nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2015-02-23 on ... Repository revision: ed7005c0e974a43c9b63d6f5d8ef6bd4099ba449 Windowing system distributor `The X.Org Foundation', version 11.0.60900000 System Description: Red Hat Enterprise Linux Client release 5.10 (Tikanga) Configured using: `configure --prefix=/home/kmodi/usr_local/apps/emacs/25.0 CPPFLAGS=-fgnu89-inline' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /home/kmodi/.emacs.d/test.el... Wrote /home/kmodi/.emacs.d/test.el Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode debug vc-git diff-mode easymenu easy-mmode time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 81214 6429) (symbols 48 18676 0) (miscs 40 65 124) (strings 32 13094 4483) (string-bytes 1 366132) (vectors 16 10734) (vector-slots 8 399013 6373) (floats 8 80 106) (intervals 56 209 19) (buffers 976 14) (heap 1024 234303 1302)) --089e01229aaadd01f905101743c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

If a folder has a file &= quot;a.b", I can't create a folder named "a.b" in the sa= me parent folder.

Here is how to recreate that in = an "emacs -Q" session:

> emacs -Q &am= p;
C-x C-w C-a C-k ~/.emacs.d/test.el
M-: (make-directo= ry "~/.emacs.d/test.el&qu= ot;)

Doing so gave me= the below error.

Uni= x allows have a file and a directory with the same name in the same parent = folder. I believe that the distinction between an existing file or an exist= ing directory is not being made here.

Debug= ger info:
Debugger entered--Lisp error: (file-already-exists= "File exists" "/home/kmodi/.emacs.d/test.el/")
=A0 make-directory-internal("/home/kmodi/.emacs.d/test.el/")
=A0 make-directory("~/.emacs.d/test.el/")
=A0 = eval((make-directory "~/.emacs.d/test.el/") nil)
=A0 ev= al-expression((make-directory "~/.emacs.d/test.el/") nil)
=A0 funcall-interactively(eval-expression (make-directory "~/.emacs= .d/test.el/") nil)
=A0 call-interactively(eval-expression ni= l nil)
=A0 command-execute(eval-expression)

<= /div>
In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.= 10.4)
=A0of 2015-02-23 on ...
Repository revision: ed70= 05c0e974a43c9b63d6f5d8ef6bd4099ba449
Windowing system distributor= `The X.Org Foundation', version 11.0.60900000
System Descrip= tion: Red H= at Enterprise Linux Client release 5.10 (Tikanga)

= Configured using:
=A0`configure --prefix=3D/home/kmodi/usr_local/= apps/emacs/25.0
=A0CPPFLAGS=3D-fgnu89-inline'

<= /div>
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMA= GICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS = LIBXML2 FREETYPE LIBOTF XFT ZLIB

Important setting= s:
=A0 value of $LANG: en_US.UTF-8
=A0 locale-coding-sy= stem: utf-8-unix

Major mode: Debugger
Minor modes in effect:
=A0 diff-auto-refine-mode: t<= /div>
=A0 tooltip-mode: t
=A0 global-eldoc-mode: t
= =A0 electric-indent-mode: t
=A0 mouse-wheel-mode: t
=A0= tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-sh= adow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock= -mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-= mode: t
=A0 auto-encryption-mode: t
=A0 auto-compressio= n-mode: t
=A0 buffer-read-only: t
=A0 line-number-mode:= t

Recent messages:
For information abou= t GNU Emacs and the GNU system, type C-h C-a.
Saving file /home/kmodi/.emacs.d/test.el...
Wrote /home/kmodi/.emacs.d/test.el

Load-path shadows:
None found.

Features= :
(shadow sort gnus-util mail-extr emacsbug message dired format-= spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse = rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 = ietf-drums
mm-util help-fns mail-prsvr mail-utils help-mode debug= vc-git diff-mode
easymenu easy-mmode time-date tooltip eldoc ele= ctric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win x= -dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list = newcomment elisp-mode lisp-mode
prog-mode register page menu-bar = rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock synt= ax facemenu font-core frame cham georgian
utf-8-lang misc-lang vi= etnamese tibetan thai tai-viet lao korean
japanese hebrew greek r= omanian slovak czech european ethiopic indian
cyrillic chinese ca= se-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer cl-= preloaded nadvice loaddefs button faces cus-face macroexp
files t= ext-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
fo= nt-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
<= br>
Memory information:
((conses 16 81214 6429)
=A0(symbols 48 18676 0)
=A0(miscs 40 65 124)
=A0(str= ings 32 13094 4483)
=A0(string-bytes 1 366132)
=A0(vect= ors 16 10734)
=A0(vector-slots 8 399013 6373)
=A0(float= s 8 80 106)
=A0(intervals 56 209 19)
=A0(buffers 976 14= )
=A0(heap 1024 234303 1302))

--089e01229aaadd01f905101743c3-- ------------=_1425073742-22958-1-- From unknown Sun Jun 15 13:00:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Feb 2015 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19963@debbugs.gnu.org, kaushal.modi@gmail.com Reply-To: Eli Zaretskii Received: via spool by 19963-submit@debbugs.gnu.org id=B19963.142507384323141 (code B ref 19963); Fri, 27 Feb 2015 21:51:02 +0000 Received: (at 19963) by debbugs.gnu.org; 27 Feb 2015 21:50:43 +0000 Received: from localhost ([127.0.0.1]:60262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSnz-00061B-Ig for submit@debbugs.gnu.org; Fri, 27 Feb 2015 16:50:43 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:44806) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YRSnx-00060t-CS for 19963@debbugs.gnu.org; Fri, 27 Feb 2015 16:50:42 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKG002009KBH800@a-mtaout22.012.net.il> for 19963@debbugs.gnu.org; Fri, 27 Feb 2015 23:50:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKG002BQA0AGY20@a-mtaout22.012.net.il>; Fri, 27 Feb 2015 23:50:35 +0200 (IST) Date: Fri, 27 Feb 2015 23:50:53 +0200 From: Eli Zaretskii In-reply-to: <83vbin3u0k.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83twy73txe.fsf@gnu.org> References: <83vbin3u0k.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Fri, 27 Feb 2015 23:48:59 +0200 > From: Eli Zaretskii > Cc: 19963-done@debbugs.gnu.org > > A directory is just a special kind of file on most filesystems, and > like a file, it has an entry in its parent directory. So there cannot > be a file and a directory with the same name, because there can be 2 > identical entries in their parent directory. ^^^^^^ I meant "cannot be", of course. Sorry.