GNU bug report logs - #58182
29.0.50; rename-visited-file: Selecting a directory almost works

Previous Next

Package: emacs;

Reported by: miha <at> kamnitnik.top

Date: Thu, 29 Sep 2022 21:18:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: miha <at> kamnitnik.top
Cc: 58182 <at> debbugs.gnu.org
Subject: bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works
Date: Fri, 30 Sep 2022 15:07:40 +0200
miha <at> kamnitnik.top writes:

> Visit an existing file and type
>
> M-x rename-visited-file RET /path/to/existing/directory/ending/with/slash/ RET
>
> and notice that the command half succeeds.
>
> The file is successfully copied to the target directory, because
> 'rename-file' handles directories. 'set-visited-file-name' doesn't
> handle directories and signals an error.

I've now fixed this in Emacs 29.




This bug report was last modified 2 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.