GNU bug report logs - #24618
26.0.50; `condition-case' doesn't allow catching all signals

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Tue, 4 Oct 2016 16:43:01 UTC

Severity: wishlist

Tags: fixed, patch

Found in version 26.0.50

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 24618 <at> debbugs.gnu.org
Subject: Re: bug#24618: 26.0.50;
 `condition-case' doesn't allow catching all signals
Date: Tue, 04 Sep 2018 19:06:03 -0400
tags 24618 fixed
close 24618 27.1
quit

Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> Consider the following code:
>
> (condition-case err
>     (signal 'does-not-exist '(1 2))
>   (error (print err)))
>
> The signal is not caught by condition-case because it has no error
> conditions.  This makes it impossible to reliably catch all signals
> (without abusing the debugger).  I propose that an error condition of
> 't' in `condition-case' should be interpreted as 'all conditions'.

Done in master.

[1: 425c281164]: 2018-09-04 18:50:15 -0400
  Allow t as a catch-all condition-case handler (Bug#24618)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=425c2811641a6b8ec4549cad5f6bd15a46bc95d5




This bug report was last modified 6 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.