emacs-devel
[Top][All Lists]
Advanced

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

Re: Short patch for review


From: Kelly Dean
Subject: Re: Short patch for review
Date: Thu, 19 Feb 2015 10:30:36 +0000

Eli Zaretskii wrote:
> Do we have guidelines for which errors should be 'user-error'?

If the program is at fault, use error. If the user is at fault, use user-error.

If debug-on-error is t, and the program is at fault, then pop up the debugger 
in order to help find the problem in the program. If the user is at fault, then 
don't pop up the debugger, even if debug-on-error is t, because there's no 
problem in the program.

And those guidelines match, because Emacs pops up the debugger if 
debug-on-error is t and an error is signaled, but not if user-error is signaled.

In the case of this patch, the errors are clearly user errors, not program 
errors.



reply via email to

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