From unknown Sat Jun 14 03:54:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22938 <22938@debbugs.gnu.org> To: bug#22938 <22938@debbugs.gnu.org> Subject: Status: 24.5; Cannot rename files in directory with escaped spaces Reply-To: bug#22938 <22938@debbugs.gnu.org> Date: Sat, 14 Jun 2025 10:54:48 +0000 retitle 22938 24.5; Cannot rename files in directory with escaped spaces reassign 22938 emacs submitter 22938 Marty Rosenberg severity 22938 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 03:29:42 2016 Received: (at submit) by debbugs.gnu.org; 8 Mar 2016 08:29:42 +0000 Received: from localhost ([127.0.0.1]:38600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adD1S-0004lG-FT for submit@debbugs.gnu.org; Tue, 08 Mar 2016 03:29:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49770) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adD1Q-0004l2-F2 for submit@debbugs.gnu.org; Tue, 08 Mar 2016 03:29:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adD1K-0000K0-1Z for submit@debbugs.gnu.org; Tue, 08 Mar 2016 03:29:35 -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]:35894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adD1J-0000Jw-Ur for submit@debbugs.gnu.org; Tue, 08 Mar 2016 03:29:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adD1I-000677-Kf for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 03:29:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adD1H-0000JQ-DH for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 03:29:32 -0500 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:35219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adD1H-0000JL-7L for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 03:29:31 -0500 Received: by mail-ob0-x233.google.com with SMTP id fp4so7436750obb.2 for ; Tue, 08 Mar 2016 00:29:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=0trOnT7QTuwc+fXiEOunXCH8BxQ6hkR3fQFdQgye0Zw=; b=q6lrTRL7761f3c77yqDktYPG7cQEKAPynDGgJgH78SoX95V7OPgOO2SFNOxRk/zX2w KO9fEBxEIFUUtfVqvn4kvwbbaQrtWhU995/EQrLUfp5qUuShy97w1X6CSGdlNLuoPB34 sKADwvV1nP58gEzYj8fGkXz8tNx1RgX+uevj+Ei766/WoNTklLKFx3CPSbtQDs6KURMx 6j1m6xTkXpRU3m+3eEEDmfCmW585eWntr75UZ9Q3poPLX3BhFDDW1rERz9qRKBSic+Ro eBqevSeIrrDJOemC5CRxZZGvXXkG6JcGdB0CLE1Yxc7zA0uJ0Td0jNVXoh+0F6ey0Z1N 0FHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=0trOnT7QTuwc+fXiEOunXCH8BxQ6hkR3fQFdQgye0Zw=; b=KlJtofiU8QYgCrFF7gjDbdgbd4SSq/eUCudS7vezcskdq7M07f01DnzWGS/IFuQBff TQu8HlU8ILeFPFeJv5E4bvvOMjFQPET1rvxD3JqMjamUjBYKFqLlWDx4BjFD5SAKh0LE tuh0VVOVeUL1WMV617LTBsoQ1XWk+6vJcpZmvOSwW1OIiBPZaN/qrXTSme2yWT5gxcCQ bwLIbeAxVTyZ9D6XZwWFCYs43Nwj4vVvnzrahQNWrB8J7qZDNkNEILXdHfd8b5vLpX6O 0M9ACb7CgHjaD1ZubOomNUGnOtCyr1N0QH/8B7gGWsdF5ps5J8vkPQm7HUbf7Vgmm/Uw G8Sg== X-Gm-Message-State: AD7BkJK0AGtnB30CA9qfyEV83CD64/hyUku0eMJoN82zsg1ptucmKKuk0EohTvfRb6W5HNgnwN/jnlTA8UHORg== MIME-Version: 1.0 X-Received: by 10.60.128.163 with SMTP id np3mr17301613oeb.16.1457425770422; Tue, 08 Mar 2016 00:29:30 -0800 (PST) Received: by 10.60.17.42 with HTTP; Tue, 8 Mar 2016 00:29:30 -0800 (PST) Date: Tue, 8 Mar 2016 03:29:30 -0500 Message-ID: Subject: 24.5; Cannot rename files in directory with escaped spaces From: Marty Rosenberg To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7b417dc7552aec052d856144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.18 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 (----) --047d7b417dc7552aec052d856144 Content-Type: text/plain; charset=UTF-8 most of this happens outside of emacs: mkdir 'escape\ me' cd 'escape\ me' touch a emacs -Q . C-x C-q rename the file from a to b C-c C-c when I inspect the error, it looks like it is attempting to rename /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b which fails, because the name of the directory is 'escape\ me', not 'escapeme' In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-09 on foutrelis Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Press C-c C-c when finished or C-c ESC to abort changes 1 rename actions failed--type ? for details C-c C-c is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu 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 dired-aux wdired dired xterm time-date tooltip 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 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 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 83726 8439) (symbols 48 18125 0) (miscs 40 36 149) (strings 32 10824 4459) (string-bytes 1 289384) (vectors 16 7637) (vector-slots 8 346167 28364) (floats 8 65 189) (intervals 56 214 3) (buffers 960 13) (heap 1024 10595 1622)) --047d7b417dc7552aec052d856144 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

most of this happens outside of emacs:<= br>mkdir 'escape\ me'
cd 'escape\ me'
touch a
emac= s -Q .
C-x C-q
rename the file from a to b
C-c C-c

wh= en I inspect the error, it looks like it is attempting to rename
/= home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b
whic= h fails, because the name of the directory is 'escape\ me', not = 9;escapeme'


In GNU Emacs 24.5.1 (x86_64-= unknown-linux-gnu, GTK+ Version 3.16.6)
=C2=A0of 2015-09-09 on foutrelis=
Configured using:
=C2=A0`configure --prefix=3D/usr --sysconfdir=3D/e= tc --libexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolkit= =3Dgtk3 --with-xft
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric = -O2 -pipe -fstack-protector-strong
=C2=A0--param=3Dssp-buffer-size=3D4&#= 39; CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-comm= on,--as-needed,-z,relro'

Important settings:
=C2=A0 value of = $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major = mode: Dired

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-ba= r-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 auto-= composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compre= ssion-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mode: t=C2=A0 transient-mark-mode: t

Recent messages:
For information = about GNU Emacs and the GNU system, type C-h C-a.
Press C-c C-c when fin= ished or C-c ESC to abort changes
1 rename actions failed--type ? for de= tails
C-c C-c is undefined

Load-path shadows:
None found.
<= br>Features:
(shadow sort gnus-util mail-extr emacsbug message format-sp= ec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse = rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-dr= ums
mm-util help-fns mail-prsvr mail-utils dired-aux wdired dired xterm<= br>time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type<= br>mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabul= ated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-esha= dow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu fon= t-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 nadvice loaddefs button
faces cus-face macroex= p files text-properties overlay sha1 md5 base64
format env code-pages mu= le custom widget hashtable-print-readable
backquote make-network-process= dbusbind gfilenotify dynamic-setting
system-font-setting font-render-se= tting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory inform= ation:
((conses 16 83726 8439)
=C2=A0(symbols 48 18125 0)
=C2=A0(m= iscs 40 36 149)
=C2=A0(strings 32 10824 4459)
=C2=A0(string-bytes 1 2= 89384)
=C2=A0(vectors 16 7637)
=C2=A0(vector-slots 8 346167 28364)=C2=A0(floats 8 65 189)
=C2=A0(intervals 56 214 3)
=C2=A0(buffers 96= 0 13)
=C2=A0(heap 1024 10595 1622))

--047d7b417dc7552aec052d856144-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 03:52:20 2016 Received: (at 22938) by debbugs.gnu.org; 8 Mar 2016 08:52:20 +0000 Received: from localhost ([127.0.0.1]:38619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adDNL-0005RR-RC for submit@debbugs.gnu.org; Tue, 08 Mar 2016 03:52:20 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:36951) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adDNJ-0005RI-0f for 22938@debbugs.gnu.org; Tue, 08 Mar 2016 03:52:17 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 2110C9DEF43; Tue, 8 Mar 2016 09:52:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cceXrdV-zd+4; Tue, 8 Mar 2016 09:52:11 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 8791B9E46AA; Tue, 8 Mar 2016 09:52:11 +0100 (CET) References: User-agent: mu4e 0.9.13; emacs 25.1.50.6 From: Marcin Borkowski To: Marty Rosenberg Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces In-reply-to: Date: Tue, 08 Mar 2016 09:52:10 +0100 Message-ID: <87oaapxsg5.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22938 Cc: 22938@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) On 2016-03-08, at 09:29, Marty Rosenberg wrote: > most of this happens outside of emacs: > mkdir 'escape\ me' > cd 'escape\ me' > touch a > emacs -Q . > C-x C-q > rename the file from a to b > C-c C-c > > when I inspect the error, it looks like it is attempting to rename > /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b > which fails, because the name of the directory is 'escape\ me', not > 'escapeme' Hi, and thanks for the report. However, it seems to work just fine on GNU Emacs 25.1.50.6 (commit ac9a931). It might have been fixed in the meantime. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 13:45:16 2016 Received: (at 22938) by debbugs.gnu.org; 8 Mar 2016 18:45:16 +0000 Received: from localhost ([127.0.0.1]:39986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adMdA-0005vS-2I for submit@debbugs.gnu.org; Tue, 08 Mar 2016 13:45:16 -0500 Received: from mail-ob0-f177.google.com ([209.85.214.177]:33088) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adMd7-0005vC-TR for 22938@debbugs.gnu.org; Tue, 08 Mar 2016 13:45:14 -0500 Received: by mail-ob0-f177.google.com with SMTP id fz5so23076650obc.0 for <22938@debbugs.gnu.org>; Tue, 08 Mar 2016 10:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=9zLrIQ9Ncmgf75N+EsH8wzEoru4UhN5grXiuljIq3Yg=; b=HEfc3wnL/CvUGxkOy3pO1GA4xKdwIYMiFJuzmtevPFrr3V+33jEx+nQS9tZWgwrt3n q5Z9tVJo2K8r5eW2ozjVwNT4If+wAWacRVliJv2byafKF39xEwmqvng/Vx+Xecx5wD3d /P4vTlIf8+RPbxsTyoCfY4i4n1Yg1jJkFq4Yzt2IIh3hTz3ziSliRxvVdvFTCaZcCbm/ YgzMpILLXH6+JYVZeFcEojZQDjAQzs91W8bKd3LmNznfxGPY+L5vi/fjEvDArvo/RPgv /HFVZH8I+BjTHfHukgf+Lc1tWpTe/rgfWODdFIkg66wqdz0GA8ipozhcFs8Fj7M2cOCg g/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=9zLrIQ9Ncmgf75N+EsH8wzEoru4UhN5grXiuljIq3Yg=; b=HZH1YX/6fNazznTFFihfLtwA4CQ0a77o/x5g0qmEWuqMesZLimgfIQ88CqJya9CUCC TOWMRoS5gJWVK16KIZJTqFxjD8+GhA97nu/NacdLEqbU/N5NRu2d1tY9FhAU3Rg5Csfm penyjFErLj2H4hYk3ohxyuZVUzLtA/QFzeeic54qSREEL3bPRSxdZTEh7eldTRILrhxN lc7HqbJEUfzNfPR7l91kJZBWiwnBzKX1aEAHwGPII2VcIKT6+5NPILGeswO/r/tnJUfQ HviC6PKpjRtZhtliJzKB8u1mYOci1kdjWDAXefbrvKl037kZodOhBv10Dg31mJWgKy6S Zmjg== X-Gm-Message-State: AD7BkJK2oMbfZ1p27Om3/xLh06AuIim/aBJNkZ8PbKE7sBzPSAX9/z8VQ14oh8v8nSzJJyv8Hffz0LGftUGrvA== MIME-Version: 1.0 X-Received: by 10.60.116.35 with SMTP id jt3mr19655814oeb.79.1457462708015; Tue, 08 Mar 2016 10:45:08 -0800 (PST) Received: by 10.60.17.42 with HTTP; Tue, 8 Mar 2016 10:45:07 -0800 (PST) In-Reply-To: <87oaapxsg5.fsf@mbork.pl> References: <87oaapxsg5.fsf@mbork.pl> Date: Tue, 8 Mar 2016 13:45:07 -0500 Message-ID: Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces From: Marty Rosenberg To: Marcin Borkowski Content-Type: multipart/alternative; boundary=089e01177049fc1b5a052d8dfa73 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22938 Cc: 22938@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --089e01177049fc1b5a052d8dfa73 Content-Type: text/plain; charset=UTF-8 Strange, I just checked out git master, and reproduced it (I used e0400b72a24). Did you both quote and escape the space? (alternately, you can run mkdir escape\\\ me) I've reproduced this on both an ubuntu system, an arch-linux system, and a gentoo system. I haven't tried on a redhat based system, nor on OSX. On Tue, Mar 8, 2016 at 3:52 AM, Marcin Borkowski wrote: > > On 2016-03-08, at 09:29, Marty Rosenberg > wrote: > > > most of this happens outside of emacs: > > mkdir 'escape\ me' > > cd 'escape\ me' > > touch a > > emacs -Q . > > C-x C-q > > rename the file from a to b > > C-c C-c > > > > when I inspect the error, it looks like it is attempting to rename > > /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b > > which fails, because the name of the directory is 'escape\ me', not > > 'escapeme' > > Hi, > > and thanks for the report. > > However, it seems to work just fine on GNU Emacs 25.1.50.6 (commit > ac9a931). It might have been fixed in the meantime. > > Best, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Faculty of Mathematics and Computer Science > Adam Mickiewicz University > --089e01177049fc1b5a052d8dfa73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Strange, I just checked out git master, and reproduced it = (I used=C2=A0e0400b72a24). Did you both quote and escape the space? (altern= ately, you can run mkdir escape\\\ me) =C2=A0I've reproduced this on bo= th an ubuntu system, an arch-linux system, and a gentoo system.=C2=A0 I hav= en't tried on a redhat based system, nor on OSX.

On Tue, Mar 8, 2016 at 3:52 AM, Ma= rcin Borkowski <mbork@mbork.pl> wrote:

On 2016-03-08, at 09:29, Marty Rosenberg <marty.rosenberg@gmail.com> wrote:

> most of this happens outside of emacs:
> mkdir 'escape\ me'
> cd 'escape\ me'
> touch a
> emacs -Q .
> C-x C-q
> rename the file from a to b
> C-c C-c
>
> when I inspect the error, it looks like it is attempting to rename
> /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b
> which fails, because the name of the directory is 'escape\ me'= , not
> 'escapeme'

Hi,

and thanks for the report.

However, it seems to work just fine on GNU Emacs 25.1.50.6 (commit
ac9a931).=C2=A0 It might have been fixed in the meantime.

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

--089e01177049fc1b5a052d8dfa73-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 14:11:51 2016 Received: (at 22938) by debbugs.gnu.org; 8 Mar 2016 19:11:51 +0000 Received: from localhost ([127.0.0.1]:40006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adN2s-0006eJ-Sv for submit@debbugs.gnu.org; Tue, 08 Mar 2016 14:11:51 -0500 Received: from mail-ob0-f171.google.com ([209.85.214.171]:36296) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adN2r-0006e4-5d for 22938@debbugs.gnu.org; Tue, 08 Mar 2016 14:11:49 -0500 Received: by mail-ob0-f171.google.com with SMTP id m7so23571809obh.3 for <22938@debbugs.gnu.org>; Tue, 08 Mar 2016 11:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=+mCj3PBCklNcey2jiqRsHBBeqYKwezWm6Eqmws/rwE0=; b=na70/r4CwaDfhZ6iNzgaaHltCC0Hk/uAoFoTi6Qce2omii9p9KA7d1IbOM2vq3fOh5 4DMfDLlt6EySnPWnC+XM6ONv60zMDY9L/cfGakjJsk+VhNfnIztgjBjBMtJLzdHkt8px w3lYlUfyktstJ6q+S9S6igmJKmICCl2RLb/jJ1s7F5TEWkr74eYL7HnVjRcfA0y69WIL JDYXUGrnMip6vBZs10DX/1s6N8oz/cJCO+EFHznn62KRqPn8D/PIWNoWIvE4H6RdVvNW JEs+7+JWczDgO9gDL/6D9n9YdShK1Vuh1NZTh7cHxeq4jCPYndXxpHdVup7DI8PPMl2R SmVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=+mCj3PBCklNcey2jiqRsHBBeqYKwezWm6Eqmws/rwE0=; b=IXct7h6mAnUEcvM4HicJAimziRaxgs/w1Bo/QYHRE8q5u/k9iE0m3YF1N2WZ+ikwrm 42OqVbwFDyrD89Ic+6nCWNudSawiUCYkUfH9AFR05Pc+cq7+Imqq3qG8qOlUYBCAWRYT tbfXdAePz4WS3/+VPTke+CSwoizYg7GqUYIVTln21eVvbKDbknJIYZQVN4d83uOaIBSJ /h0O8Kny1DN/eexKWlmrY0HgWRypVS2qtlz05VZmOwSoi6rd12Z/+Ui8UNbWZe+B0voZ yH1MGH0MHFXm0ehkzcwejPFYdn5mYIMO3VyDral6pN1HSyYCwJjduffW98QYXYdVP1Vk CC5w== X-Gm-Message-State: AD7BkJKAK7A4y9sQv6g1FiUuNi5SrEgcBnh5/Crx12CQP7JUzuB4hM5F9msvSDk4vPys80XQvaHx334E/aX6QA== MIME-Version: 1.0 X-Received: by 10.60.134.49 with SMTP id ph17mr18012218oeb.64.1457464303487; Tue, 08 Mar 2016 11:11:43 -0800 (PST) Received: by 10.60.17.42 with HTTP; Tue, 8 Mar 2016 11:11:43 -0800 (PST) In-Reply-To: References: <87oaapxsg5.fsf@mbork.pl> Date: Tue, 8 Mar 2016 14:11:43 -0500 Message-ID: Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces From: Marty Rosenberg To: Marcin Borkowski Content-Type: multipart/alternative; boundary=047d7b41ce401512f9052d8e5a8a X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22938 Cc: 22938@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --047d7b41ce401512f9052d8e5a8a Content-Type: text/plain; charset=UTF-8 Addendum: I have discovered that there are multiple ways to rename a file in dired. I simply deleted the a, and replaced it with a b, while dired was in Editable mode. On Tue, Mar 8, 2016 at 1:45 PM, Marty Rosenberg wrote: > Strange, I just checked out git master, and reproduced it (I > used e0400b72a24). Did you both quote and escape the space? (alternately, > you can run mkdir escape\\\ me) I've reproduced this on both an ubuntu > system, an arch-linux system, and a gentoo system. I haven't tried on a > redhat based system, nor on OSX. > > On Tue, Mar 8, 2016 at 3:52 AM, Marcin Borkowski wrote: > >> >> On 2016-03-08, at 09:29, Marty Rosenberg >> wrote: >> >> > most of this happens outside of emacs: >> > mkdir 'escape\ me' >> > cd 'escape\ me' >> > touch a >> > emacs -Q . >> > C-x C-q >> > rename the file from a to b >> > C-c C-c >> > >> > when I inspect the error, it looks like it is attempting to rename >> > /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b >> > which fails, because the name of the directory is 'escape\ me', not >> > 'escapeme' >> >> Hi, >> >> and thanks for the report. >> >> However, it seems to work just fine on GNU Emacs 25.1.50.6 (commit >> ac9a931). It might have been fixed in the meantime. >> >> Best, >> >> -- >> Marcin Borkowski >> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski >> Faculty of Mathematics and Computer Science >> Adam Mickiewicz University >> > > --047d7b41ce401512f9052d8e5a8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Addendum: I have discovered that there are multiple ways t= o rename a file in dired.=C2=A0 I simply deleted the a, and replaced it wit= h a b, while dired was in Editable mode.
On Tue, Mar 8, 2016 at 1:45 PM, Marty Rosenber= g <marty.rosenberg@gmail.com> wrote:
Strange, I just checked out git master,= and reproduced it (I used=C2=A0e0400b72a24). Did you both quote and escape= the space? (alternately, you can run mkdir escape\\\ me) =C2=A0I've re= produced this on both an ubuntu system, an arch-linux system, and a gentoo = system.=C2=A0 I haven't tried on a redhat based system, nor on OSX.

On Tue, Mar 8, 2016 at 3:52 AM, Marcin Borkowski <= span dir=3D"ltr"><mb= ork@mbork.pl> wrote:

On 2016-03-08, at 09:29, Marty Rosenberg <marty.rosenberg@gmail.com> wrote:
> most of this happens outside of emacs:
> mkdir 'escape\ me'
> cd 'escape\ me'
> touch a
> emacs -Q .
> C-x C-q
> rename the file from a to b
> C-c C-c
>
> when I inspect the error, it looks like it is attempting to rename
> /home/mjrosenb/tmp/escapeme/a to /home/mjrosenb/tmp/escapeme/b
> which fails, because the name of the directory is 'escape\ me'= , not
> 'escapeme'

Hi,

and thanks for the report.

However, it seems to work just fine on GNU Emacs 25.1.50.6 (commit
ac9a931).=C2=A0 It might have been fixed in the meantime.

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University


--047d7b41ce401512f9052d8e5a8a-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 14:19:14 2016 Received: (at 22938) by debbugs.gnu.org; 8 Mar 2016 19:19:14 +0000 Received: from localhost ([127.0.0.1]:40015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adNA2-0006ps-06 for submit@debbugs.gnu.org; Tue, 08 Mar 2016 14:19:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49341) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adNA0-0006pf-3o for 22938@debbugs.gnu.org; Tue, 08 Mar 2016 14:19:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adN9r-0008B4-SM for 22938@debbugs.gnu.org; Tue, 08 Mar 2016 14:19:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adN9r-0008B0-PQ; Tue, 08 Mar 2016 14:19:03 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3074 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adN9q-0006fP-Ud; Tue, 08 Mar 2016 14:19:03 -0500 Date: Tue, 08 Mar 2016 21:19:12 +0200 Message-Id: <837fhcrd5b.fsf@gnu.org> From: Eli Zaretskii To: Marty Rosenberg In-reply-to: (message from Marty Rosenberg on Tue, 8 Mar 2016 13:45:07 -0500) Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces References: <87oaapxsg5.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22938 Cc: 22938@debbugs.gnu.org, mbork@mbork.pl X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 8 Mar 2016 13:45:07 -0500 > From: Marty Rosenberg > Cc: 22938@debbugs.gnu.org > > Strange, I just checked out git master, and reproduced it (I used e0400b72a24). Did you both quote and > escape the space? (alternately, you can run mkdir escape\\\ me) I've reproduced this on both an ubuntu > system, an arch-linux system, and a gentoo system. I haven't tried on a redhat based system, nor on OSX. You are right, I see it too. AFAICS, the problem is in wdired-normalize-filename: it removes the backslash and the following blank from the name, thus creating a name of a file that doesn't exist. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 14:29:47 2016 Received: (at control) by debbugs.gnu.org; 8 Mar 2016 19:29:47 +0000 Received: from localhost ([127.0.0.1]:40023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adNKF-00075x-8I for submit@debbugs.gnu.org; Tue, 08 Mar 2016 14:29:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52733) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adNKD-00075k-62 for control@debbugs.gnu.org; Tue, 08 Mar 2016 14:29:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adNK7-0003Fy-6B for control@debbugs.gnu.org; Tue, 08 Mar 2016 14:29: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=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adNK7-0003Fu-2q for control@debbugs.gnu.org; Tue, 08 Mar 2016 14:29:39 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1adNK6-0003fg-Lo for control@debbugs.gnu.org; Tue, 08 Mar 2016 14:29:38 -0500 Subject: control message for bug 22938 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 08 Mar 2016 14:29:38 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) merge 14521 22938 From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 15:48:37 2016 Received: (at 22938-done) by debbugs.gnu.org; 8 Mar 2016 20:48:37 +0000 Received: from localhost ([127.0.0.1]:40105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adOYX-0002GX-Gq for submit@debbugs.gnu.org; Tue, 08 Mar 2016 15:48:37 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:51961) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adOYW-0002GP-09 for 22938-done@debbugs.gnu.org; Tue, 08 Mar 2016 15:48:36 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qKTCP2l3bz3hjdF; Tue, 8 Mar 2016 21:48:33 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qKTCP11Gdzvh1p; Tue, 8 Mar 2016 21:48:33 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 3bHShgu61fC9; Tue, 8 Mar 2016 21:48:32 +0100 (CET) X-Auth-Info: NVZhEzc1I+O4cdb57T9+WPQw8+Ys3d86lEBewIpr2e352Z0D01IGmARQaWpXbimc Received: from igel.home (ppp-88-217-7-218.dynamic.mnet-online.de [88.217.7.218]) by mail.mnet-online.de (Postfix) with ESMTPA; Tue, 8 Mar 2016 21:48:32 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id A981A2C256E; Tue, 8 Mar 2016 21:48:31 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces References: <87oaapxsg5.fsf@mbork.pl> <837fhcrd5b.fsf@gnu.org> X-Yow: Hello? Enema Bondage? I'm calling because I want to be happy, I guess.. Date: Tue, 08 Mar 2016 21:48:31 +0100 In-Reply-To: <837fhcrd5b.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Mar 2016 21:19:12 +0200") Message-ID: <87si00g0gw.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22938-done Cc: mbork@mbork.pl, 22938-done@debbugs.gnu.org, Marty Rosenberg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) Eli Zaretskii writes: > AFAICS, the problem is in wdired-normalize-filename: it removes the > backslash and the following blank from the name, thus creating a name > of a file that doesn't exist. Should be fixed in commit 02bf7cc. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 16:06:28 2016 Received: (at 22938-done) by debbugs.gnu.org; 8 Mar 2016 21:06:28 +0000 Received: from localhost ([127.0.0.1]:40129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adOpo-0002kT-Gd for submit@debbugs.gnu.org; Tue, 08 Mar 2016 16:06:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54970) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adOpm-0002kH-4T for 22938-done@debbugs.gnu.org; Tue, 08 Mar 2016 16:06:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adOpe-0000ed-0c for 22938-done@debbugs.gnu.org; Tue, 08 Mar 2016 16:06:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adOpP-0000Ty-AW; Tue, 08 Mar 2016 16:06:03 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3199 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adOpO-0005uM-Hf; Tue, 08 Mar 2016 16:06:02 -0500 Date: Tue, 08 Mar 2016 23:06:12 +0200 Message-Id: <83wppcptmj.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: <87si00g0gw.fsf@linux-m68k.org> (message from Andreas Schwab on Tue, 08 Mar 2016 21:48:31 +0100) Subject: Re: bug#22938: 24.5; Cannot rename files in directory with escaped spaces References: <87oaapxsg5.fsf@mbork.pl> <837fhcrd5b.fsf@gnu.org> <87si00g0gw.fsf@linux-m68k.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22938-done Cc: mbork@mbork.pl, 22938-done@debbugs.gnu.org, marty.rosenberg@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Andreas Schwab > Cc: Marty Rosenberg , 22938-done@debbugs.gnu.org, mbork@mbork.pl > Date: Tue, 08 Mar 2016 21:48:31 +0100 > > Eli Zaretskii writes: > > > AFAICS, the problem is in wdired-normalize-filename: it removes the > > backslash and the following blank from the name, thus creating a name > > of a file that doesn't exist. > > Should be fixed in commit 02bf7cc. Thanks! From unknown Sat Jun 14 03:54:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Apr 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator