Hrvoje Niksic <hniksic(a)iskon.hr> writes:
Per Abrahamsen <abraham(a)dina.kvl.dk> writes:
> There is a lot of changes in customize like this:
>
> - (error "Keyword %s is missing an argument" keyword))
> + (signal 'error (list "Keyword is missing an argument"
keyword)))
>
> What is the purpose of that change?
Providing actual arguments to errors is a good idea, especially in
low-level code. Code that traps the error can in that case get more
context about the error without the need to parse the error message
string. Most errors in XEmacs C code are signaled that way.
Also, as Robert reminded me, errors signaled by `signal' are
continuable. In XEmacs you can get the same thing by calling
`cerror', but I preferred signals for reasons explained above.