From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felipe Lema Newsgroups: gmane.emacs.devel Subject: capture error stacktrace as sexp? Date: Thu, 16 Dec 2021 15:13:01 -0300 Message-ID: <5546628.DvuYhMxLoT@felipe-thinkpad-x200> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34563"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 19:14:12 2021 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 1mxvGd-0008m9-I2 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 19:14:11 +0100 Original-Received: from localhost ([::1]:60134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxvGb-0003jM-If for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 13:14:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxvFo-0002zP-91 for emacs-devel@gnu.org; Thu, 16 Dec 2021 13:13:20 -0500 Original-Received: from latitanza.investici.org ([82.94.249.234]:62325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxvFl-0003p9-Ru for emacs-devel@gnu.org; Thu, 16 Dec 2021 13:13:20 -0500 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4JFKwg30K4zGp48 for ; Thu, 16 Dec 2021 18:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mortemale.org; s=stigmate; t=1639678387; bh=ZDSsWh3TUjL17ERifwUxlTMTpU0be8WFLAyR133tPBo=; h=From:To:Subject:Date:From; b=gS1ydQp3BW1p8BXUMVTpVrIJhLg3aQVrIQwhsc/1d4FOTT7tkfZ1wBfSCo9b9JI1t yTlGwqphYD8DtvoMwg7IMutmespPqkNlDCSS/bP35D9w4Qe3/YasnZbpzX1O6VHoFo ybg6SE/f4RIfetkw6LfXLbg+I4hqAlwOItmBkACY= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: felipelema@mortemale.org) by localhost (Postfix) with ESMTPSA id 4JFKwf6sCdzGp40 for ; Thu, 16 Dec 2021 18:13:06 +0000 (UTC) Received-SPF: pass client-ip=82.94.249.234; envelope-from=felipelema@mortemale.org; helo=latitanza.investici.org 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.devel:282164 Archived-At: Hello, there Is there a way that, given an `(error ...)` when evaluation some elisp code one could capture the whole stacktrace as a sexp? My intention is to serialize not only the error but the stacktrace of an error that occurs in a separate Emacs process so I can re-raise the error in /current/ process. You can find more info and context of my intents here: https://melpa.org/#/session-async Thanks Felipe