From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Christian Seberino Newsgroups: gmane.emacs.bugs Subject: bug#36932: 25.2; vc-rename-file does NOT handle ~ in paths Date: Mon, 5 Aug 2019 10:49:17 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000008b4e7058f60a73d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="162898"; mail-complaints-to="usenet@blaine.gmane.org" To: 36932@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 05 17:57:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hufMP-000gCG-3i for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Aug 2019 17:57:21 +0200 Original-Received: from localhost ([::1]:55258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hufMO-0005iS-2Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Aug 2019 11:57:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57472) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hufM8-0005Kq-5Y for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hufM6-0000ga-9d for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:57:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hufM6-0000gT-6l for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hufM6-0007IR-5A for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christian Seberino Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2019 15:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36932 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156502056727975 (code B ref -1); Mon, 05 Aug 2019 15:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2019 15:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:35704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hufLD-0007H8-5J for submit@debbugs.gnu.org; Mon, 05 Aug 2019 11:56:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hufEp-00076H-6f for submit@debbugs.gnu.org; Mon, 05 Aug 2019 11:49:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hufEn-0000iS-95 for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:49:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hufEl-0005Fy-Bc for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:49:29 -0400 Original-Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:36204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hufEl-0005FX-3h for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2019 11:49:27 -0400 Original-Received: by mail-qk1-x72a.google.com with SMTP id g18so60439046qkl.3 for ; Mon, 05 Aug 2019 08:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WSqqQTaNKAEgr7fyV9AFXXaP8vtUI50Jhh1BLoPv7SQ=; b=lY9sHVOW5ZmOtmsayl9sUwqLhDSev8OE8IIoOSOuk1BuRwp4q+JJXHWVIrS6kjY52j TZE0I7T3dc0AVEJGruqYRAZ/1QG6ouwizOVCOr+tR7fYfosAQQvQoDaHePwqhP6k9eRM ClStL3vH4Uk2rPiObI/Gfbe1p2de2QfZSdV3CEWqrcCwoISR18zlu6PA1I6Jjo+9iDV9 gOZGai8meSRiniFye2Ow6g16uKjVrlvm+x3KbCKSLuq1l3RZcZb8oPpBOOos22hWg1I0 3WFtetwyWPysGr7jQMtdQ+1yGMb2HtxpEBqC0mUMr2yLjPj2KyI51A2XfWb1Dom9vEiG kRsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WSqqQTaNKAEgr7fyV9AFXXaP8vtUI50Jhh1BLoPv7SQ=; b=I5XUqHBV1ebRwOCS/YMw+xfwrbjWuV6mSbBBFE88uUQIJD7kZkYZZ22Q0RvAZ54j3J oICBwNTrfE1Mia/0I4ErWgURmHBv3PvdopB1LLxnE7Cd8ySZZk1M4kEtDB2FeVai2Ixv nOTKQ7DIf3AcnZr+h5Yg5Ry9Du/GKPIqisJ5ho0UySoPg3l5Gd/Lh47DWiQOgZditaoT 0Z8N7M2ArOZCpE+Bk6jS09HFzAp/9zJZ79RuA5OXjFJZPxdsEdzTkaUodL2VqjLa0T+p DTvYFipNA2W8rpHj0ACBkdFYc4qZnYCp5fMp81gJh+18YPn2zOaWny82qPvQOl3reXwd 84bw== X-Gm-Message-State: APjAAAVZzfcSujTYuL5AwBPfcvVzBJY2JvxjienyIw8WmjjvnMdZvHHD Q6VzSpH9GDY4suCaeMzRJG6gPjsWVZb3BJ7QC0xriJAmW40= X-Google-Smtp-Source: APXvYqwW+ULA1REV0zcHm6c3vgzDVu5s0cnRu5i2zddxiL35EcZLEVDBn/IuGEDEiaWykwAJKBfnvCyrEbjJ9tQ2SKY= X-Received: by 2002:a37:bd7:: with SMTP id 206mr102756344qkl.440.1565020165548; Mon, 05 Aug 2019 08:49:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Mon, 05 Aug 2019 11:56:06 -0400 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:164633 Archived-At: --00000000000008b4e7058f60a73d Content-Type: text/plain; charset="UTF-8" ---------------------------------------------------------------------------------------------------------------- To recreate problem: ---------------------------------------------------------------------------------------------------------------- 1. "emacs -q some_file" where some_file is a file in a directory under version control. ( verified this bug with Mercurial.) 2. M-x vc-rename-file 3. Select a file to rename by appending to the current directory path shown. 4. Select new file path and name. ---------------------------------------------------------------------------------------------------------------- Problem ---------------------------------------------------------------------------------------------------------------- The above steps will lead to a new windows displaying the file path name trying to change with the following error after it: No such file or directory abort: no files to copy ------------------------ The problem goes away if the ~ is removed from the original file path in step #3 above. Ironically, ~ is ok in step #4 above. In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian built on lgw01-amd64-050 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.1 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: 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 line-number-mode: t transient-mark-mode: t Recent messages: Loading 00debian-vars...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. vc-do-command: Running hg mv ~/Ws/Wb/erase/pp2 pp3...FAILED (status 255) Load-path shadows: /usr/share/emacs/25.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.2/lisp/textmodes/rst Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu mail-prsvr mail-utils vc cl-loaddefs pcase cl-lib vc-dispatcher vc-hg time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-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 cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 93065 8742) (symbols 48 20393 0) (miscs 40 775 146) (strings 32 16682 4987) (string-bytes 1 489323) (vectors 16 13009) (vector-slots 8 449947 6218) (floats 8 168 108) (intervals 56 287 0) (buffers 976 20)) --00000000000008b4e7058f60a73d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--------------------------------= ---------------------------------------------------------------------------= -----=C2=A0=C2=A0
To recreate problem:
-----------------------= ---------------------------------------------------------------------------= --------------

1. "emacs -q some_file"= =C2=A0 where some_file is a file in a directory under version control.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0( verified this bug with Mer= curial.)
2. M-x vc-rename-file
3. Select a file to rena= me by appending to the current directory path shown.
4. Select ne= w file path and name.

----------------------------= ---------------------------------------------------------------------------= ---------=C2=A0=C2=A0
Problem
---------------------= ---------------------------------------------------------------------------= ----------------=C2=A0=C2=A0

The above steps w= ill lead to a new windows displaying the file path name trying
to= change with the following error after it:

No such= file or directory
abort: no files to copy

=
------------------------

The proble= m goes away if the ~ is removed from the original file path in step #3 abov= e.
Ironically, ~ is ok in step #4 above.






In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version= 3.22.21)
=C2=A0of 2017-09-22, modified by Debian built on lgw01-amd64-0= 50
Windowing system distributor 'The X.Org Foundation', version = 11.0.11906000
System Description: Ubuntu 18.04.1 LTS

Configured u= sing:
=C2=A0'configure --build x86_64-linux-gnu --prefix=3D/usr
= =C2=A0--sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
=C2=A0--locals= tatedir=3D/var/lib --infodir=3D/usr/share/info
=C2=A0--mandir=3D/usr/sha= re/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs25:/etc= /emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-li= sp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--wi= th-sound=3Dalsa --without-gconf --build x86_64-linux-gnu
=C2=A0--prefix= =3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
=C2=A0--loca= lstatedir=3D/var/lib --infodir=3D/usr/share/info
=C2=A0--mandir=3D/usr/s= hare/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs25:/e= tc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-= lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--= with-sound=3Dalsa --without-gconf --with-x=3Dyes --with-x-toolkit=3Dgtk3=C2=A0--with-toolkit-scroll-bars 'CFLAGS=3D-g -O2
=C2=A0-fdebug-pre= fix-map=3D/build/emacs25-jYekUr/emacs25-25.2+1=3D. -fstack-protector-strong=
=C2=A0-Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wd= ate-time
=C2=A0-D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-= functions -Wl,-z,relro''

Configured features:
XPM JPEG TI= FF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELIN= UX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS = GTK3 X11

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: u= tf-8-unix

Major mode: Fundamental

Minor modes in effect:
= =C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-in= dent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-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 blink-cursor-mode:= t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tra= nsient-mark-mode: t

Recent messages:
Loading 00debian-vars...done=
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loadin= g /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading d= ebian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-de= fault.el (source)...done
Loading debian-ispell...done
Loading /var/ca= che/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading = /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading= /etc/emacs/site-start.d/50python-docutils.el (source)...done
For inform= ation about GNU Emacs and the GNU system, type C-h C-a.
vc-do-command: R= unning hg mv ~/Ws/Wb/erase/pp2 pp3...FAILED (status 255)

Load-path s= hadows:
/usr/share/emacs/25.2/site-lisp/debian-startup hides /usr/share/= emacs/site-lisp/debian-startup
/usr/share/emacs/site-lisp/rst hides /usr= /share/emacs/25.2/lisp/textmodes/rst

Features:
(shadow sort mail-= extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cach= e epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2= 231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums = mm-util help-fns help-mode easymenu
mail-prsvr mail-utils vc cl-loaddefs= pcase cl-lib vc-dispatcher vc-hg
time-date mule-util tooltip eldoc elec= tric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/comm= on-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-es= hadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu f= ont-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese = tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek = romanian slovak czech
european ethiopic indian cyrillic chinese charscri= pt case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-pr= eloaded nadvice
loaddefs button faces cus-face macroexp files text-prope= rties overlay
sha1 md5 base64 format env code-pages mule custom widgethashtable-print-readable backquote dbusbind inotify dynamic-setting
sy= stem-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi= -tty make-network-process emacs)

Memory information:
((conses 16 = 93065 8742)
=C2=A0(symbols 48 20393 0)
=C2=A0(miscs 40 775 146)
= =C2=A0(strings 32 16682 4987)
=C2=A0(string-bytes 1 489323)
=C2=A0(ve= ctors 16 13009)
=C2=A0(vector-slots 8 449947 6218)
=C2=A0(floats 8 16= 8 108)
=C2=A0(intervals 56 287 0)
=C2=A0(buffers 976 20))

--00000000000008b4e7058f60a73d--