GNU bug report logs - #79322
file name transforms inconsistencies

Previous Next

Package: emacs;

Reported by: Gabriel do Nascimento Ribeiro <gabriel376 <at> hotmail.com>

Date: Wed, 27 Aug 2025 16:06:02 UTC

Severity: normal

Full log


Message #14 received at 79322 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gabriel do Nascimento Ribeiro <gabriel376 <at> hotmail.com>
Cc: 79322 <at> debbugs.gnu.org
Subject: Re: bug#79322: file name transforms inconsistencies
Date: Sat, 30 Aug 2025 21:42:57 +0300
> From: Gabriel do Nascimento Ribeiro <gabriel376 <at> hotmail.com>
> CC: "79322 <at> debbugs.gnu.org" <79322 <at> debbugs.gnu.org>
> Date: Sat, 30 Aug 2025 18:06:15 +0000
> msip_labels:
> 
> Hi Eli,
> 
> > The reason for the warning was an incorrect :type of the defcustom,
> > which didn't take this option into account; I've now fixed that on the
> > master branch.
> 
> Thank you.
> 
> What about 'backup-directory-alist', does it support secure-hash or would be
> feasible to make it so?

It doesn't support that currently, no.  To make it support something
like that we'd need a new option, since backup-directory-alist only
specifies the directory in which to place backup files, it doesn't
specify the backup file names.

> > You could use
> >
> >   (setopt auto-save-file-name-transforms '((".*"  "~/.auto-saves/" t)))
> >
> > instead, no?  Using UNIQUIFY of nil is not recommended, as the doc
> > string says.
> 
> Yes, I agree that UNIQUIFY nil is not recommended.  My point is regarding users
> setting it to nil (for whatever reason) and not getting a warning.  If this user
> option accepts UNIQUIFY nil, it should not warn.  In this case, my suggestion is
> to fix the defcustom :type.

Since we don't recommend to do that, it seems to be okay not to
support it in the defcustom.  Users who want to do that regardless can
always use setq, or disregard the warning that setopt emits.




This bug report was last modified 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.