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 07:50:57 +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="24296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 27 07:51:42 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 1rINlV-00069o-RN for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Dec 2023 07:51:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rINkv-0005wv-1K; Wed, 27 Dec 2023 01:51:05 -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 1rINks-0005wW-Q4 for emacs-devel@gnu.org; Wed, 27 Dec 2023 01:51:02 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rINkr-00016C-AM for emacs-devel@gnu.org; Wed, 27 Dec 2023 01:51:02 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-55568386fa1so15299a12.3 for ; Tue, 26 Dec 2023 22:51:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703659859; x=1704264659; 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=rIYHKu71A3ppTzXsJgaTr2BzZPD8pjP0Dni8k3Tv2EE=; b=mN4GP9AqfbuarnHxcd0Vnu4AL1NDq/KXUcLncVAvGY3aK6CU7sj7pTtBkHBo8zMWGR hzP/mWy9LEM1e9+BfA4suHCzzamZXg68hXVwgSiVom5eKMVVSmlam7ZpznZCCCAO2WLi GNr6mjTBohobSmalypGZFadyhLs23f/spy5oSRLLL80JuWsZZica7uJbJL8FGPfsyGRt ElYRl4YdfoqCz7ZPBJ0jp7Bxu7Ojl9uq0fe0zsQOJd6fT00WyZ1gG5Rr1AAlngEcpPgv Lt94Kcf5Qq6XxgtiBhTkN1uLDXY4uik6LPkVW+h1kg+FuJl0aKI8H6SNCmFoBCjQA1W+ fUMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703659859; x=1704264659; 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=rIYHKu71A3ppTzXsJgaTr2BzZPD8pjP0Dni8k3Tv2EE=; b=giXe0iWTKkUUx7QmIsIjnNkmF65XCdUUS2Y42HQdDMBpqonsy2jrBaTg0YI06aIUel bmWRKTNz2gRqcurG9fhIKm/yFdryvaizK1PqLs9qsgF5vscdWDpy9y3DdaTXSO8oRS2+ qjJIyQeZgfpgbn7HKrCjjQsvGtn+Sy/kDC0F4WP4taXmpXvEQ9PYYoiU/8rge3vrDBw7 zaZQRmayoGQlBSgaIYZg2OoFU3lon8OIFMgVLUDuoA1rTQHYXIXBIS4kGi3OuvJoTHQW yU1xnRnQRG2OMUDKRx51xt/o3s6+WMHZ5r4Oyhd2lpKZE0TMV1NDIjv5Pm3Y8VAYe8zE ZsSQ== X-Gm-Message-State: AOJu0YwnWn/bfWecF2Ssqic5U8e3eot49SGjkvqukMsBCC0kmelUTxnN 30I+xOnwU6zGOq+QXGNGV+uX3ufYgws= X-Google-Smtp-Source: AGHT+IGvGjNiL8gtLdshcL1vQiWDZfxn3UffXc7YMEpdybtu5YgBvtHHkZrDqE5KZHxD2VRZqmFytQ== X-Received: by 2002:a17:906:51d4:b0:a26:f017:c679 with SMTP id v20-20020a17090651d400b00a26f017c679mr1672392ejk.75.1703659858695; Tue, 26 Dec 2023 22:50:58 -0800 (PST) Original-Received: from Pro.fritz.box (p4fe3a783.dip0.t-ipconnect.de. [79.227.167.131]) by smtp.gmail.com with ESMTPSA id i3-20020a1709061cc300b00a26a9593a68sm5777667ejh.76.2023.12.26.22.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 22:50:58 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 26 Dec 2023 22:43:52 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x530.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:314237 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > On Tue, Dec 26, 2023 at 8:47=E2=80=AFPM Stefan Monnier wrote: >> >> >> I'm playing with `handler-bind` and trying to see how we could make u= se >> >> of such a functionality in Emacs. >> > *loud cheers* >> [...] >> > Amongst the killer weaponry this gives us is a restart system, >> > finally. >> >> I fail to see the connection, to be honest. > > The restarts themselves can be made with simply try/catch, > you're right, but automatically invoking restarts with certain > parameters based on different each error object can only be done > with handler-bind AFAIK. 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, ...? 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?