From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#47493: 27.1; auto-save-file-name-transforms with uniquify should not create invalid filenames Date: Tue, 30 Mar 2021 09:55:26 +0200 Message-ID: <87ft0d3wk1.fsf@gmx.de> References: <877dlpqloo.fsf@delllaptop.lockywolf.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25729"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47493@debbugs.gnu.org To: Vladimir Nikishkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 30 09:56:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lR9EQ-0006bC-4w for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Mar 2021 09:56:10 +0200 Original-Received: from localhost ([::1]:51348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lR9EP-0006Tb-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Mar 2021 03:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lR9EH-0006TI-W6 for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2021 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lR9EH-0004bK-Og for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2021 03:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lR9EH-0003O8-OI for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2021 03:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Mar 2021 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47493 X-GNU-PR-Package: emacs Original-Received: via spool by 47493-submit@debbugs.gnu.org id=B47493.161709094212988 (code B ref 47493); Tue, 30 Mar 2021 07:56:01 +0000 Original-Received: (at 47493) by debbugs.gnu.org; 30 Mar 2021 07:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:50323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR9Dy-0003NP-0W for submit@debbugs.gnu.org; Tue, 30 Mar 2021 03:55:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lR9Du-0003N7-Q2 for 47493@debbugs.gnu.org; Tue, 30 Mar 2021 03:55:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617090932; bh=BvpZJTUs+IesuzHxZUYZZI8GAIZPnZJhfRHhn10VOdM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=gnL7dmXVDFoSER/17DAu2Rj75SYjJlaY4VqzqDS8Ufl/sBzg63lid1+/SW2eZ6paA yguzbuMBKpuTabbJR/RhaJRLtwLcemWeDcoWrles77MQKUxPCTTE0mpdSYsIj4mEcw Xt5+cPA08VBBR1eq7T3zGykzQok9PuO8pz6bWjX8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.60.94]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mof9F-1lyI6g3f4r-00p5bG; Tue, 30 Mar 2021 09:55:28 +0200 In-Reply-To: <877dlpqloo.fsf@delllaptop.lockywolf.net> (Vladimir Nikishkin's message of "Tue, 30 Mar 2021 13:06:40 +0800") X-Provags-ID: V03:K1:5IhObNaiDTHLHxWBgjy4OPx1Ux4sevsp9oGUNd2vJEdt6BjMPu8 Q8CE/4JkKYuftaAYCOuLHPe3tlWsbGNe4iOB/32k0gF2SgFDjusMdxfE655pbpY0/sxZrfs EuofOaVHvD42Oz8z7hiplRuLTxF+4lGrGa2GDfgl+VqvRF7Ez8bzPrCHmG1sL3fpn4B4s3+ GOU0h6chFgJ7ZZryJnoUg== X-UI-Out-Filterresults: notjunk:1;V03:K0:SSf5MeI5mnE=:8fJyLyblguoVCH6t6eZVWh EFY1u62E/DAEUirl4yXIb7XuNe7F4kzjzCn9UJd9oVFRimFDVRPqZ1BllzxSLFjsBlGqnHMHv Z9W/i7uYkjam60YrsMyjGW/JwE/ah0zR498XUh5mUDRJZn4pY3UzM8tKl0JBnCUmLue+kvb8E FtsWsTALm+mw5BWeI6XXACPTkRTtIQJapz7NsoM0wLE2EZJQMkiZkzEC2L8xvndVKqM56fH/j cXYpF0+J3bgVU/19ig3yeSc6kUdCX+pW1/PQSm9nD3dN7V4IAxSc7qKS3dMvKX1Eh75ii7+UQ 4Dy0uFCRAoU2Fti66cH7bzklz5arEusUbGfeDAiFrM1WWLITTo3XrXHTm/+t5HNdLpiv4nzT7 tulpjEpQ36i6kZsrilZxqYlU7GVC7ifzbqRawsiDMUQwJ1odEceocBKRrEw5qq/mnU8pwuGBV JR9JiZPLvaoZ8LDThYWcyUCZR7QUrP3RBOQ81l8eo9yaHrws4nTIPbRa8b/4jGZA/d3TEQy3W Q81XXFwyGSG+1/kGhaDEXD5Dc4K2DWF/I/s/+mB/9rBxmfuSEj5hQHKvsubO2cIi8oFqCKjnw WwqteF9ktcqHYovKu82P56olgHeSr8tbjFmwGH8zL0vQLRotfb3q/CUFbTXf7b076TAFdjkEt hh3cEEYHPJW04shv6uIz66MO/15dWy4FI44mfESPkv96/mvQxxVEEunF6XpBoCfegth/qXL5K aHTi4YQJvg/nXtDBNphCp+s8LOp5Pe7aAGY+ShjQ7MgrnMLG028QB54dlUwqQSS9LStpEoIF X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203284 Archived-At: Vladimir Nikishkin 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.