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: Wed, 07 Apr 2021 10:24:16 +0200 Message-ID: <877dley027.fsf@gmx.de> References: <877dlpqloo.fsf@delllaptop.lockywolf.net> <87ft0d3wk1.fsf@gmx.de> <87h7kjxnmq.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35157"; 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: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 07 10:25:19 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 1lU3V1-00093s-SB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 10:25:19 +0200 Original-Received: from localhost ([::1]:43606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU3V0-0002B9-Rk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 04:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU3Uk-0002A4-Pc for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 04:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lU3Uk-0001dD-Ho for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 04:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lU3Uk-0000yd-Dz for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 04:25: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: Wed, 07 Apr 2021 08:25: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.16177838663700 (code B ref 47493); Wed, 07 Apr 2021 08:25:02 +0000 Original-Received: (at 47493) by debbugs.gnu.org; 7 Apr 2021 08:24:26 +0000 Original-Received: from localhost ([127.0.0.1]:43024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU3UA-0000xb-Gw for submit@debbugs.gnu.org; Wed, 07 Apr 2021 04:24:26 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU3U8-0000xM-La for 47493@debbugs.gnu.org; Wed, 07 Apr 2021 04:24:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617783857; bh=fVBmQ4gTPz5VXU+/MDLTbWJYN08WdM5Qq8wtNwxQ3mI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cAyeCLj7idH+3Lw+MS9SWs5U1fxji62YrwfsD9GHfUpZLgCz4CAY3fW4LKVijQN1V C1spN5/Rhi9npfe5RwAfZz6KkSxZXcX8arjDgvm/WR10bCEHHEAlvR/AhLe8JSbC1C sH7IKCPHtmxsh89vNzZ0yVyrHns0NlgcgQLhL/eA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.51.98]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mz9Un-1lqQ1C1V9n-00wGny; Wed, 07 Apr 2021 10:24:17 +0200 In-Reply-To: (Glenn Morris's message of "Tue, 06 Apr 2021 16:57:54 -0400") X-Provags-ID: V03:K1:OOO7t3ZMp6xvl7A5qwqubsvd/BRGm+OcdQs+GVmLpKBMkbQYYkb Y+BFqSUptGC9S4wA6T3SyOA9gmcimcCrOUk0yq9OOLipVFJLdU+CyztO0M3VY7iL/G4vzha mur4qEEBRwACOo+U7O14jgyZSXsY4IXftTQTDQFV7D6sQUBeNLzOMr4N8mxA0P1qPWrqrJB VvHKCyvSGPeGkVAy9e8Uw== X-UI-Out-Filterresults: notjunk:1;V03:K0:4UmY6kRfHkc=:JDD0QuPJ36CcOhnPDpnZEU yYy9J7esDaHPQhAy2OVU5y7jSGrNGeirseY3q522T2xe7Y+4UVvfQWMxpg+JMAxrPUXfE7ylw B7m8b4tAhRffpn8MAs0EiHx8ieMtTUi2qGonkCT7a6nF+icTF+iVcsUPGLALooqmCXPY0N2+h dbG46blJ74VTo4THbxmZMYEx/I0e/FgsqmN/lKYVGXY5+vWToAGlppGBKznJlVVWdyujSo3Ks 4Xxq2J/bP2azGZwwxMSJPrM4z6CRD3jtnWu4kvUn8le0K8v+mskAlGZoVZllSLaR6KeYoyFTW 1PWjdW8aaIehyPrEvQjnqFP6MUbqRh903DN05+XFkwoWTg/Ht0atAGR0z0zjw3RC/RymgsWmU fgulhwEfNPAdVu16XJTp/s2KlWF9nMNamrBOmcUxnLYjvzbQDPWQtY3Y1H/mlu4dWl2m923bZ PIjInF6U3R2bhKkBAINxRbgqI4rkuf4snDQwHbY1lL18dP41QOZDTUIX4tTFEqSM0Ey+hqlmk vjm2fRyTiq5AKuMYXvcpHoguN4Z/JkZbK39zJAQTQ3AC7zh5Mw/ocEMyIHPyeIzF5r2MYoVVY As67CFAO70xsfFyDGIlbRPdsM51f1394Z7Elam70WeN4Up0h+cjR7wm36uUaSbBm6W5ibFvPM JM9aun0X6cMkRzYuvYShE+L46yNePG6LX9LNf9+oljN/oUfiBcCtO4fRwHaRJqCJ7f1OuZM4l YuTDO2wlW815uDMtN/kM5S55Nnj6prWzRJZZMxM6SSZEwLZJ5QQn7A1pt6JKdp/530+qThyJ 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:203669 Archived-At: Glenn Morris writes: Hi Glenn, >> Nobody has commented. > > You asked for an example of why this was needed; I was waiting to hear > the answer. Same here. However, the docstring of auto-save-file-name-transforms speaks about the problem, so I believe it is a real one. >> + 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. > > Grammar tweaks: > > If UNIQUIFY is one of the members of `secure-hash-algorithms', > Emacs constructs the nondirectory part of the auto-save file name by > applying that `secure-hash' to the buffer file name. This avoids any > risk of excessively long file names. Thanks! Best regards, Michael.