emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why should interactive search results raise errors?


From: Stefan Monnier
Subject: Re: Why should interactive search results raise errors?
Date: Thu, 04 May 2006 12:15:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     I think the better answer is to create a new error class called
>     `user-error' which would be then added to debug-ignored-errors.
>     Then we can replace most elements of debug-ignored-errors by changing
>     the signalling code so as to signal a `user-error' rather than an
>     `error'.

> That is not necessarily a bad idea, but I am not sure whether it is
> really possible to distinguish "user errors" from other errors at the
> level of calls to `signal'.

Clearly, the distinction between the two is only based on an expectation of
the context in which the function will be used.  So it's a heuristic and can
fail, but it on the flip side it also documents some of the intention behind
the code.
I think of it mostly as a way to clean up the debug-ignored-errors list.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]