diff options
| author | Stefan Monnier | 2026-03-08 23:28:11 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2026-03-08 23:28:11 -0400 |
| commit | 225977cda7c819c3bbf018d870c0eedfa92023bd (patch) | |
| tree | b81e3e98b3cb651f47ddc96bb926ec62fe0d5fa7 /lisp/type-break.el | |
| parent | 0349286fb6c4d4b4c67b5ae0e51e8ece196fbfb9 (diff) | |
| download | emacs-feature/error-API.tar.gz emacs-feature/error-API.zip | |
Use the new error API functionsfeature/error-API
* lisp/epa-file.el (epa-file--find-file-not-found-function):
Use `error-slot-value` and `error-data`.
(epa-file-insert-file-contents): Use `error-has-type-p`,
`error-slot-value`, and `error-data`.
* lisp/jka-compr.el (jka-compr-insert-file-contents):
Use `error-has-type-p` and `error-slot-value` as well as new
re-signaling form of `signal`.
* lisp/simple.el (minibuffer-error-function): Use `error-has-type-p`.
* lisp/startup.el (startup--load-user-init-file):
Use `error-message-string`.
(command-line): Use `error-has-type-p` and `error-message-string`.
* lisp/type-break.el (type-break-demo-life):
Use `error-message-string`.
* lisp/emacs-lisp/bytecomp.el (batch-byte-compile-file):
Use `error-message-string` and `error-has-type-p`.
* lisp/emacs-lisp/edebug.el (edebug-safe-eval, edebug-report-error)
(edebug-eval-expression):
* lisp/emacs-lisp/debug.el (debugger-eval-expression):
Use `error-message-string`.
* lisp/emacs-lisp/ert.el (ert--should-error-handle-error):
Use `error-has-type-p` and `error-type`.
* lisp/net/sasl.el (sasl-error): Use `define-error`.
* lisp/net/tramp-compat.el (tramp-error-type-p): New function.
(tramp-permission-denied, tramp-compat-permission-denied): Use it.
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Use `error-type-p`.
Diffstat (limited to 'lisp/type-break.el')
| -rw-r--r-- | lisp/type-break.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/type-break.el b/lisp/type-break.el index 440a7136f1d..d71b41da531 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el | |||
| @@ -1025,7 +1025,7 @@ With optional non-nil ALL, force redisplay of all mode-lines." | |||
| 1025 | (setq continue nil) | 1025 | (setq continue nil) |
| 1026 | (and (get-buffer "*Life*") | 1026 | (and (get-buffer "*Life*") |
| 1027 | (kill-buffer "*Life*")) | 1027 | (kill-buffer "*Life*")) |
| 1028 | (condition-case () | 1028 | (condition-case err |
| 1029 | (progn | 1029 | (progn |
| 1030 | (life 3) | 1030 | (life 3) |
| 1031 | ;; wait for user to return | 1031 | ;; wait for user to return |
| @@ -1033,7 +1033,7 @@ With optional non-nil ALL, force redisplay of all mode-lines." | |||
| 1033 | (type-break-catch-up-event) | 1033 | (type-break-catch-up-event) |
| 1034 | (kill-buffer "*Life*")) | 1034 | (kill-buffer "*Life*")) |
| 1035 | (life-extinct | 1035 | (life-extinct |
| 1036 | (message "%s" (get 'life-extinct 'error-message)) | 1036 | (message "%s" (error-message-string err)) |
| 1037 | ;; restart demo | 1037 | ;; restart demo |
| 1038 | (setq continue t)) | 1038 | (setq continue t)) |
| 1039 | (quit | 1039 | (quit |