GNU bug report logs - #50976
28.0.50; Tramp read-file-name regression

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sat, 2 Oct 2021 19:28:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Juri Linkov <juri <at> linkov.net>
Cc: 50976 <at> debbugs.gnu.org
Subject: bug#50976: 28.0.50; Tramp read-file-name regression
Date: Tue, 05 Oct 2021 16:32:34 +0200
Juri Linkov <juri <at> linkov.net> writes:

Hi Juri,

> This is a recent regression.  When visiting a remote Dired buffer,
> marking one file with C-SPC (set-mark-command), then moving point
> to another Dired file, then typing '=' (dired-diff) and 'RET'
> fails with the error "Attempt to compare the file to itself".
>
> This is because 'read-file-name' in the interactive spec of 'dired-diff'
> now returns the remote directory name after typing RET,
> while some time ago it correctly returned the default file name,
> that is the marked file that was used as the arg 'file' of 'dired-diff'.
>
> In local filesystems, RET still correctly returns the default file,
> not a directory name as it does now for remote directories.

FTR, git bisect has identified the following guilty commit:

--8<---------------cut here---------------start------------->8---
commit 225ca617b70d3c70376c2d9bf38ced2f2323b26e (refs/bisect/bad)
Author: Michael Albinus <michael.albinus <at> gmx.de>
Date:   Fri Jul 2 14:51:23 2021 +0200

    Implement another fix for bug#49229

    * lisp/minibuffer.el (read-file-name-default): Respect remote files.
    (Bug#49229)
--8<---------------cut here---------------end--------------->8---

I will check how bug#49229 could be fixed differently.

Best regards, Michael.




This bug report was last modified 3 years and 212 days ago.

Previous Next


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