From unknown Tue Sep 09 11:47:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#79322 <79322@debbugs.gnu.org> To: bug#79322 <79322@debbugs.gnu.org> Subject: Status: file name transforms inconsistencies Reply-To: bug#79322 <79322@debbugs.gnu.org> Date: Tue, 09 Sep 2025 18:47:05 +0000 retitle 79322 file name transforms inconsistencies reassign 79322 emacs submitter 79322 Gabriel do Nascimento Ribeiro severity 79322 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 27 12:05:46 2025 Received: (at submit) by debbugs.gnu.org; 27 Aug 2025 16:05:46 +0000 Received: from localhost ([127.0.0.1]:33865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urIef-0008Lu-PG for submit@debbugs.gnu.org; Wed, 27 Aug 2025 12:05:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48216) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urIed-0008LK-D7 for submit@debbugs.gnu.org; Wed, 27 Aug 2025 12:05:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urIeX-0003zy-Bv for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2025 12:05:37 -0400 Received: from mail-northcentralusazolkn190120002.outbound.protection.outlook.com ([2a01:111:f403:d111::2] helo=CH5PR02CU005.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urIeU-0007SY-Jl for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2025 12:05:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hxENyUbSYw05lE0XxcQLbPeAnTUxGQeRQah+oAz4lCs5j+KrJhwmJ0GgTeMwfyXsoiuoChSn1L1pm3XcgpockW//QbkR7OFAkU7zf1kGBSG+x0Q4Rvq6gkSiI6tZm65mEHC7CJb2ZmiGSL/uMZDUrikfsvE716NL7IpojRoljHImx9TGfD83DXUk641RLZy2BVWa7CMwPoowqqORgV8a464YrbYynoqndvQ15CkUl3rS3b+G9uGh5rTTFnKFXywc7OWSpbdPGytI732dq/m5eJaDKPSJS+0nNOe9XK4QcbY5s796eimSSA7/T0Ecpg9gOMusannbwv2V4jvWy3dESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hk6cNHm9IwH5JJ8IiGEVo+h//JPC6tL3L09hEonxbjY=; b=WzAEme1ZLo2gGpwT7DUvsJ7sosm0PUrnG8pFYB6lja6ii2QJiIUIpegYOvH9EPB9scyFzPdpRYp5kK4aCwRGZdg1G3VlKkTJGN+1jaGDmGg7iVitzbqS0MK4aGLGGmRVPUZh0cM/ogkPF7BDk2ecBXB2OU6ZL3teGLCD/mAhr0N8BIT4PieflzoI27zPtoVVIXEEPRYWoY+QzSK+2GOaT/UckAfwt4iGSwtAtKTVcU0ibADf6CbpqvO8J2NsCVFcV8cyx75FJbkCANWwUEVhiAupbx5ohdk2ae1pI5qfmbzRyDzjSCO49MVcryR+txDFNpH61xY6mPWUrge/rPJ6ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hk6cNHm9IwH5JJ8IiGEVo+h//JPC6tL3L09hEonxbjY=; b=DWQyr1k9jX291DIqK78bx7yaHyElc+DWUrzXyMicBoXj3RBqUtvebelJWY4AktHPpk3ibAzB79dXdl/7+ZHTD3VD/4iR1eX6O9KYox142DlVFcRYy7ELdZu/458Fno/wVwYCDiMujdheIFuD9mkS1URGG4khUjXZyNlMkxaPXAufQbChaOLJq7jVMlw8E6ze9wRRU2ltl/AIO6lAamUadWpipyVSDF7v9Tt6VpJW1W4wA36xJTSJGucHVchY3e7GcqOe8KCJWj0SHxTHkQAxPXTocXjGKYt0eBKUcmsJ2fmuHCB8o+f91k/zHIQhO3Vl55n62Lxk/vx80BYpga1nIg== Received: from SN6PR06MB3935.namprd06.prod.outlook.com (2603:10b6:805:21::11) by PH0PR06MB7838.namprd06.prod.outlook.com (2603:10b6:510:ab::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9009.21; Wed, 27 Aug 2025 16:00:26 +0000 Received: from SN6PR06MB3935.namprd06.prod.outlook.com ([fe80::9f7:a06a:fd92:9751]) by SN6PR06MB3935.namprd06.prod.outlook.com ([fe80::9f7:a06a:fd92:9751%3]) with mapi id 15.20.9052.019; Wed, 27 Aug 2025 16:00:26 +0000 From: Gabriel do Nascimento Ribeiro To: "bug-gnu-emacs@gnu.org" Subject: file name transforms inconsistencies Thread-Topic: file name transforms inconsistencies Thread-Index: AQHcF2gIX1LyeaDxdEarVn4f/UqMCA== Date: Wed, 27 Aug 2025 16:00:26 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR06MB3935:EE_|PH0PR06MB7838:EE_ x-ms-office365-filtering-correlation-id: efa44116-2731-42db-6b1e-08dde582d6b2 x-ms-exchange-slblob-mailprops: qdrM8TqeFBtg1x3yx1r6QKZAk6LGeuzaa6khtWeW5NNOCVlx4QMhaxHDw/HxFXT1CWMpilza+My8zGEL1KNOogDYWib1hm1yCynJH8H1egyKSwo5eeYVqkg074Bt8TpCX7RqE/TDhhlh2FELn1EblMC+EnirlyZonlREl46mlYFfmU+p/2phPO2mlCYr7otbgIAuk/rtrjmS7yDKzCPoRtzO0vrYxvhWo2gngOKtldbKl8pqPlfFmVFmRBGGOzH8t4VRjgxKJ5WE3EEe7o7+8KVkW/GibHcn4yrZ2eCGUALZIz/40dnJ9U6O4w5EPKUy6wpUszorgRYaNmHx2yJowW4WJ4flwDWrXPXsH6Pniydz9iJqK733U+FLxjRxzWTAl+o4hJa+8o3KSK0FYHNbUuCCRmRI61q+FgkuubxcaMNPS7bDJbSnFTAVC2Evlf09idijmMVYtqve08zHFgVtg3U2uHxprLyOxD0wiKxBj/VJ3paEs1/ot9VF4ZZe4HuTVm2kTEh36/k0IG/1NeUFrfidpL3+BugakwKWl5K5I9HGVsVj4ZJtWrbasMAZyMmIoyjTyP0E9RftfshuTs2bC44Y7FTc41uClqxHh9+/x3jQnASmfT0xJXznw8LTBEnIPpCVcCjYtPEg8G7AjuIQhE16tS/C613dpBm8+dbXM34gqXN1AbA1XRI17JYNeUNElvxoK32Xe/d2FhJdE/2XtioyHEpYEToWSo15x6w76TkpWf1ej0AWiQxfaNPjCiXpbne8n9/98U0s+rZ7mAsFVZNzi/bj5djm x-microsoft-antispam: BCL:0; ARA:14566002|8060799015|461199028|31061999003|19110799012|8062599012|15030799006|15080799012|51005399003|440099028|39105399003|3412199025|40105399003|12091999003|102099032; x-microsoft-antispam-message-info: =?Windows-1252?Q?BJCXzYLTjaC9A52vzXwqnwHrKY0EoeIbSRg967R4MgW4RJf9yx21y8CE?= =?Windows-1252?Q?6ccG35kTM+zaZW/m2HH+TcirIYtU9ThMyxsdLJ/yI6pZQKGfmE4lF4Y+?= =?Windows-1252?Q?H7WgnB/O3HR0NDJUaKNVnVMBIaflxHLI6MQONPhpC0AoEFxErTs7iuIV?= =?Windows-1252?Q?JHqQnBExOXCri+sY2VhzhQbXrrA/JlAoktmOCNRawsDa4Baefg1EOPMi?= =?Windows-1252?Q?YfHx2RrPVYpmcUGDCWc0d3QR8lClmsgrazoS/wmQIGpSo0XbSWNgisxB?= =?Windows-1252?Q?nh+g5w3dZ7pIrWgL/Rzi7sPkGSxZB1x3L6ZrCJZwCpdnqMmdLwSKQsj+?= =?Windows-1252?Q?7uDxtBOcNgs26gM0b0aVPSMHo7acJ9gI4qQUeKchx/ItLl/FOuC3bG2q?= =?Windows-1252?Q?VsA8wYu3FSPYbgxfXQy4URsVR4jU9Ax4nf6vfQWcBh51mRT3Ys8nO88z?= =?Windows-1252?Q?ZeirEwr/UkebhypsMjIj4WddmHrUadm4XuKEE1oVczGkSwq+rcmyx92y?= =?Windows-1252?Q?4r7cjvtVe0Zr+LJv+ZOli0dbddOVgjq1ApI29AbA6rAMO0sdXJ4b8STb?= =?Windows-1252?Q?huELN0jqUKnhox6c9DrM8J/ovprRCunnP8Us1+7AdgzHEjRx8Nl+f6Dp?= =?Windows-1252?Q?IdmcdfSXu+5jeZuFBquVStUWNqx4D/hFq1Pz2l+zVTA1Y9WtfKiAtnZF?= =?Windows-1252?Q?3KwHNuFSqnMAFJ+7cglNRgH2PMzcmNtiMa0h2pcd5/KqWL7Xke9TyRmy?= =?Windows-1252?Q?ZKSGozUo4Y2uWpUcNmmZe4Onc/VnoNkWR2NWjmI5sUpo/7OEjqdSQS/M?= =?Windows-1252?Q?bacuTX0JHVEKIaegVi7uvMZMbRhevRqb2gOeArX7Eh/D6h7KitcTmgK2?= =?Windows-1252?Q?NFELXwRN0C1k4D7CuPvxmvJexI5jIhUqwtMv2udwO4BlhC3zolgWkUQO?= =?Windows-1252?Q?OkHYRfUJlt0sewPK6WSdN4t/wnRV4hZRbELfKCEfacetE0Q9/Mn/asH5?= =?Windows-1252?Q?tHDD/nAVTJQ0df0Q+Wo6zuOw458zchPZTEW0L42A2ASCiJdbJnKT+zGK?= =?Windows-1252?Q?kUc9i87x0bNsqA0dCe1dObPihMOTbgVHrJ7QyVBJQt+gF4ItJSQjBiPz?= =?Windows-1252?Q?qYldVMrZAN3/OShcdwt0v9rt94CFBNLUgwAIl0+SM9oGvfx8kx0cmCHu?= =?Windows-1252?Q?BSA/CYMU2eaEnT++t5unb9+PirFt2C1VYMIG8I1XVq3043iObNxXZ71p?= =?Windows-1252?Q?gJgNqlI+TkR8uXNfdSkBtrXNt3D8TcMzKseZ8YWg7bayG6mrIfSoynnn?= =?Windows-1252?Q?PN4NSGmXXDFpKmI2Prw+axY1XiHJ8MW/p5e/UuyVFDZuYrYvuKstxf4/?= =?Windows-1252?Q?6wzQU/cAZFuC1A=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?jdFvkYbGFqXQUncfOkoJ+8aNoqXpNHMJ5WfciyP97GItbonSKAuexAtC?= =?Windows-1252?Q?mkuY4unPusCc2rfa3lGw0ofK2pbwT2CeS54/VipqFiL81sHH+VlQm1TP?= =?Windows-1252?Q?tiQlTrzFWZzZqn31x9g9wTtRqkrJfou+tHHXFmfW5ymtpZl2ZWDlrrHm?= =?Windows-1252?Q?63u6lcTVBhZm0hMDkH6nztYoAsdcPTOaxbydDa5Uo1vp4AYn2VKetqUq?= =?Windows-1252?Q?Dxi1m4LlNbN7eU8DGj6f3O2hltxo0dzKB7Kgg2duTP72E99jSFftGgL0?= =?Windows-1252?Q?hbJoIkd9Qcr3qgAPc3sSP+ThdBxJr14nCLl00z1MZO7W6ZsCOv9bCjCK?= =?Windows-1252?Q?wYZmJ10wserDT4pzheOXAqwa6CzpC9dBlZqTiDJZ2Vg9arDcIr+vbmFc?= =?Windows-1252?Q?T4FZ6LjSuogHldS1W1spdD3JFduWR2ZJzSRm25mwjuHkoCecrda0WUbJ?= =?Windows-1252?Q?0JGr2etZkYdqGI9ipgNRvYp2VOEMj2VvkcNVBIY74wM409Tv1tz/Bmm/?= =?Windows-1252?Q?BREk6bLImgyLDZjurAZTimTd7yGU8VtzZ6WVMCpw8OCt1xKjjiaWlgP+?= =?Windows-1252?Q?CUwrkHgTYoHmigf77YXobLQ3kY8k53sxIijfdauegpS/xkaUgkToNnuv?= =?Windows-1252?Q?wkGguG9uAD+5s9eg+OYYWHjjS89kpri1yIggE8cVeoj8EjKW+GlM6/FT?= =?Windows-1252?Q?0Kqub3gHguoyELjgmeWGDZoGSPrKYnUkBo5knZ4TFY7W+Z4CYXPi7XoQ?= =?Windows-1252?Q?wtqcrpnTrtcuMcLeoWY72Ia1zbkLwk2yqmOga9LAX9W0XL0d09HltCKj?= =?Windows-1252?Q?rIHl+Aj1YMqpasRHbbkZM3m/AzvsscjZW0JMJRNqFWUrnJi/qskWxWxI?= =?Windows-1252?Q?Flg5RGEawdMe5L0UyfCAqLSw/DIrDW/udNGW9RL+WjqeQa3ej+XKVpZU?= =?Windows-1252?Q?nKUFBv5z2/t2C+XZY4GvDAZN8/ocyV6zxG1eMRmo4MGFo/AONoWffsV5?= =?Windows-1252?Q?i3dlDH16olhA1t0rAbmHUdbrYFYoHdZ7Wkqk0+udvfqIcsFRNpZNpL4W?= =?Windows-1252?Q?EcWsRAj0R9cpWy1GqfXAsC9IcpgFPrardaLzfaFaYUKW5PSV/2JOiC99?= =?Windows-1252?Q?ojimsnrd72gXBuWmlwzCzRqU1ae80wdbiNHHAZvhfJweQVfK0LeX0X6Q?= =?Windows-1252?Q?7D28YH7uo+Ak8LzlydSPlmMF0uqO7yjCkk9fHpJvh7krLwhlNjnOf919?= =?Windows-1252?Q?6MnjUzvdZcmybgZa3FMY1b4c/e1ZddqvAJv+/sp4l0cxoOaOLg2ev/Qc?= =?Windows-1252?Q?K8o7pBzVrgE3pRfJKHEqlzUI+9YO+RwiYCNIEvsUxiXmVEeJSONg7frY?= =?Windows-1252?Q?rp9H2jO2aOdiOAUe9AP6fEdAt6NrW9nTdEU=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-8534-20-msonline-outlook-a1430.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR06MB3935.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: efa44116-2731-42db-6b1e-08dde582d6b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2025 16:00:26.6783 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR06MB7838 Received-SPF: pass client-ip=2a01:111:f403:d111::2; envelope-from=gabriel376@hotmail.com; helo=CH5PR02CU005.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The user option 'lock-file-name-transforms' docstring (and Info node) mentions that its syntax is the same of 'auto-save-file-name-transforms', which is not true since the former does not allow secure [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=gabriel376%40hotmail.com; ip=2001%3A470%3A142%3A%3A17; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gabriel376[at]hotmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (gabriel376[at]hotmail.com) 0.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) The user option 'lock-file-name-transforms' docstring (and Info node) menti= ons=0A= that its syntax is the same of 'auto-save-file-name-transforms', which is n= ot=0A= true since the former does not allow secure-hash as the latter does:=0A= =0A= lock-file-name-transforms is a variable defined in =91files.el=92.= =0A= =0A= Its value is nil=0A= =0A= Transforms to apply to buffer file name before making a lock file na= me.=0A= This has the same syntax as =91auto-save-file-name-transforms=92,=0A= but applies to lock file names instead of auto-save file names.=0A= =0A= If a user tries to use the same syntax, e.g.:=0A= =0A= (setopt lock-file-name-transforms '((".*" "~/.lock-files/" sha1)))=0A= =0A= it gives the following warning:=0A= =0A= Warning (emacs): Value =91((".*" "~/.lock-files/" sha1))=92 for variabl= e=0A= =91lock-file-name-transforms=92 does not match its type "(repeat (list = (regexp=0A= :tag Regexp) (string :tag Replacement) (boolean :tag Uniquify)))"=0A= =0A= It would be great if both 'lock-file-name-transforms' and=0A= 'backup-directory-alist' had support to secure-hash. If for some reason th= is is=0A= not possible or desirable, I suggest to update the docstring and Info node = of=0A= 'lock-file-name-transforms', so it mentions that only supports uniquify t.= =0A= =0A= Lastly, I suggest to also add uniquify nil to the :type of=0A= 'auto-save-file-name-transforms', to make it possible to use it in elisp an= d=0A= Customize. For instance, if a user set a hash using Customize, it's not=0A= possible to revert it back to nil. E.g. using elisp:=0A= =0A= (setopt auto-save-file-name-transforms '((".*" "~/.auto-saves/"))= )=0A= =0A= Warning (emacs): Value =91((".*" "~/.auto-saves/"))=92 for variabl= e=0A= =91auto-save-file-name-transforms=92 does not match its type "(rep= eat (list=0A= (regexp :tag Regexp) (string :tag Replacement) (choice (const :tag= =0A= Uniquify t) (const md5) (const sha1) (const sha224) (const sha256)= =0A= (const sha384) (const sha512))))"=0A= =0A= (setopt auto-save-file-name-transforms '((".*" "~/.auto-saves/" n= il)))=0A= =0A= Warning (emacs): Value =91((".*" "~/.auto-saves/" nil))=92 for var= iable=0A= =91auto-save-file-name-transforms=92 does not match its type "(rep= eat (list=0A= (regexp :tag Regexp) (string :tag Replacement) (choice (const :tag= =0A= Uniquify t) (const md5) (const sha1) (const sha224) (const sha256)= =0A= (const sha384) (const sha512))))"=0A= =0A= ---=0A= Gabriel= From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 30 06:32:00 2025 Received: (at 79322) by debbugs.gnu.org; 30 Aug 2025 10:32:00 +0000 Received: from localhost ([127.0.0.1]:45304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usIsJ-0007S0-O2 for submit@debbugs.gnu.org; Sat, 30 Aug 2025 06:32:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33994) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1usIsH-0007Rn-67 for 79322@debbugs.gnu.org; Sat, 30 Aug 2025 06:31:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1usIsB-0000GY-2R; Sat, 30 Aug 2025 06:31:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Zw8RjtOK0bHWJYbeseQuOcpxHhawa0Iz4i4CbxTr4q8=; b=HpbhydRfzerm1zkWnRG6 lUEdZGIshiXFQQa9tvOrV7IKigohkiumR07QfZfEsVfDMKWZ6Aj8uRYicJDu/ZyKy4CmKXGB5DQj+ Jxj+d/S06qAmsulK+rOs1TjJu0Q8u40gIJwDPgh7OytMC2521puLDOp8BozeSRRCSBtisiDJ7Ipww 2A85bIZrmESpv5v6foasUxka5/ypWFJvV69sd7OCUZwYL1TGEX8APtC1HGy7W3jX3T30j8TcOz7WW 2yFoU5Jlc3JwwVmOKiOZgqx7aSu4Scwrh0ETUtEnTqeHYwTvz7yn42UG2eikn3ZqdektbUaQVJ0Rg C7Z3E+VYcleYyg==; Date: Sat, 30 Aug 2025 13:31:47 +0300 Message-Id: <86wm6lp0bw.fsf@gnu.org> From: Eli Zaretskii To: Gabriel do Nascimento Ribeiro In-Reply-To: (message from Gabriel do Nascimento Ribeiro on Wed, 27 Aug 2025 16:00:26 +0000) Subject: Re: bug#79322: file name transforms inconsistencies References: MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79322 Cc: 79322@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gabriel do Nascimento Ribeiro > Date: Wed, 27 Aug 2025 16:00:26 +0000 > msip_labels: > > The user option 'lock-file-name-transforms' docstring (and Info node) mentions > that its syntax is the same of 'auto-save-file-name-transforms', which is not > true since the former does not allow secure-hash as the latter does: > > lock-file-name-transforms is a variable defined in ‘files.el’. > > Its value is nil > > Transforms to apply to buffer file name before making a lock file name. > This has the same syntax as ‘auto-save-file-name-transforms’, > but applies to lock file names instead of auto-save file names. > > If a user tries to use the same syntax, e.g.: > > (setopt lock-file-name-transforms '((".*" "~/.lock-files/" sha1))) > > it gives the following warning: > > Warning (emacs): Value ‘((".*" "~/.lock-files/" sha1))’ for variable > ‘lock-file-name-transforms’ does not match its type "(repeat (list (regexp > :tag Regexp) (string :tag Replacement) (boolean :tag Uniquify)))" > > It would be great if both 'lock-file-name-transforms' and > 'backup-directory-alist' had support to secure-hash. If for some reason this is > not possible or desirable, I suggest to update the docstring and Info node of > 'lock-file-name-transforms', so it mentions that only supports uniquify t. The secure-hash _is_ supported in lock-file-name-transforms. The warning you see is just a warning; the feature should work regardless. 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. > Lastly, I suggest to also add uniquify nil to the :type of > 'auto-save-file-name-transforms', to make it possible to use it in elisp and > Customize. For instance, if a user set a hash using Customize, it's not > possible to revert it back to nil. E.g. using elisp: > > (setopt auto-save-file-name-transforms '((".*" "~/.auto-saves/"))) > > Warning (emacs): Value ‘((".*" "~/.auto-saves/"))’ for variable > ‘auto-save-file-name-transforms’ does not match its type "(repeat (list > (regexp :tag Regexp) (string :tag Replacement) (choice (const :tag > Uniquify t) (const md5) (const sha1) (const sha224) (const sha256) > (const sha384) (const sha512))))" > > (setopt auto-save-file-name-transforms '((".*" "~/.auto-saves/" nil))) > > Warning (emacs): Value ‘((".*" "~/.auto-saves/" nil))’ for variable > ‘auto-save-file-name-transforms’ does not match its type "(repeat (list > (regexp :tag Regexp) (string :tag Replacement) (choice (const :tag > Uniquify t) (const md5) (const sha1) (const sha224) (const sha256) > (const sha384) (const sha512))))" 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 30 14:06:29 2025 Received: (at 79322) by debbugs.gnu.org; 30 Aug 2025 18:06:29 +0000 Received: from localhost ([127.0.0.1]:49733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usPy8-0007rj-VW for submit@debbugs.gnu.org; Sat, 30 Aug 2025 14:06:29 -0400 Received: from mail-dm6nam12olkn2067.outbound.protection.outlook.com ([40.92.22.67]:3425 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1usPy4-0007rT-NC for 79322@debbugs.gnu.org; Sat, 30 Aug 2025 14:06:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=c5VKld3Q3TH1SLDf8OtSFyF5Zk+ZIYERLzFmTeEhUS4VgAGkFppf11T5i4/k3H7l095Tc3nfmFiIkEXcwOKs4+6k1/sYac3t7Fn6/d+7iBzruczJ1ZGtuBxlztLlblbLsUq7aRX19j2Dfeo1sXm0ch4ol2OMjNZABsZZh9YU6c6cJj+LLWg+/SC192Jtn8mHElEucGoztI2rnwICKW/gJaXmfNrfxZz+s/YyeH0p3ymgZLZC1oXBC2rq7d6wO1Io/O/KPF0aldUaGnwSGeQhshVPzDJgMCk6cqKng6k9LwrbMNDk+P5bvIOpme4Bu69zwKaV0SqqAZjPzXDENA2YJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1LjIidCA2w0fsYcF/QusYFAHrcPC2W4BEqCChQ1vi48=; b=XdGg3id2Xtq3GkH0f0okm2BhNJGjTFMXdav5w1GngPG8VQmfwJPckrfAhvibHdFgxPdFmRc4dLnkcdc9fCQwB9od9W79D/Ll80WMF3Zj4xP5O8kOy6rGV887GF/K76dIYTxZSXYRoV86TadOkJvV3M5azIyQPW7/P9OZusUaVSiwlG4VmGl+qOhjlnshElPXZAvZnauhiSSdg5X26z9CifZel1BRCNK9H5akf/+2Kgtdd5SDN6gsGJQ2tu5FVfMOVBtyiGHRWEyRW6p97sB/wrtRRlrgYJx59u/ySARid3njGp+7Gjo52gAAK7udMD5lElJWQ2P4yRov93RCSsc01g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1LjIidCA2w0fsYcF/QusYFAHrcPC2W4BEqCChQ1vi48=; b=TN0WauFnZOrVbewc3ngA/wc67Bdgs9EmH+q/ESBLQ/mDlQNkQi3sofITyAm5p1CtcvDWcKfxLjubyelkk4R8O1R2R8OJy+ucmu2+StUd8nNjVpX7CBZ/dHn6Rj0y8TE+OH6FRx1PNVaYXDt6tC616Q0LDNToAdqCst1nevMcZDRnMinHGpM762q3fT3JCjtRlnVU6EV9ylftgzcp6DdWpXX8XY4ubIyvwHse8F5mT1xCJCOQhZqhODiC9cHikbF4TXLhAOjW1eqSBp4aorZzXHvlH614T4CQvf37XkfSf0ftwlXJkwVdobjg+RY8ftSJkA8GMzfADWxOyJVgnf9KOA== Received: from SN6PR06MB3935.namprd06.prod.outlook.com (2603:10b6:805:21::11) by SJ0PR06MB8986.namprd06.prod.outlook.com (2603:10b6:a03:432::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9073.21; Sat, 30 Aug 2025 18:06:17 +0000 Received: from SN6PR06MB3935.namprd06.prod.outlook.com ([fe80::9f7:a06a:fd92:9751]) by SN6PR06MB3935.namprd06.prod.outlook.com ([fe80::9f7:a06a:fd92:9751%3]) with mapi id 15.20.9052.019; Sat, 30 Aug 2025 18:06:16 +0000 From: Gabriel do Nascimento Ribeiro To: Eli Zaretskii Subject: Re: bug#79322: file name transforms inconsistencies Thread-Topic: bug#79322: file name transforms inconsistencies Thread-Index: AQHcF2gIX1LyeaDxdEarVn4f/UqMCLR7A9DQgAB9Tf0= Date: Sat, 30 Aug 2025 18:06:15 +0000 Message-ID: References: <86wm6lp0bw.fsf@gnu.org> In-Reply-To: <86wm6lp0bw.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR06MB3935:EE_|SJ0PR06MB8986:EE_ x-ms-office365-filtering-correlation-id: 88bc26cb-fa5e-4ea7-93de-08dde7efe93d x-ms-exchange-slblob-mailprops: Cq7lScuPrnoyTIwSrGph0lItVprk4CpiISZEsH1ZJXx2+C4VBB/+0wpML6KT/GmykETwPleKsjTYWGp2hhmY6hx4ZBMbjamZzpORgar8y0CbutEq/fQ5i8U9d5WA0Y+kTp7evNtVz7h/arEwd3VHwwfJH/+ToiaKpOnfhN8JVyqTC4273lwyUwQf+Ynk5CNkjxJObEtrKV3Go6HfUYdUvuhE5rtrE0tkFbfGEcQUnjCIMzbmcM/pVgShQdC02Tdq+BEE6wS/6YVeoButV3Ay9ntU1cDYFsrZhcWueiyWFHwp0OCz2A2van3FPRehYPvHIik9nIK14nOp5zNgZ6PenyaHkd43je9eCPSgcU0wqC4XSfp3RK8H7sRB2y1RqsBz5pHzXnmnoAk9U8u/ycqIgnDJWN8QRu1ol7PTUb5Np1OQjx3u+qzSADOc4bhs7q7zE76BkPJp3/9SFu2/Fse5MN0OwvDLcaHizES0uzk0wtXVlkCOBc+llsvwWwm69Wa0HA1U0sXU/+nukP4Z+WBmrmGTbMAQVzb/SY/HJsGt+PnLnuvuW6hgrtA7gihR65B8LmXEQPrde4CmLxL9MvhCXeZ+2KBf+lLBqTu6xhlmShqsJ1MrpQpPwH+zFddlDnBE66mmh1z0so6SM6wL7rSXaIqXhhQ4/Ip/k9Haqk31ooiHovlNHkH3RPmLSwDicoThBgrgn4ei/Rf6Eq4IZ6mK5JFPFedsI6AKUCxGVHKq9l9g2kxLvDVdePlwjK/2ErI/VjJILPu8Hsw= x-microsoft-antispam: BCL:0; ARA:14566002|8060799015|8062599012|19110799012|31061999003|461199028|15030799006|15080799012|3412199025|440099028|40105399003|52005399003|12091999003|102099032; x-microsoft-antispam-message-info: =?iso-8859-1?Q?3IBpZjnYGvUxMkivoP8R0ZbojIyk+9I1YUBrDUXz8xdDisYV78cfPn4Mfi?= =?iso-8859-1?Q?jcbEsJHvRZkEmWOnzPr7pnlS3tNKz+eZT8FbFI6rRRLAg72BAMRFGjtErV?= =?iso-8859-1?Q?tNEfI6OPhTq3+nTG4LwDJ5OBwQjWOa4o1h+kf9+I2WkFgb6Q9HDTDGNc+X?= =?iso-8859-1?Q?nOXypoALJ87Tp6HBkHoPfMHyBV04s6ne+nffl+8n02plf2WN+3hvjE1zXj?= =?iso-8859-1?Q?jRi/hkvhNaRbWuOxAx4azZ/Y/+dAAFpTlR/DLsJQRYJ/eLuAlD3zjhs/VQ?= =?iso-8859-1?Q?TXR/tqs16btos6Vdba3k5ou2ze0eGijJ+La+zA0dQgP+m3sPKuQXyCTPUw?= =?iso-8859-1?Q?MKmsTcXl7WFKYdO7PKAkcdSTUVjWPevtCGq3XIe/7GN1tcsf4cS5lZwG6P?= =?iso-8859-1?Q?G/KZNCLHIklg6b98eFWzi7Ye9tg+n90yEaV5XGIGuwzwtAbxLw+hX8uqUd?= =?iso-8859-1?Q?Uzz+05rduNdw5J1J8/u2Ouxj7doBD+Bqet6Inr1qlWo6F8M+ZFu9FIprvM?= =?iso-8859-1?Q?0HPOGCzotKZJ5mpjbGZ0rrCBX7lN8NOGnYwU7tcLVjYh7k7tXZGWgJIdPP?= =?iso-8859-1?Q?9/hFBuCXGoclWR7uD2wvdKUGfszAYDP50AGfuIR+q4cpsGAyqLAj5LU6Fl?= =?iso-8859-1?Q?JMmpevvjWIypZ66DPrYerywl4BM/YMLgwILDqCRh7FZEk53e45E80lm2qY?= =?iso-8859-1?Q?3RyiOAnSTP/QHrvC7GsYGibX0qP9eZblRwuDE16PuFU/Q4E6zpIHPTl0uN?= =?iso-8859-1?Q?hBq2ndkOLwAaVzSysHW6yTUkbBPKV4oxlz8GN7xAP9Ipq9lHpbhv1i8hEe?= =?iso-8859-1?Q?GWdJHz28DaiFpcx0fbMD14z2G4I83RERN80KlJonzs4k0nmXnDkkX/Ctqm?= =?iso-8859-1?Q?Lid7I5gOcHssWp0Oh09RrpxOaTVIfI7hqfG23B11M2IKyexawiSmrNLf7K?= =?iso-8859-1?Q?hKhQXcGp2XhwmhZBMUj+vTCrfYJLHSA0s7Ak3aAymObfJCEhzusAY+u217?= =?iso-8859-1?Q?NyeRAmMvQCSvFiLB4eTrqazEstwOZv/QMFgXVQW97HrJoVZUATaK9fUBJ1?= =?iso-8859-1?Q?+au6GIe8gER2DAGLsFCLwbk1KvH3Dhpk68SL1Nj585UIMF7zPHtBP6x8J2?= =?iso-8859-1?Q?1fcxoPq+Q0Tork9sb6y4dtoOG6Lc6NYrRFu2quxFrBmY1fEDw62bMv9boJ?= =?iso-8859-1?Q?S+zHnxJJsnHuWVSzQADQ8x/aN8jJceKV/H8A6MhAKy9Ho1IcHEhWvMuwhE?= =?iso-8859-1?Q?rD7fgeiiolVFeze8p/+Bg9vmy/aSW2oSmO7kD+X88=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?tH8wu2IwX7+QQEsgSR9BVXg/Od5EOVgC3KPvrPRfmF+5cbVjGvivNopegC?= =?iso-8859-1?Q?YScibjzONlvD7RTXekJMj38CPciKp+1Vff3Q1s3kRrkXbGl2GKvr8W7+hp?= =?iso-8859-1?Q?3XmlO6bTNDcO53rAO2YQ0MsOgSNXNe+4MP0TI1GUaLEudwsKtrBzzJEZgS?= =?iso-8859-1?Q?o3bMpOaauDZQQlolqzSAJVAhX2BC8/SBd1HdRNjbpInZv1Rd60JfQ+O6zF?= =?iso-8859-1?Q?XX4p3hLRiXJSONVggutZST8qDX9jZOq4OBR786J34M1PrShNQ1BGpfFo8b?= =?iso-8859-1?Q?HgW4mTNB4hDJVK35q5ETChsjrKtD4T9q0M4FUypAvbounWu1mNmkPNL9Y/?= =?iso-8859-1?Q?cuFxi0gIaF67pYD0PTI3fVkvoILtAUt8xVZGpXg4y9ULmKhmonZYm3wkd4?= =?iso-8859-1?Q?x1U882cgyqJbMJaKrGBPWBjLNGolg6adiBJYF9HdgbbCAzeWOpCNNVnKwB?= =?iso-8859-1?Q?wATITu7IxgGdHmFemnO0mSfxHNJy2yPvtul+ZPw/JM8/Uc0L5MgjB2xIzi?= =?iso-8859-1?Q?BvmKO3kntC2FSiz0goMdWiUL6H4Vc9Wlt/7f7MJ4wAhCpAC7FzW3kvtT1L?= =?iso-8859-1?Q?774/ajfXKjZSL6CxlvU//XUegBTvu4ivgfUGnq1O7d67Oeo5tFPElZBkOB?= =?iso-8859-1?Q?i6aJ9gMPZR/5fwotv/V8YYtu/Ro7CLfCYTaS1a6omHfEVOSYk3pA6bz2XP?= =?iso-8859-1?Q?pyK2A6ya/O8Q7m7NCUmboEn8QmeOO7HE1ijJqIC5iks5hFfJVgAqDkB6NN?= =?iso-8859-1?Q?Z/IkA2o9OxU597jHDpf6KU2+sQrGed/Sq5dFx8ykxbL1hW6tjek/puzZO2?= =?iso-8859-1?Q?O6UFLr+s9rEPl0PDR+NkPvmJ1mf6GNaeMhGyfOrD+09JfR3qrVe//NFZjw?= =?iso-8859-1?Q?N6fZYYOlh44OvXQ3LfZuYS5DnoHQYB1LhNsZSo9W11CQ6B6jEZCcce0ywr?= =?iso-8859-1?Q?8N/jgdHZ5+sji4MDmBr+noji+VLkF9vaY+PyvFVsIs336coemDr4MY2wkO?= =?iso-8859-1?Q?zJRkl/+4fqZ7iAMO1EpKTAKDmoroQxMvdSeXb8rkqQNholV2fUHbhmwrVy?= =?iso-8859-1?Q?b4h2gS8XugfWFAIVIB9vL8kvwNojoK1rCgOK4v49LXeCRvXDXIn1BdSsHX?= =?iso-8859-1?Q?hd/GvE5+vIpk7IS5N1zChf9O4+8Usi5UDbIIPdT0nVCT6wE8OBjBefMtk4?= =?iso-8859-1?Q?KmNqBnatrEKfPAnMYTwddw7L7uJKiF7JpxokL90W6Hwt6bu5pCIMepLyOy?= =?iso-8859-1?Q?gqc6Teo1AWVbAU2iGmFhsP7RDhoGXPhmz3I/9+U4g=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-8534-20-msonline-outlook-a1430.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR06MB3935.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 88bc26cb-fa5e-4ea7-93de-08dde7efe93d X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2025 18:06:15.2665 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR06MB8986 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 79322 Cc: "79322@debbugs.gnu.org" <79322@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi Eli,=0A= =0A= > The reason for the warning was an incorrect :type of the defcustom,=0A= > which didn't take this option into account; I've now fixed that on the=0A= > master branch.=0A= =0A= Thank you.=0A= =0A= What about 'backup-directory-alist', does it support secure-hash or would b= e=0A= feasible to make it so?=0A= =0A= =0A= > You could use=0A= >=0A= > (setopt auto-save-file-name-transforms '((".*" "~/.auto-saves/" t)))= =0A= >=0A= > instead, no? Using UNIQUIFY of nil is not recommended, as the doc=0A= > string says.=0A= =0A= Yes, I agree that UNIQUIFY nil is not recommended. My point is regarding u= sers=0A= setting it to nil (for whatever reason) and not getting a warning. If this= user=0A= option accepts UNIQUIFY nil, it should not warn. In this case, my suggesti= on is=0A= to fix the defcustom :type.=0A= =0A= =0A= ---=0A= Gabriel= From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 30 14:43:10 2025 Received: (at 79322) by debbugs.gnu.org; 30 Aug 2025 18:43:10 +0000 Received: from localhost ([127.0.0.1]:49785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usQXe-00013N-0t for submit@debbugs.gnu.org; Sat, 30 Aug 2025 14:43:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52986) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1usQXb-000137-OU for 79322@debbugs.gnu.org; Sat, 30 Aug 2025 14:43:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1usQXV-0001gK-FG; Sat, 30 Aug 2025 14:43:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PkszDyHQQupdcuiia+AXgh518a2JOTnNEvayffMyJSY=; b=CJTP0XndV92k dNZmzbgYZMTBDdeoE1md/YJCYkvAAp9PaWhOYOo8omW5OBik9K1EBpW/1/3UR6lH8rEYzEHAaD000 1nGazFh1yHs5CJkRWChynERITkzuyD8oGxNEsGrHHoA1J/qR1ZS0DBQltGJqh38ulgJulGeVUCl7F 7lK/hMWpLWPcGM+WwqK4wgcUMYSmxS0F66xIyB9eNSDEen4EV69eNihoXqZVY/wJHGXQp4HDzQbqQ bF4pOa3CrRcd+s3FXB0vkQmq7nuOYdL0SrsjkT69P7wayaHmi92I1zwdKkDh/T1sqWxh6DM6AhgMm Rwq2AoGOEB8KXnwE4P0ujw==; Date: Sat, 30 Aug 2025 21:42:57 +0300 Message-Id: <868qj0ps5q.fsf@gnu.org> From: Eli Zaretskii To: Gabriel do Nascimento Ribeiro In-Reply-To: (message from Gabriel do Nascimento Ribeiro on Sat, 30 Aug 2025 18:06:15 +0000) Subject: Re: bug#79322: file name transforms inconsistencies References: <86wm6lp0bw.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79322 Cc: 79322@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Gabriel do Nascimento Ribeiro > CC: "79322@debbugs.gnu.org" <79322@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.