mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
standard error symbols
* module/language/elisp/boot.el (error, wrong-type-argument, no-catch, invalid-function): Define `error-conditions' properties for these standard error symbols.
This commit is contained in:
parent
76c50ec52e
commit
ce9b7cc22c
1 changed files with 6 additions and 0 deletions
|
@ -470,3 +470,9 @@
|
|||
'()))
|
||||
(cond ,@(mapcar #'handler->cond-clause handlers)
|
||||
(t (signal ,error-symbol ,data)))))))))
|
||||
|
||||
(put 'error 'error-conditions '(error))
|
||||
(put 'wrong-type-argument 'error-conditions '(wrong-type-argument error))
|
||||
(put 'invalid-function 'error-conditions '(invalid-function error))
|
||||
(put 'no-catch 'error-conditions '(no-catch error))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue