[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/yasnippet 52a1c50319 9/9: * yasnippet.el (debug-ignored-e
From: |
Stefan Monnier |
Subject: |
[elpa] scratch/yasnippet 52a1c50319 9/9: * yasnippet.el (debug-ignored-errors): Don't modify it |
Date: |
Tue, 17 Oct 2023 11:20:21 -0400 (EDT) |
branch: scratch/yasnippet
commit 52a1c5031912243c791c55e0fe345d04f219b507
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* yasnippet.el (debug-ignored-errors): Don't modify it
(debug-ignored-errors): Remove left over code that became obsolete with
commit 175e0a3a102c22.
(yas--read-lisp): Fix code generation.
(yas-exception): Use `define-error`.
---
yasnippet.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index ce59d25a9a..c4f8ae48fa 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1490,7 +1490,7 @@ return an expression that when evaluated will issue an
error."
(condition-case err
(read string)
(error (and (not nil-on-error)
- `(error (error-message-string ,err))))))
+ `(error (error-message-string ',err))))))
(defun yas--read-keybinding (keybinding)
"Read KEYBINDING as a snippet keybinding, return a vector."
@@ -3041,8 +3041,7 @@ snippet field. The arguments are the same as
`completing-read'.
(defun yas-throw (text)
"Signal `yas-exception' with TEXT as the reason."
(signal 'yas-exception (list text)))
-(put 'yas-exception 'error-conditions '(error yas-exception))
-(put 'yas-exception 'error-message "[yas] Exception")
+(define-error 'yas-exception "[yas] Exception")
(defun yas-verify-value (possibilities)
"Verify that the current field value is in POSSIBILITIES.
@@ -3943,8 +3942,6 @@ Move the overlays, or create them if they do not exit."
(cl-loop for snippet in snippets
do (yas--commit-snippet snippet)))))
-(add-to-list 'debug-ignored-errors "^Exit the snippet first!$")
-
;;; Snippet expansion and "stacked" expansion:
;;
- [elpa] branch scratch/yasnippet created (now 52a1c50319), Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 946b27ddca 1/9: * .gitignore: Add patterns for ELPA-generated files, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 009322196c 6/9: * yasnippet-debug.el: Use `advice-add` i.s.o `defadvice`., Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 043c52a5a9 7/9: * yasnippet.el (yas-minor-mode-map): Don't bind to `tab`, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 97002af846 4/9: * yasnippet.el: Use `lexical-binding`, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet e991530108 5/9: * yasnippet.el: Use `add-function` and remove left-over debug code, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 6e4de312cf 2/9: * doc/yas-doc-helper.el: Use `cl-lib` and `lexical-binding`, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet b09ab98419 3/9: * yasnippet-tests.el: Minor cosmetic changes, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 58c92ba393 8/9: * yasnippet.el: Cosmetic changes, Stefan Monnier, 2023/10/17
- [elpa] scratch/yasnippet 52a1c50319 9/9: * yasnippet.el (debug-ignored-errors): Don't modify it,
Stefan Monnier <=