From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#47493: 27.1; auto-save-file-name-transforms with uniquify should not create invalid filenames Date: Tue, 06 Apr 2021 16:57:54 -0400 Message-ID: References: <877dlpqloo.fsf@delllaptop.lockywolf.net> <87ft0d3wk1.fsf@gmx.de> <87h7kjxnmq.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12213"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: Vladimir Nikishkin , 47493@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 23:06:39 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 1lTsuF-00034V-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 23:06:39 +0200 Original-Received: from localhost ([::1]:37882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTsuE-0000X6-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 17:06:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTsms-0003TR-BQ for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 16:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTsms-00073o-4H for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 16:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTsms-0006Ym-3A for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 20:59: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.161774268825152 (code B ref 47493); Tue, 06 Apr 2021 20:59:02 +0000 Original-Received: (at 47493) by debbugs.gnu.org; 6 Apr 2021 20:58:08 +0000 Original-Received: from localhost ([127.0.0.1]:41885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTsm0-0006Xc-4Y for submit@debbugs.gnu.org; Tue, 06 Apr 2021 16:58:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTslx-0006X6-2g for 47493@debbugs.gnu.org; Tue, 06 Apr 2021 16:58:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58633) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTslr-0006ah-Ky; Tue, 06 Apr 2021 16:57:59 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lTslm-00089s-Ts; Tue, 06 Apr 2021 16:57:55 -0400 X-Spook: rogue ARPA North Korea MILSATCOM MSEE Marijuana X-Ran: $'0dV4\N6v*OAU6E$A'c~S<](}t.Jc0h(9|U/<^e`*]>2#>,2pH%I`@RcG&]{XV?pntvw` X-Hue: brightwhite X-Attribution: GM In-Reply-To: <87h7kjxnmq.fsf@gmx.de> (Michael Albinus's message of "Tue, 06 Apr 2021 20:40:29 +0200") 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:203653 Archived-At: Michael Albinus wrote: > Nobody has commented. You asked for an example of why this was needed; I was waiting to hear the answer. > + 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.