|
From: | Noam Postavsky |
Subject: | bug#24618: 26.0.50; `condition-case' doesn't allow catching all signals |
Date: | Tue, 04 Sep 2018 19:06:03 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |