From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Making debugging possible on expressions executed from ielm Date: Sat, 20 Jan 2018 12:55:18 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516470831 19581 195.159.176.226 (20 Jan 2018 17:53:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Jan 2018 17:53:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 20 18:53:47 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecxKr-0004gB-0R for ged-emacs-devel@m.gmane.org; Sat, 20 Jan 2018 18:53:45 +0100 Original-Received: from localhost ([::1]:53612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecxMr-0002Ra-AP for ged-emacs-devel@m.gmane.org; Sat, 20 Jan 2018 12:55:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecxMe-0002Q2-8J for emacs-devel@gnu.org; Sat, 20 Jan 2018 12:55:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecxMZ-000759-A1 for emacs-devel@gnu.org; Sat, 20 Jan 2018 12:55:36 -0500 Original-Received: from [195.159.176.226] (port=55905 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecxMY-00072S-Up for emacs-devel@gnu.org; Sat, 20 Jan 2018 12:55:31 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ecxKS-0003FD-Jj for emacs-devel@gnu.org; Sat, 20 Jan 2018 18:53:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:k4Ff07jTYJyd3cPAcgOwT1/lZLI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222109 Archived-At: > I did not know about condition-case-unless-debug, it indeed does make > debugging possible with a simpler change and without any side effects. > I attach the patch. Thanks. I installed it, but not the part that surrounds reading and pretty printing: these would be used to debug IELM itself rather than the code provided by the user to ielm. I'm not 100% opposed to it, but at least my experience with debugging errors in the printer leads me to think that such errors are hard to debug in the debugger anyway (because they also affect the debugger), so I went with a more conservative patch which only changes the part which I positively know is useful (because I've been using a similar tho more convoluted patch for years (had completely forgotten about it)). Stefan