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: miha <at> kamnitnik.top
To: 58182 <at> debbugs.gnu.org
Subject: bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works
Date: Thu, 29 Sep 2022 23:31:17 +0200
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]

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.