all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works
@ 2022-09-29 21:31 miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-30 13:07 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-29 21:31 UTC (permalink / raw)
  To: 58182

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works
  2022-09-29 21:31 bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-30 13:07 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-30 13:07 UTC (permalink / raw)
  To: miha; +Cc: 58182

miha@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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-30 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 21:31 bug#58182: 29.0.50; rename-visited-file: Selecting a directory almost works miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-30 13:07 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.