From unknown Tue Aug 12 08:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52691] [PATCH] git: Display a hint when CLONE* lacks permission. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52691 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52691@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164004786915404 (code B ref -1); Tue, 21 Dec 2021 00:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2021 00:51:09 +0000 Received: from localhost ([127.0.0.1]:51778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzTMz-00040O-Ec for submit@debbugs.gnu.org; Mon, 20 Dec 2021 19:51:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:55292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzTMx-00040H-Ns for submit@debbugs.gnu.org; Mon, 20 Dec 2021 19:51:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzTMx-0006Ff-DW for guix-patches@gnu.org; Mon, 20 Dec 2021 19:51:07 -0500 Received: from [2a02:c205:2020:6054::1] (port=35672 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzTMs-0007oA-QK for guix-patches@gnu.org; Mon, 20 Dec 2021 19:51:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=J+2op2u2pv4sf iwgYF08A37jVhwrdJ0kJcngs1kBD5c=; h=date:subject:to:from; d=tobias.gr; b=Q7bXDzrSrzvzSo3yuBPeb3iGFOJqeZuW9l/yRe7Or7AWaNKBBc/VKltFKYbwGCyRSHPz wgotB5Lzj2JavxgcqENj2wEemz7cKoFbIQsw0snJ+Gkm0ehU3Hgu9Ykai/Ikaq1N8EGNO+ LMRJlgTmjztcDoVB9S8XDmbcUSE4WP4WUgG4+qdNosVyo/4l77z0S4AhDWvBLEv4bdAdzo +4eg+ZKM6VyggvPGaTcxBpg+cGzXinQ6EbpcA3CJfywTnhU0cAqNDsyFyOhWq/oT5XgM+F 9W9XgAlhQYTwS9HoQfaiUukFsTBwp/vypGY31Bhj0GCgFYweFbL1nmcTZBNZQv1Q== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 734c98ad (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Tue, 21 Dec 2021 00:50:56 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Tue, 21 Dec 2021 01:51:02 +0100 Message-Id: <20211221005102.17638-1-me@tobias.gr> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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: -2.7 (--) Without this, it's not obvious where users should even start looking: $ guix pull Updating channel 'guix' from Git repository at URL... guix pull: error: mkdir: Permission denied $ * guix/git.scm (clone*): Print DIRECTORY as a hint on EPERM. Reported by karrq on #guix. --- guix/git.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/guix/git.scm b/guix/git.scm index dc2ca1be84..1b322be0fe 100644 --- a/guix/git.scm +++ b/guix/git.scm @@ -35,6 +35,7 @@ (define-module (guix git) #:use-module (guix gexp) #:use-module (guix sets) #:use-module ((guix diagnostics) #:select (leave warning)) + #:use-module (guix ui) #:use-module (guix progress) #:autoload (guix swh) (swh-download commit-id?) #:use-module (rnrs bytevectors) @@ -200,8 +201,16 @@ (define (clone* url directory) (clone url directory (make-clone-options #:fetch-options (make-default-fetch-options)))) - (lambda _ - (false-if-exception (rmdir directory))))) + (lambda args + (false-if-exception (rmdir directory)) + ;; Compensate for unixy errors, e.g., ‘error: mkdir: Permission denied’. + ;; XXX This displays the hint before the error. After would be nicer. + ;; XXX So would a generic mechanism for dealing with such errors. + (match args + ((system-error _ _ _ EPERM) + (display-hint (format #f (G_ "can you create and write to ~a?") + directory))) + (_ #f))))) (define (url+commit->name url sha1) "Return the string \"-\" where REPO-NAME is the name of -- 2.34.0 From unknown Tue Aug 12 08:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52691] [PATCH] git: Display a hint when CLONE* lacks permission. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52691 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 52691@debbugs.gnu.org Received: via spool by 52691-submit@debbugs.gnu.org id=B52691.164009774423666 (code B ref 52691); Tue, 21 Dec 2021 14:43:01 +0000 Received: (at 52691) by debbugs.gnu.org; 21 Dec 2021 14:42:24 +0000 Received: from localhost ([127.0.0.1]:52819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgLP-00069e-Pi for submit@debbugs.gnu.org; Tue, 21 Dec 2021 09:42:24 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:39671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgLM-00069N-UB for 52691@debbugs.gnu.org; Tue, 21 Dec 2021 09:42:22 -0500 Received: by mail-wr1-f46.google.com with SMTP id s1so22004487wra.6 for <52691@debbugs.gnu.org>; Tue, 21 Dec 2021 06:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mNV5dXlQznQYPKOnPa+I12L5J7a34/r9/fL+JtsTYGA=; b=exBuM/BX9kk53K14suvHgSOcb/KBXrWFxJFEyR2O167PQPl98PIgQcUxjc6WZI9S7k y1HH5CPUxUqU+2BRP4vVwbhM9HJiIiUweJQt4bgIKE8YZlecu8j9HEnUCSDQ9q+9H6oX KveC8BrVRULdyNdMMs7OmmIgul65PINh7CSDz2ibGpNxLGTx1zNnMnN7CPf6g0+re0Yc KMbUVr0XfTbNg3Qcj3Zlewykms+y4lADAKb2xdbz9jVUz2xqZL6+malaPtEW0Qfx/qEg E3LBZgzcbI7b1y4VCyaypFnioLP9xSj4aHMiKhXM+E/z04weaYWIz+ls4oNR3qWGZFo6 yuaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mNV5dXlQznQYPKOnPa+I12L5J7a34/r9/fL+JtsTYGA=; b=eYKfFLuVGmkbsUulU3irntJ17Ja3aY6QCPB7pHr0OgJmU3R5A3o5K3lKcxzgLGDODt dQWC3+9EBhkxXR5S6EW8aydN6Hr8tEqRQnNKAUzUQTRSz/olbfyQgFJhljC237LoXtMf xM8d/q1d8HmWVbInyNZwiHRUVfU3tFL9jRkVkE8veKow6FpvxEdYuDzyk5D40uvoewPb /imNFs1ebeOTl5LH5cbkqA9sMinbgqql86VqIaBnr4RXYyaOVpeALwH9wJXKGdqTIcOV CFnaEfkGhbwSg6rsxcw9DEn5PeItdd6QGmYyXDEp3Cc/6fk3jmW8KU4HMO6LrwHIsfXl oU2Q== X-Gm-Message-State: AOAM5307GvSuhs+AnNi057DvfK3ZRnUvVbXEyP+kRUfApXbJ8G+/qDsq gZjcmLK9Ko+NYIX7gH0EaMaKPxW9bfY= X-Google-Smtp-Source: ABdhPJxDt82aY0xnfWF7RY+aW8RKx2Ta5kxi9jLtvP0eqDCfzc1fs7biPGSnDyGuJC4dq678gIaTbg== X-Received: by 2002:a05:6000:120e:: with SMTP id e14mr3000304wrx.392.1640097734924; Tue, 21 Dec 2021 06:42:14 -0800 (PST) Received: from jack-Precision-7820-Tower ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id a22sm2565118wme.19.2021.12.21.06.42.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Dec 2021 06:42:14 -0800 (PST) From: zimoun References: <20211221005102.17638-1-me@tobias.gr> Date: Tue, 21 Dec 2021 15:42:07 +0100 In-Reply-To: <20211221005102.17638-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Tue, 21 Dec 2021 01:51:02 +0100") Message-ID: <86y24exbnk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) 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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tobias, On mar., 21 d=C3=A9c. 2021 at 01:51, Tobias Geerinckx-Rice w= rote: > Without this, it's not obvious where users should even start looking: > > $ guix pull > Updating channel 'guix' from Git repository at URL... > guix pull: error: mkdir: Permission denied Instead of hint, I propose this patch which displays: --8<---------------cut here---------------start------------->8--- Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix pull: error: mkdir: Permission non accord=C3=A9e /home/sitour/.cache/g= uix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq --8<---------------cut here---------------end--------------->8--- Somehow, the URL is already reported and the patch exposes the hidden =E2=80=99directory=E2=80=99 variable whatever the error could be. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=clone.patch Content-Description: clone.patch diff --git a/guix/git.scm b/guix/git.scm index dc2ca1be84..e2285f5f55 100644 --- a/guix/git.scm +++ b/guix/git.scm @@ -200,8 +200,12 @@ (define (clone* url directory) (clone url directory (make-clone-options #:fetch-options (make-default-fetch-options)))) - (lambda _ - (false-if-exception (rmdir directory))))) + (lambda (key subr fmt args . rest) + (let ((message (match args + ((reason tail ...) + (list (string-append reason " " directory)))))) + (false-if-exception (rmdir directory)) + (apply throw key subr fmt message rest))))) (define (url+commit->name url sha1) "Return the string \"-\" where REPO-NAME is the name of --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > + #:use-module (guix ui) I think that less UI is outside guix/scripts/ and easy maintenance we have. Ideally, G_ should only be under guix/scripts/. Last, if my proposal does not fit, from this snippet, --8<---------------cut here---------------start------------->8--- + (lambda args + (false-if-exception (rmdir directory)) + ;; Compensate for unixy errors, e.g., =E2=80=98error: mkdir: Permiss= ion denied=E2=80=99. + ;; XXX This displays the hint before the error. After would be nice= r. + ;; XXX So would a generic mechanism for dealing with such errors. + (match args + ((system-error _ _ _ EPERM) + (display-hint (format #f (G_ "can you create and write to ~a?") + directory))) + (_ #f))))) --8<---------------cut here---------------end--------------->8--- the =E2=80=99match=E2=80=99 can be avoided --8<---------------cut here---------------start------------->8--- (lambda (key subr message args . rest) (false-if-exception (rmdir directory)) ;; Compensate for unixy errors, e.g., =E2=80=98error: mkdir: Permissi= on denied=E2=80=99. ;; XXX This displays the hint before the error. After would be nicer. ;; XXX So would a generic mechanism for dealing with such errors. (when (=3D EPERM (car rest)) (display-hint (format #f (G_ "can you create and write to ~a?") directory)))) --8<---------------cut here---------------end--------------->8--- Or someting along these lines. :-) Cheers, simon --=-=-=-- From unknown Tue Aug 12 08:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52691] [PATCH] git: Display a hint when CLONE* lacks permission. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52691 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 52691@debbugs.gnu.org Received: via spool by 52691-submit@debbugs.gnu.org id=B52691.164009898528351 (code B ref 52691); Tue, 21 Dec 2021 15:04:01 +0000 Received: (at 52691) by debbugs.gnu.org; 21 Dec 2021 15:03:05 +0000 Received: from localhost ([127.0.0.1]:55199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgfR-0007ND-9w for submit@debbugs.gnu.org; Tue, 21 Dec 2021 10:03:05 -0500 Received: from tobias.gr ([80.241.217.52]:57768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgfO-0007N0-OT for 52691@debbugs.gnu.org; Tue, 21 Dec 2021 10:03:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=TC3nvLHdtdb1W 9Zcko34zPzisikIvmN1ZTqoeyV5d04=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=V4Bp37+aLOeDvG30mVCLxmDej1TTczgfHYuApO cm0pLPkCPtOQPGMJXo9EKImQNmqeUnA1RN0gzR9cfXr5EcCpG6u9+qQe6sNDcfeLe/wiGJ K3Ou7bhyDZ8zg4NGy6eKGuINscxHfEOsEwVp/JFxlkp/gKajJ+tvzQNmRvWWyGPhxhJqwv 9JuYlReZzVo8feNVZtgkcfa46pVeV3Hi+TOotmyqJa3PTTWeV/Z/o8dsOx5oZrXdsdBleT 7v0YcwwrPLkUvbF/r0gjFKQscX5tNAvOb6D4+b5OYKR3TPANDMhuG1B1nMaRxOR/R8zxC9 CTtFY+nYDOpv9T9ja+ooirPA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 0cf10c29 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 21 Dec 2021 15:02:59 +0000 (UTC) References: <20211221005102.17638-1-me@tobias.gr> <86y24exbnk.fsf@gmail.com> From: Tobias Geerinckx-Rice Date: Tue, 21 Dec 2021 15:56:13 +0100 In-reply-to: <86y24exbnk.fsf@gmail.com> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87fsqmf19c.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) 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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Simon, zimoun =E5=86=99=E9=81=93=EF=BC=9A > Instead of hint, I propose this patch which displays: Perfect! That's what I wanted to write, but couldn't :-) (I still don't really understand THROW and friends, or what=20 exactly your snippet does, but the output is exactly what I had in=20 mind.) Thanks! LGTM, obviously. > the =E2=80=99match=E2=80=99 can be avoided True, but I chose it deliberately, and still prefer it over CAR or=20 equivalent. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYcHs3w0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW1584IA/1V6Kwg/kdmU8+C+MUilOJvtSwPoK3np5bZO32PK zsn1APsE7caTAYpjfZVWiBcl02FeqecDj9lMCFlLq3p/xs6SBw== =PM0w -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 12 08:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52691] [PATCH] git: Display a hint when CLONE* lacks permission. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52691 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 52691@debbugs.gnu.org Received: via spool by 52691-submit@debbugs.gnu.org id=B52691.164009958629360 (code B ref 52691); Tue, 21 Dec 2021 15:14:01 +0000 Received: (at 52691) by debbugs.gnu.org; 21 Dec 2021 15:13:06 +0000 Received: from localhost ([127.0.0.1]:55205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgp6-0007dS-80 for submit@debbugs.gnu.org; Tue, 21 Dec 2021 10:13:06 -0500 Received: from mail-io1-f42.google.com ([209.85.166.42]:36675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzgp1-0007ct-FB for 52691@debbugs.gnu.org; Tue, 21 Dec 2021 10:13:03 -0500 Received: by mail-io1-f42.google.com with SMTP id p65so18156608iof.3 for <52691@debbugs.gnu.org>; Tue, 21 Dec 2021 07:12:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RZOW4ki3qgRQwyVyJlOQIoLEXFb/AVDRTz0j9n8YKoQ=; b=oIkfXtYPsknOGKBGxQcAVBLPMsoYe8FViZQbrHqseRYsYp+dMEs5GZVn1RvbYQS36U t1RkQJt3YeMe6HvSi/ECqqkWLPjRht/IExD0VBuFd9KKBY+q9d1nGUcVreQQ3jynL8NM L0+H2X6DE0KjoZYl2RNtGJKItAHJYe+HP4jXKCes0SGfHVD8N2YnH/OwCi1qHbM8ZG1b vzLMNEvb4bNAN86ZIGACtOJ46FuwReBzcJnRkRh8+CX+ZUZr9N2yunMgayykchzavdre 4A0pwN1/kpIGqDUOwUshC44h0iKuBC3WiOVfLqlU4rFnSPfWA58PhVc+rLTej0+qAV2y 1q6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RZOW4ki3qgRQwyVyJlOQIoLEXFb/AVDRTz0j9n8YKoQ=; b=dlLKXYKwxiC+fh8PVjduhAq5DRSt2X92gePy2Womh1S5SO0q+mbqnR6Vjk9nD7fMBC OhwfvCjKS2TEB87+XJhJP8iCUU/1KSZJR2FsqgDQ6JKYFrcHirx3ys/6I/rT+lsB+kSf SvyY7NnrBXCFDzSl+tQxICeLrl7T7473OF8wX2naxi/zfpSYgRiTRVJiCXfcB/9GsyyD 2kdg/pL6Sf4VYOMT/pHPDYlmelywwuKyiUtT+G3mt5XfY02EJnDgRK9n4S0pmLCY/6f8 vD1XQ+HMC1LhzFp5ThA10Mjhm/OlFOW7dvoBoZpPIaHqabnwgyV4j3fz1CMKDUwUN/TG oQbA== X-Gm-Message-State: AOAM531ANJocueO8eUYijXCA6alvrDlz/zh5X4QgYM+Yye8Cq07kYPkm LkecU732PqJWwqiYs5mjTO6dIJZPZKSNjHN59ag= X-Google-Smtp-Source: ABdhPJwmmC/GE7yCfkwaYAhjzRX0vKCz9vq64rtrVNFwSsAsNrUEfKvzLh2ducQ5Kd7M6nN17QyHtveIo6VytD7LAmM= X-Received: by 2002:a05:6638:3049:: with SMTP id u9mr2147579jak.132.1640099573915; Tue, 21 Dec 2021 07:12:53 -0800 (PST) MIME-Version: 1.0 References: <20211221005102.17638-1-me@tobias.gr> <86y24exbnk.fsf@gmail.com> <87fsqmf19c.fsf@nckx> In-Reply-To: <87fsqmf19c.fsf@nckx> From: zimoun Date: Tue, 21 Dec 2021 16:12:42 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi, On Tue, 21 Dec 2021 at 16:03, Tobias Geerinckx-Rice wrote: > zimoun =E5=86=99=E9=81=93=EF=BC=9A > > Instead of hint, I propose this patch which displays: > > Perfect! That's what I wanted to write, but couldn't :-) > > (I still don't really understand THROW and friends, or what > exactly your snippet does, but the output is exactly what I had in > mind.) Me neither! Especially with new and old way, And the examples in the manual do not help very well to understand, IMHO. Another story. :-) > Thanks! LGTM, obviously. Feel free to proceed. :-) > > the =E2=80=99match=E2=80=99 can be avoided > > True, but I chose it deliberately, and still prefer it over CAR or > equivalent. Yes, me too. This 'car' was because I had been lazy. It was about this pattern: (lambda args (match args ((a b c) #t) (_ #f) when 'args' is an error. :-) Cheers, simon