From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Newsgroups: gmane.emacs.bugs Subject: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file Date: Fri, 27 Feb 2015 19:56:30 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01229aaadd01f905101743c3 X-Trace: ger.gmane.org 1425067052 32606 80.91.229.3 (27 Feb 2015 19:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2015 19:57:32 +0000 (UTC) To: 19963@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 20:57:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YRR2B-0001B2-1P for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 20:57:15 +0100 Original-Received: from localhost ([::1]:38797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR2A-0007Xc-Fw for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2015 14:57:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR20-00077I-By for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRR1y-0001df-R8 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:57:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRR1y-0001db-OU for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YRR1y-0003IB-8U for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2015 14:57:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.142506700912632 (code B ref -1); Fri, 27 Feb 2015 19:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2015 19:56:49 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99882 Archived-At: --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--