[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: condition-case with multiple handlers
From: |
Jay Belanger |
Subject: |
Re: condition-case with multiple handlers |
Date: |
Sat, 28 Jul 2012 23:25:49 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
"Herring, Davis" <address@hidden> writes:
>> I'm dealing with a condition-case construct that has more than one
>> handler and I need some way to indicate (outside the construct) when any
>> one of the errors has occurred.
>
> How about:
>
> (let (noerror)
> (condition-case ...
> (progn
> ...
> (setq noerror t))
> (some-error ...)
> (other-error ...))
> ...)
Good idea, but it messes with the return value of the condition-case
body. I thought there might be some built-in method for handling this,
but I'm thinking not.
Jay