GNU bug report logs -
#47493
27.1; auto-save-file-name-transforms with uniquify should not create invalid filenames
Previous Next
Reported by: Vladimir Nikishkin <lockywolf <at> gmail.com>
Date: Tue, 30 Mar 2021 05:07:01 UTC
Severity: normal
Tags: patch
Found in version 27.1
Fixed in version 28.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Vladimir Nikishkin <lockywolf <at> gmail.com> writes:
> Dear Emacs developers,
Hi Vladimir,
> In order to avoid littering my file system with autosaves, I have the
> following setting in my .emacs:
>
> #+begin_src
> (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/autosave/" t)))
> #+end_src
>
> The t flag is the 'uniquify' flag, which roughly means "replace all
> slashes by exclamation marks".
>
> However, this way it is possible to create a file name that is invalid
> for use in the file system tree, especially if the file you are editing
> is deeply nested.
Could you pls show an example of such invalid file name?
> Would it be possible, to, maybe, add a flag "ensure-filesystem-correctness"?
Maybe we could have a flag which means "convert the directory part of a
file name into sha1" (or whatever `secure-hash' provides).
> Your sincerely,
> Vladimir
Best regards, Michael.
This bug report was last modified 4 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.