From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Attaching context info to an error Date: Wed, 27 Dec 2023 10:29:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000075b1c8060d7b480b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 27 11:31:14 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 1rIRBy-0004Gv-Ci for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Dec 2023 11:31:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIRBA-0005fz-Jz; Wed, 27 Dec 2023 05:30:25 -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 1rIRAz-0005e2-PN for emacs-devel@gnu.org; Wed, 27 Dec 2023 05:30:15 -0500 Original-Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIRAw-0007Xn-8V for emacs-devel@gnu.org; Wed, 27 Dec 2023 05:30:11 -0500 Original-Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ccb4adbffbso29438621fa.0 for ; Wed, 27 Dec 2023 02:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703673008; x=1704277808; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O+XLHFPNks5OLiYEmPbjA1bKY61u70MWlnvV9sWjsuE=; b=ekxM0bq10sa8T2Xr8u9XshJ17BhL9XRBJtrOZlTepcGX8NPxsrQhSdgXtrl2X2pbXP pqGIB2OeH/sCjJdbinhcUSn9L0qNdJCs766ViOqLJRfcuywhkliyvq9c7To1l6Rt7ahl AvDaH/IJUb367wfHThCFzOXUNPuA6cHT8P9wlaQ8uWUd/blc5bhvwK1PUH3TrM3Xf9Au tsCj9HhmN3Gqpekq/htL8n1sjcjD96F6QQNIQtTwuBczYPg6iqHyWVRVwU0EgPShhrnj 2hsMMwgkxjuj3zgvOAcNp7VHr/xHflAPqEJ4WAULgVOW7SfK7/T2nzvMWUOyYvAwrJMA 3Xkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703673008; x=1704277808; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O+XLHFPNks5OLiYEmPbjA1bKY61u70MWlnvV9sWjsuE=; b=ErWVFZUsyuxmsaCwSpdJHwMUT1rofsBVxAmXge+Uur8VB2WR8G+0frzyuMlAr6QwzQ LS7w3cbDCqv5Ui+BJonc4dhKJv5P4Us0K5y6VsW4HsomNvJIGtuUMRnCoYW+OGIF4rHl QuSpmHru5pF+wnSAUMrVfSMsFtHIa+z6NR/seGJPYFziP+KhuFISYKJqZvTq8iu1YNd/ gAWEOBDwYzGDOFSWYB1UjSGApmFHdrMC6oY/DuXO68b/RJsV4gj0LJ8WErEbsEecr+96 EbwLmZyQ2Ys3jPato7OmOApNUUeOb79hRfGIWjVhlbNeYCH8SCKzV7JoEdlwHWBQQqvx yOSg== X-Gm-Message-State: AOJu0YzQdq1W2bFuAOOc/JlPiIiu283rWLrH2ct+06pZId5VD87l77dc IR4qNvZtbsrsnPogBSx1B8Zwzd21kyIctSfPT6Mmr9lX X-Google-Smtp-Source: AGHT+IGQrffe5n5iSH2ZD9dwHMHL3PPmqvFW5C9ZsInzkMiZrE/QF1/OHkKdG2xAN1XsQVQKm2je21OcVlORDUNYMN0= X-Received: by 2002:a2e:9787:0:b0:2cc:b51b:23a6 with SMTP id y7-20020a2e9787000000b002ccb51b23a6mr2629493lji.71.1703673008073; Wed, 27 Dec 2023 02:30:08 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x231.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, HTML_MESSAGE=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:314241 Archived-At: --00000000000075b1c8060d7b480b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023, 06:50 Gerd M=C3=B6llmann w= rote: 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. Jo=C3=A3o > --00000000000075b1c8060d7b480b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 27, 2023, 06:50 Gerd M=C3=B6llmann <gerd.moellmann@gmail.com> 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 questio= n
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 impleme= nted 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-stac= k.

Jo=C3=A3o
--00000000000075b1c8060d7b480b--