From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Attaching context info to an error Date: Wed, 27 Dec 2023 11:35:41 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6729"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 27 11:36:23 2023 Return-path: Envelope-to: ged-emacs-devel@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 1rIRGw-0001ch-Hh for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Dec 2023 11:36:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIRGQ-0006gH-BC; Wed, 27 Dec 2023 05:35:50 -0500 Original-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 1rIRGN-0006g9-Nb for emacs-devel@gnu.org; Wed, 27 Dec 2023 05:35:48 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIRGM-0000un-5E for emacs-devel@gnu.org; Wed, 27 Dec 2023 05:35:47 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a23566e91d5so575129166b.0 for ; Wed, 27 Dec 2023 02:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703673343; x=1704278143; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E1pg5J3jhU0/6tK57zqgMpF7iziENIQlVxMbv4ob4sI=; b=X0NaHcLHv2Brifth/05323jtJWsjwoUoHXYJVC2ap8IRhfwXorGbaY5h/zFuTTX+C/ 3+Ufq++azD0IzRopufpZROVPgy1wWp9OsIr2AXXLDM5b4/m0l3IqPuFwHuZPIgKkIXt8 o6duvpv1oF6HBYtvNB1pbYpVkdOoPYZMybgwsT+k7Anp/qW6UFe8hQkd09nTbP+v2yYb uDauA5CHhel0kKtjUzJ0P4PFniB55zerlepKzd1KD3iiBU7BOi9RlRXYgj0VsrNbOZZ7 rpNcdLpotLQXcJu4Pio995JYRdN4DLXfl3SJBMEiqsEhWYntg89xUMkK1kPMttg0Th/v FA6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703673343; x=1704278143; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E1pg5J3jhU0/6tK57zqgMpF7iziENIQlVxMbv4ob4sI=; b=JjdcMT8+/rSa0T2EVYltDqaPDK3AD/26mjTcsblFFBv7u3Rq2MIKOdzUE86hqkMguu YBVWmmj/tAacMQvD1natiUKFRYgcVZyzbnsCDXOLDL/9kxRsbhCBMwYU5ovJWpsMhb6z hHJLPAaw4MlKMD6RZwBmeTv2DOfblQbEBpcYT041U8GbTTuvBWvREJWaKvAGjUutORpq AU+zCLiXmLq/291MVZgUorGV/Vm4bD2/yoX0y6+1Wip0UCHStGwGaLVq49WfEtDCfXDn AQio0gRs8RVSyip0ev323qvSuHeguOp5+VJnM9/qg5UpCu6SwKxOFidyOkTx+skoYuIw bQCA== X-Gm-Message-State: AOJu0Yx4+EcosoV8M4vghYbXHG87gfeDWRONwHFUgQ6w+TWhTUW7HJFR qydeB5eV/NpC3vJO4++ySG0IXRU+z8A= X-Google-Smtp-Source: AGHT+IHJThAl/JDBqJryohPhgx5B7BahEewjt741Ap2mxxnihCHyzmG1hP6FGwaFx5Psp7KWty3Ngw== X-Received: by 2002:a17:906:ca16:b0:a27:481d:3d82 with SMTP id jt22-20020a170906ca1600b00a27481d3d82mr230207ejb.99.1703673343297; Wed, 27 Dec 2023 02:35:43 -0800 (PST) Original-Received: from Pro.fritz.box (p4fe3a783.dip0.t-ipconnect.de. [79.227.167.131]) by smtp.gmail.com with ESMTPSA id wl1-20020a170907310100b00a233515c39esm6368714ejb.67.2023.12.27.02.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 02:35:42 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Wed, 27 Dec 2023 10:29:56 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314242 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > On Wed, Dec 27, 2023, 06:50 Gerd M=C3=B6llmann = wrote: > > BTW, and sorry if I'm cnfusing things here, maybe. > > Do you & Stefan mean, with "restart", restarts like in CL, i.e. > restart-bind, invoke-restart, find-restart, ...? > > Yes, those are the ones I mean. > > I guess not, because I > think, handler-bind handlers in CL would/could use invoke-restart. At > least that's what I have in the back of my mind. So, I guess my question > is what kind of restart is this? > > The same you had in the back of your mind. That's exactly how they > cooperate normally. It was I who was confusing and misremembering > things with my poc. Restarts normally aren't implemented in terms of > handler-bind as I clumsily suggested, but handler-bind is essential to > invoke then or even modify the condition as it travels up-stack. Ahhhh, very very good! Thanks for the clarification!