From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs Subject: bug#57321: 29.0.50; doc string and customization form for variable auto-save-file-name-transforms suboptimal Date: Mon, 22 Aug 2022 11:59:17 +0200 Message-ID: <87y1vga9ai.fsf@no.workgroup> References: <874jy5wr7g.fsf@no.workgroup> <877d31cgp1.fsf@gnus.org> 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="16839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57321@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 22 12:00:14 2022 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 1oQ4E9-00046I-QH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 12:00:13 +0200 Original-Received: from localhost ([::1]:42532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQ4E8-0000CE-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 06:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ4Dy-0000Bn-O0 for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 06:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQ4Dy-00084u-EC for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 06:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQ4Dy-0006C9-3C for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 06:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2022 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57321-submit@debbugs.gnu.org id=B57321.166116237323747 (code B ref 57321); Mon, 22 Aug 2022 10:00:02 +0000 Original-Received: (at 57321) by debbugs.gnu.org; 22 Aug 2022 09:59:33 +0000 Original-Received: from localhost ([127.0.0.1]:37928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ4DV-0006Ax-3U for submit@debbugs.gnu.org; Mon, 22 Aug 2022 05:59:33 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ4DP-0006Ag-R8 for 57321@debbugs.gnu.org; Mon, 22 Aug 2022 05:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661162361; bh=3WVN6iF1fjgdOU/IxLE89Q64RtTndY600tknbDh7qTQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=At4dvtyMPP383ni+OGEnfLpxmMt4M7GOf8wUTRbIaokgSQ3ZoMbYDJ0qSHoWqsQuE ttw0OsJ7tDmd1/vBuU62m2XHIXrJb0m5dfpcAtTpyUtrv+KTCaX3mKAK7wQrmtC86Q BOnux5auqO+5Yb5t0JVtHiunmJdq+Kx+U9n5AlVk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([95.90.232.231]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWRVh-1owC2c2DYR-00XqOQ; Mon, 22 Aug 2022 11:59:21 +0200 In-Reply-To: <877d31cgp1.fsf@gnus.org> X-Provags-ID: V03:K1:dfCKsD83WxAXs1C0rXdjysAQFr2KgsyNVQUBjoIOTX3/CGviePF lC9hINJfhD1vUZ2QLNrUCSLWH7W4hJYl/Kz+ylNaaeFTYGlycOiXAtlidGVHTs4biyifBjN 5W3G6yfCqu2scwufZuSoGWfSwKi1ePM1Q0taNASuakkFGTSdkUd5VIzddHXz8krnRAb74RF XIRJT12KCaHE/KJtSuB6Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:O3kvKCezKMI=:O+8GGcovj93oYRrOegXIH5 VG6kGTlgSPPMGGvLhHpzUksIx7jsMHylvJuYO8hk5ur4vEZHzIggkpiG+gIMYf1PB/+xxGu21 CQn+6HWFvUuvWEb+Hbtj2DYJvjH5qcY1XrhnHTDPVs5rDPaEaX67bQT8dPF5UOY6kxmy1+VGK 4UOqW2MKFmvQCG0gccVRe3ikNE/K09bxowF4rZCELk6rCbZuI6ANb7W3nBQEtWayOA0riGBrm cd/9bplZrYgtmzDlzAowHKOfonll3G25GUIn/O6F19l5br0mW7R51CUE9FtZDbMr3XeyUZHUA FJ7aEGGu+APLx5hB3BkFoesFAk8mkYYND9d9Xv+jcMehYZL4xdVOx5gzlvz1rlHu3m9tI8qCX SvTss9gxOSllCs3IC+gwWYLZiKdciLoghIBYp3Uhsk2ng+8pSV41XTruHG4+1Coa2gK9G0o7w eUdpJk+ZtpLU+dUhBxKduP3UdRmbwxzTz6EZ5ogs6aWo0nr03Gov590+WqfDkozEca+JrE/9h TH2miZHJhCAiqh0kT6WlVRvPF2splkjx/856TK5E+DbMz92BpZvHCufNSJyDkI0doetPpJVhg t40IiDqJr9EtT/XTwWmBFc7zwdSfEeBdG2IadEtKKYqg+a4W1gM/IWN8tnSr2xhrTpOUXNvh6 yfWA6FlSIVRZlyqsZzm4JfXxJSJeUQ47Q5/groU6uM5K2K0yBNFbXqMLMj3CwDEaIQhRHCZPs cNqCM97o/C9vvTLNbj9E8oAciFDz1K8VMY8RP9p5rrChmLyQwTKt0g6l2r4IEGKttywt5aHI 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:240389 Archived-At: Hi Lars, * Lars Ingebrigtsen [2022-08-22; 01:36]: > Gregor Zattler writes: >> (customize-variable 'auto-save-file-name-transforms) >> >> shows the customization form for this variable accompanied >> by a doc string. >> >> According to the doc string the argument UNIQUIFY may have >> on of more than two values but the form only gives access to >> a toggle switch. > > I'm unable to reproduce this -- with "emacs -Q" in Emacs 29, I get: > Hide Auto Save File Name Transforms: > Repeat: > [INS] [DEL] List: > Regexp: \`/[^/]*:\([^/]*/\)*\([^/]*\)\' > Replacement: /tmp/\2 > Uniquify: [Toggle] on (non-nil) > [INS] You get, what I got. What I meant was, that one can only toggle the value of UNIQUIFY from on to off and back, while this argument also allows for the names of some secure hashes. Therefore for the sake of completeness the customization form should feature a value menu instead of a toggle switch. >> The documentation for UNIQUIFY, does not state clearly what >> happens if UNIQUIFY is nil and what the perils are. > > Well, it doesn't make the names unique, so you could overwrite > a different autosave file, but does that need to be said? > >> Where the doc now says "is non-nil" it probably should say >> "is t" instead. > > No, all non-nil values (except the ones in secure-hash-algorithms) work > fine. The doc string is upside down. Only after reading the last part about the secure hashes one knows that "non-nil" actually means "non-nil except for the names of secure hashes". Only when reading the part regarding UNIQUIFY being "non-nil" one understands that the talk before about replacing within the regex match actually is about the directory the auto-saved-files are stored under. That might not be important, though. I can easily live without the doc string being changed, now that I groked it. Ciao, =2D- Gregor