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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58182 in the body.
You can then email your comments to 58182 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#58182; Package emacs. (Thu, 29 Sep 2022 21:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to miha <at> kamnitnik.top:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 29 Sep 2022 21:18:01 GMT) Full text and rfc822 format available.

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

From: miha <at> kamnitnik.top
To: bug-gnu-emacs <at> gnu.org
Subject: 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)]

bug marked as fixed in version 29.1, send any further explanations to 58182 <at> debbugs.gnu.org and miha <at> kamnitnik.top Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 30 Sep 2022 13:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58182; Package emacs. (Fri, 30 Sep 2022 13:09:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: miha <at> kamnitnik.top
Cc: 58182 <at> debbugs.gnu.org
Subject: Re: 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 29 Oct 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 286 days ago.

Previous Next


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