unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 24618@debbugs.gnu.org
Subject: bug#24618: 26.0.50; `condition-case' doesn't allow catching all signals
Date: Tue, 04 Sep 2018 19:06:03 -0400	[thread overview]
Message-ID: <87sh2ohnhg.fsf@gmail.com> (raw)
In-Reply-To: <wvr4vax89ibw.fsf@a.muc.corp.google.com> (Philipp Stephani's message of "Tue, 04 Oct 2016 18:42:27 +0200")

tags 24618 fixed
close 24618 27.1
quit

Philipp Stephani <p.stephani2@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





      parent reply	other threads:[~2018-09-04 23:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 16:42 bug#24618: 26.0.50; `condition-case' doesn't allow catching all signals Philipp Stephani
2018-08-14  2:38 ` Noam Postavsky
2018-09-04 23:06 ` Noam Postavsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sh2ohnhg.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=24618@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).