From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marty Rosenberg Newsgroups: gmane.emacs.bugs Subject: bug#22938: 24.5; Cannot rename files in directory with escaped spaces Date: Tue, 8 Mar 2016 14:11:43 -0500 Message-ID: References: <87oaapxsg5.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b41ce401512f9052d8e5a8a X-Trace: ger.gmane.org 1457464382 23844 80.91.229.3 (8 Mar 2016 19:13:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2016 19:13:02 +0000 (UTC) Cc: 22938@debbugs.gnu.org To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 08 20:12:52 2016 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 1adN3j-0000RK-JI for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Mar 2016 20:12:43 +0100 Original-Received: from localhost ([::1]:36760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adN3j-0000sE-1i for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Mar 2016 14:12:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adN37-00005H-NP for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 14:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adN34-0006hn-7i for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 14:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adN34-0006hi-5E for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 14:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adN33-0006eg-St for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2016 14:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marty Rosenberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Mar 2016 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22938 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22938-submit@debbugs.gnu.org id=B22938.145746431125567 (code B ref 22938); Tue, 08 Mar 2016 19:12:01 +0000 Original-Received: (at 22938) by debbugs.gnu.org; 8 Mar 2016 19:11:51 +0000 Original-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 Original-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 Original-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== X-Received: by 10.60.134.49 with SMTP id ph17mr18012218oeb.64.1457464303487; Tue, 08 Mar 2016 11:11:43 -0800 (PST) Original-Received: by 10.60.17.42 with HTTP; Tue, 8 Mar 2016 11:11:43 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114594 Archived-At: --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--