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: Sat, 08 May 2021 14:42:17 +0200 Message-ID: <87im3tiehi.fsf@gmx.de> References: <877dlpqloo.fsf@delllaptop.lockywolf.net> <87ft0d3wk1.fsf@gmx.de> <87h7kjxnmq.fsf@gmx.de> <875yztqu9l.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36593"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Vladimir Nikishkin , 47493@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 08 14:43:11 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 1lfMIZ-0009MY-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 14:43:11 +0200 Original-Received: from localhost ([::1]:42598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfMIX-0003k3-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 08:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfMIQ-0003j8-Ef for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 08:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfMIQ-0001e8-63 for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 08:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfMIQ-00078u-4n for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 08:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 May 2021 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47493-submit@debbugs.gnu.org id=B47493.162047774827449 (code B ref 47493); Sat, 08 May 2021 12:43:02 +0000 Original-Received: (at 47493) by debbugs.gnu.org; 8 May 2021 12:42:28 +0000 Original-Received: from localhost ([127.0.0.1]:50068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfMHr-00078f-V2 for submit@debbugs.gnu.org; Sat, 08 May 2021 08:42:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfMHo-00078Z-Uh for 47493@debbugs.gnu.org; Sat, 08 May 2021 08:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620477738; bh=gS5J/VFam/oWopKN1uLOYhwKEsGXHyYd9tooVjWR9+I=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=RBO3jR7jR1/S7dQjZNFcntKZi1kMWRdm/U9SKlUa5GDPB5ElaFhV7FghReClO/Trh RU8V841NeKZzsDVRf33bK2b/LisOasD7GbH4RKpTM99f45G5+SGB/ETTX3v7cCm62D oW5wYa+g6yU+2wszPfR5FjRNCJC8J0uBBk9wlMMo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.118.236]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCbIn-1lnuiv0jQZ-009guK; Sat, 08 May 2021 14:42:18 +0200 In-Reply-To: <875yztqu9l.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 08 May 2021 14:34:14 +0200") X-Provags-ID: V03:K1:t4DkNVdX/m8FBWFfUsvWuHZlU8TDlKoBhf1QmaDqd5+o0ezUswt klJvzMR8yFSKcwB0GBIzEfByRorlCOf6G8SKifMEQiqAizUY9y2WXMVjMx8u8yf3ZPGnIh9 6k+DT5jQUwGyV69i5azGvV51r0/ybMDwNZzcE8xNfewYsO1is4Y0A71JTMTMrxzGvH82ScR M0kEehbeEG7sTe0o5skqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ns2A9G0hN8A=:6XG/m1hx7qY8CKCHWYMBBu M8PF8ph+8JcFIqsNm4qAY7OruLDROY23rEJjMWExk3p/ky6REkSikcbAXzeiuX0tcyvyON98c Uaq+NW6qmHV419SZ/Zz/3v/n7PgkVJ527nvsg40v6qBkfxtOveSwbxXSpq+NPezbVHCkyOh/1 Md93fbaF1aMCLvTkzr4zpnalSpU6Q+gruamBTkOuTifiDMqQ8C9E2A6wkgGGkKlhJTZSUUPuX ul0dxYNa3XITJ+aIjM0NABgBvG9XBu24HRGfTZacLyFL0OCXrhW27pycV8oup7XNKm7G1BGHp jjaWDFIM5NbHJbIfzLLm8OHcgsybbKc0YrcsBqT2FJFLL0gdJ+5sQ/fvt6QDT1/zeh+WAcjMv JiANWdGfaNknustwu+oYBFSMb7+dMiCWdrqHPwoDFvSaATS9gwocySSnZxzQ1nlUi6OjCSYc0 4U398LOpeVRgb/saJctKXe8MaQhmhr5XzCQ5f9R8wMdXLYj2Pw3EBKkagC8bqSvyMj4PIlYwU zBYRH8MKLov/1wMpi/+igOQ08F1/acjYYbF9d46DQ712zI3pvmWSLbuGuct67p8+27P0PS3cT txC2NWt/Lr4TuyYj1FB+hJAcPHblm8THD7r/JqN99EaDAM81NQy+15z9DcgmbVoow+NDn+lMO B7p4SYw7AHg884H5NiCi8ndkClEEsm2jMbakVRK2QNhG/dINb7w2COGZv9nS/qk5lWmPuFjtb t4SAg4vimOKTsHNKC8Wz4kFJ14xezmCyke/1nceL+tSR4L4G3vWHw3xAXvZNKRnss2hV6mB5 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:206011 Archived-At: Lars Ingebrigtsen writes: Hi Lars, > Michael Albinus writes: > >>> Maybe we could have a flag which means "convert the directory part of a >>> file name into sha1" (or whatever `secure-hash' provides). >> >> Nobody has commented. Well, in a couple of days I will push the appended >> patch, unless there are objections. > > As far as I can tell, the patch wasn't pushed? No. It is in my todo queue, but I wanted to check first, whether Tramp needs some changes in its own implementation of make-auto-save-file-name >> + If the optional element UNIQUIFY is a symbol returned by function >> + `secure-hash-algorithms', the auto-save file name is constructed >> + by taking the directory part of the replaced file-name, >> + concatenated with the buffer file name run through `secure-hash' >> + instead. This returns a valid name for your filesystem any way. > > Vladimir didn't have any examples for invalid file names, apparently, > but it looks like a good change to me. (I.e., being able to opt in to > using a hash instead of !!-ing.) The patch is planned to be pushed, once I find the time to fix that remaining question. Or does somebody else want to eat this cookie? Best regards, Michael.