GNU bug report logs - #31068
27.0.50; Renaming archives fails due to tramp-archive

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Thu, 5 Apr 2018 07:33:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 27.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31068 in the body.
You can then email your comments to 31068 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Thu, 05 Apr 2018 07:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Allen Li <darkfeline <at> felesatra.moe>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 05 Apr 2018 07:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Allen Li <darkfeline <at> felesatra.moe>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Renaming archives fails due to tramp-archive
Date: Thu, 5 Apr 2018 00:31:55 -0700
1. touch /tmp/foo.7z
2. emacs -Q
3. C-x C-f /tmp RET
4. Use R to rename foo.7z to bar.7z

An error is signaled.  The debug output:

Debugger entered--Lisp error: (user-error "Package `tramp-archive' not
supported")
  signal(user-error ("Package `tramp-archive' not supported"))
  tramp-error(nil user-error "Package `tramp-archive' not supported")
  apply(tramp-error nil user-error "Package `tramp-archive' not supported" nil)
  tramp-user-error(nil "Package `tramp-archive' not supported")
  tramp-archive-file-name-handler(expand-file-name "/tmp/bar.7z/" nil)
  expand-file-name("/tmp/bar.7z/" nil)
  apply(expand-file-name ("/tmp/bar.7z/" nil))
  tramp-autoload-file-name-handler(expand-file-name "/tmp/bar.7z/" nil)
  expand-file-name("/tmp/bar.7z/")
  dired-fun-in-all-buffers("/tmp/bar.7z/" nil dired-rename-subdir-1
"/tmp/bar.7z/" "/tmp/foo.7z/")
  dired-rename-subdir("/tmp/bar.7z" "/tmp/foo.7z")
  dired-rename-file("/tmp/bar.7z" "/tmp/foo.7z" nil)
  dired-create-files(dired-rename-file "Move" ("/tmp/bar.7z")
#f(compiled-function (from) #<bytecode 0x1aa60cd>) t)
  dired-do-create-files(move dired-rename-file "Move" nil t "Rename")
  dired-do-rename(nil)
  funcall-interactively(dired-do-rename nil)
  call-interactively(dired-do-rename nil nil)
  command-execute(dired-do-rename)

This error reliably happens the first time after Emacs is started; it
often goes away after the first time.  The file is renamed despite the
error.

In GNU Emacs 27.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version 3.22.29)
 of 2018-04-05 built on cielnosurge
Repository revision: 0b690a83f674a160ccbaa9f374226b1fcfb2d535
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Arch Linux

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Debug on Error enabled globally
("^Exit the snippet first!$" beginning-of-line beginning-of-buffer
end-of-line end-of-buffer end-of-file buffer-read-only
file-supersession mark-inactive)
Entering debugger...
Mark set

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
THREADS LIBSYSTEMD JSON LCMS2

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

Major mode: Dired by name




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Thu, 05 Apr 2018 12:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 31068 <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Thu, 05 Apr 2018 14:33:14 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

> 1. touch /tmp/foo.7z
> 2. emacs -Q
> 3. C-x C-f /tmp RET
> 4. Use R to rename foo.7z to bar.7z
>
> An error is signaled.  The debug output:

The relevant parts are

>   dired-fun-in-all-buffers("/tmp/bar.7z/" nil dired-rename-subdir-1 "/tmp/bar.7z/" "/tmp/foo.7z/")
>   dired-rename-subdir("/tmp/bar.7z" "/tmp/foo.7z")
>   dired-rename-file("/tmp/bar.7z" "/tmp/foo.7z" nil)

Why does `dired-rename-file' calls `dired-rename-subdir'? "/tmp/bar.7z"
is just a file.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Thu, 05 Apr 2018 12:58:02 GMT) Full text and rfc822 format available.

Message #11 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 31068 <at> debbugs.gnu.org, Allen Li <darkfeline <at> felesatra.moe>
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Thu, 05 Apr 2018 14:57:01 +0200
On Apr 05 2018, Michael Albinus <michael.albinus <at> gmx.de> wrote:

> Why does `dired-rename-file' calls `dired-rename-subdir'? "/tmp/bar.7z"
> is just a file.

A file can be a directory, too.

  ;; See if it's an inserted subdir, and rename that, too.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Thu, 05 Apr 2018 13:40:02 GMT) Full text and rfc822 format available.

Message #14 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 31068 <at> debbugs.gnu.org, Allen Li <darkfeline <at> felesatra.moe>
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Thu, 05 Apr 2018 15:39:30 +0200
Andreas Schwab <schwab <at> suse.de> writes:

>> Why does `dired-rename-file' calls `dired-rename-subdir'? "/tmp/bar.7z"
>> is just a file.
>
> A file can be a directory, too.
>
>   ;; See if it's an inserted subdir, and rename that, too.

Yes. But "/tmp/bar.7z" isn't a directory, one should call
`file-directory-p' first.

> Andreas.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Mon, 14 May 2018 11:58:02 GMT) Full text and rfc822 format available.

Message #17 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 31068 <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Mon, 14 May 2018 13:56:46 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

Hi Allen,

> 1. touch /tmp/foo.7z
> 2. emacs -Q
> 3. C-x C-f /tmp RET
> 4. Use R to rename foo.7z to bar.7z
>
> An error is signaled.  The debug output:

I've followed exactly the recipe, the error didn't happen. Could you pls
recheck with this recipe?

And could you pls show the value of `file-name-handler-alist' after step
2 and after step 4?

Thanks, and best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Tue, 15 May 2018 06:57:02 GMT) Full text and rfc822 format available.

Message #20 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Allen Li <darkfeline <at> felesatra.moe>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 31068 <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Mon, 14 May 2018 23:55:43 -0700
On Mon, May 14, 2018 at 4:57 AM Michael Albinus <michael.albinus <at> gmx.de>
wrote:

> Allen Li <darkfeline <at> felesatra.moe> writes:

> Hi Allen,

> > 1. touch /tmp/foo.7z
> > 2. emacs -Q
> > 3. C-x C-f /tmp RET
> > 4. Use R to rename foo.7z to bar.7z
> >
> > An error is signaled.  The debug output:

> I've followed exactly the recipe, the error didn't happen. Could you pls
> recheck with this recipe?

With master as I am writing this, I can reproduce with this recipe,
although the symptom has changed slightly.

An error no longer escapes to the command loop.  A message is printed:

tramp-error: Package `tramp-archive' not supported

The file foo.7z disappears from the Dired buffer.  Refreshing the buffer
(g) shows that the file has been renamed to bar.7z

Afterward in the same session, the bug no longer occurs.


> And could you pls show the value of `file-name-handler-alist' after step
> 2 and after step 4?

Before

(("\\`\\(.+\\.\\(?:7z\\|CAB\\|LZH\\|MSU\\|ZIP\\|a\\(?:pk\\|r\\)\\|
c\\(?:ab\\|pio\\)\\|de\\(?:b\\|pot\\)\\|exe\\|iso\\|jar\\|lzh\\|m\\(?:su\\|
tree\\)\\|od[bfgpst]\\|pax\\|r\\(?:ar\\|pm\\)\\|shar\\|t\\(?:ar\\|
[bglx]z\\)\\|warc\\|x\\(?:ar\\|p[is]\\)\\|zip\\)\\(?:\\.\\(?:Z\\|bz2\\|gz\\|
l\\(?:rz\\|z\\(?:ma\\|[4o]\\)?\\)\\|uu\\|xz\\)\\)*\\)\\(/.*\\)\\'"
. tramp-autoload-file-name-handler)
   ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" . epa-file-handler)

("\\(?:\\.tzst\\|\\.zst\\|\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|
\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|
\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'"
. jka-compr-handler)
   ("\\`/[^/|:]+:" . tramp-autoload-file-name-handler)
   ("\\`/:" . file-name-non-special))

After

(("\\(?:\\.tzst\\|\\.zst\\|\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|
\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|
\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'"
. jka-compr-handler)
   ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" . epa-file-handler)

("\\`\\(.+\\.\\(?:7z\\|CAB\\|LZH\\|MSU\\|ZIP\\|a\\(?:pk\\|r\\)\\|c\\(?:ab\\|
pio\\)\\|de\\(?:b\\|pot\\)\\|exe\\|iso\\|jar\\|lzh\\|m\\(?:su\\|tree\\)\\|
od[bfgpst]\\|pax\\|r\\(?:ar\\|pm\\)\\|shar\\|t\\(?:ar\\|[bglx]z\\)\\|warc\\|
x\\(?:ar\\|p[is]\\)\\|zip\\)\\(?:\\.\\(?:Z\\|bz2\\|gz\\|l\\(?:rz\\|
z\\(?:ma\\|[4o]\\)?\\)\\|uu\\|xz\\)\\)*\\)\\(/.*\\)\\'"
. tramp-archive-file-name-handler)
   ("\\`/\\(\\([^/|:]+:[^/|:]*|\\)*[^/|:]+\\(:[^/|:]*\\)?\\)?\\'" .
tramp-completion-file-name-handler)
   ("^/\\(\\(?:\\([a-zA-Z0-9-]+\\):\\(?:\\([^/|:
]+\\)@\\)?\\(\\(?:[a-zA-Z0-9_.%-]+\\|
\\[\\(?:\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+\\)?]\\)\\(?:#[0-9]+\\)?\\)?|
\\)+\\)?\\([a-zA-Z0-9-]+\\):\\(?:\\([^/|:
]+\\)@\\)?\\(\\(?:[a-zA-Z0-9_.%-]+\\|
\\[\\(?:\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+\\)?]\\)\\(?:#[0-9]+\\)?\\)?:\\([^\n\r]*\\'\\)"
. tramp-file-name-handler)
   ("\\`/:" . file-name-non-special))


> Thanks, and best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Tue, 15 May 2018 09:15:02 GMT) Full text and rfc822 format available.

Message #23 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 31068 <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Tue, 15 May 2018 11:14:42 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

Hi Allen,

> After
>
> ("\\`\\(.+\\.\\(?:7z\\|CAB\\|LZH\\|MSU\\|ZIP\\|a\\(?:pk\\|r\\)\\|c\\(?:ab\\|
> pio\\)\\|de\\(?:b\\|pot\\)\\|exe\\|iso\\|jar\\|lzh\\|m\\(?:su\\|tree\\)\\|
> od[bfgpst]\\|pax\\|r\\(?:ar\\|pm\\)\\|shar\\|t\\(?:ar\\|[bglx]z\\)\\|warc\\|
> x\\(?:ar\\|p[is]\\)\\|zip\\)\\(?:\\.\\(?:Z\\|bz2\\|gz\\|l\\(?:rz\\|
> z\\(?:ma\\|[4o]\\)?\\)\\|uu\\|xz\\)\\)*\\)\\(/.*\\)\\'"
> . tramp-archive-file-name-handler)

Thanks. This makes it clear; the handler shall be removed in case
tramp-archive is not able to work properly.

I've committed a patch to the master branch; could you pls check?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31068; Package emacs. (Thu, 17 May 2018 05:00:02 GMT) Full text and rfc822 format available.

Message #26 received at 31068 <at> debbugs.gnu.org (full text, mbox):

From: Allen Li <darkfeline <at> felesatra.moe>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 31068 <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Wed, 16 May 2018 21:59:31 -0700
Confirmed fixed, thank you.
On Tue, May 15, 2018 at 2:14 AM Michael Albinus <michael.albinus <at> gmx.de>
wrote:

> Allen Li <darkfeline <at> felesatra.moe> writes:

> Hi Allen,

> > After
> >
> >
("\\`\\(.+\\.\\(?:7z\\|CAB\\|LZH\\|MSU\\|ZIP\\|a\\(?:pk\\|r\\)\\|c\\(?:ab\\|
> >
pio\\)\\|de\\(?:b\\|pot\\)\\|exe\\|iso\\|jar\\|lzh\\|m\\(?:su\\|tree\\)\\|
> >
od[bfgpst]\\|pax\\|r\\(?:ar\\|pm\\)\\|shar\\|t\\(?:ar\\|[bglx]z\\)\\|warc\\|
> > x\\(?:ar\\|p[is]\\)\\|zip\\)\\(?:\\.\\(?:Z\\|bz2\\|gz\\|l\\(?:rz\\|
> > z\\(?:ma\\|[4o]\\)?\\)\\|uu\\|xz\\)\\)*\\)\\(/.*\\)\\'"
> > . tramp-archive-file-name-handler)

> Thanks. This makes it clear; the handler shall be removed in case
> tramp-archive is not able to work properly.

> I've committed a patch to the master branch; could you pls check?

> Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 17 May 2018 06:56:02 GMT) Full text and rfc822 format available.

Notification sent to Allen Li <darkfeline <at> felesatra.moe>:
bug acknowledged by developer. (Thu, 17 May 2018 06:56:02 GMT) Full text and rfc822 format available.

Message #31 received at 31068-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 31068-done <at> debbugs.gnu.org
Subject: Re: bug#31068: 27.0.50; Renaming archives fails due to tramp-archive
Date: Thu, 17 May 2018 08:55:44 +0200
Version: 27.1

Allen Li <darkfeline <at> felesatra.moe> writes:

Hi Allen,

> Confirmed fixed, thank you.

Thanks for the feedback, I'm closing the bug.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Jun 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.