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: Fri, 29 Dec 2023 17:24:29 +0000 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="30118"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 29 18:25:16 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 1rJGbk-0007aS-Iw for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Dec 2023 18:25:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJGbI-00080k-0n; Fri, 29 Dec 2023 12:24:48 -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 1rJGbG-00080Y-D2 for emacs-devel@gnu.org; Fri, 29 Dec 2023 12:24:46 -0500 Original-Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJGbE-0005lC-Ud for emacs-devel@gnu.org; Fri, 29 Dec 2023 12:24:46 -0500 Original-Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2cceb66a986so12321111fa.0 for ; Fri, 29 Dec 2023 09:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703870682; x=1704475482; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QTmeGdKIA0OM83AaXT0abKJR1A9fnYs0lL1bBEtRnwA=; b=aauPo+IPYHyQPXoXfX1P6OxO2FGufLOHc/v5fB60pB7Pk3wvgzwCOBQPnkyawv048n zqAoxbQaOMr8SiDAinj0N0E2iWYFYMTVHR5o9iUd4I77PY26wb1XdTcxHa/JozLhOAte ZftKCF37PnE45+6/5VNFW8ra/YPF5eJGjaBEplBYoFfrFtoZKqyxbQnPc1VMNEmNwrsz 8wqOMgSFda6U4TUhPCAGCqug6uzI7pApkE41Ov49kxhVcTK3sF3cdVpfvaT30G+8Nq+4 gCK5F9Gr6Kx+oBB4Gt+CLC2enPUFbACougTPxLhM3S5zcoT7HD/WU+RU7APe6ry+d8jB AMQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703870682; x=1704475482; h=content-transfer-encoding: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=QTmeGdKIA0OM83AaXT0abKJR1A9fnYs0lL1bBEtRnwA=; b=uQA9rU4ovFfdzQ7UOHxdV1gUitL/51K0Q+5RuEOPSc0C8wyGrkPgmZngFMS9gnkwuE yzH0IurTdL8WSu2bJapz2lc/VRQWLtJlMOdge/ppW8zivu5szef85nN4Te/R3xudTamt eSrFxJu26BXLu5bJBp6uY7ktRk3qAcgpK5ZWpq+0FuEX2V+Eh0sziKdn0uuBxh5Voyj/ CkShzlJETAcrzt5o+BrzhgW6bYTK0HIFNZPjpxoOcCpsU3NDSKPW35GXLFRfKsJ4WrNX B2VBb8glPcXZTCZResEtHahdJgnd3yOIGNjaWbm6m50wfIFCkwhsKRcY5j/KtKPeqIT4 orCg== X-Gm-Message-State: AOJu0YzdLREYZ7X97Zp8srsylzZ99zpuP7EfstCZ4avwV/OpWdOweEZj sBDtfegYn4NUP8+8EhDjA2ULODLukN0xbJt8ACsuVEuE X-Google-Smtp-Source: AGHT+IEH0xWP1prQSQH/O1h3TlNYz6uv4rYJCLhhK9WgL/+d0DYcMnZcl+s77wxQwb2e8WV2KUyMa2zL64DnNxN0UWo= X-Received: by 2002:a2e:8396:0:b0:2cc:d5b0:3f09 with SMTP id x22-20020a2e8396000000b002ccd5b03f09mr2493956ljg.106.1703870681601; Fri, 29 Dec 2023 09:24:41 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x230.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:314332 Archived-At: On Fri, Dec 29, 2023 at 5:19=E2=80=AFPM Alan Mackenzie wrote: > Talk about "generic functions" and "proper objects" makes me worried > indeed. The Emacs error handling must work fully right from early > bootstrap, i.e. when no Lisp has yet been loaded. The "proper object" > for this is a list, of defined structure. It's indistinguishable from a cons, which is bad for many reasons explained at length. Weren't you involved in "symbol-with-pos"? It's a similar object with a unique type. So it's going to need more arguments than just being scared of generic functions. Noone is advocating for calling generic functions from C or preloading them, etc, so don't worry about it.