[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bug-hunter eed96f1 89/95: Explain invalid-modifier erro
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bug-hunter eed96f1 89/95: Explain invalid-modifier errors |
Date: |
Fri, 27 Nov 2020 22:07:03 -0500 (EST) |
branch: externals/bug-hunter
commit eed96f10341fd4c8e41f6c467f456a119b7dca74
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Commit: Artur Malabarba <bruce.connor.am@gmail.com>
Explain invalid-modifier errors
---
bug-hunter.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bug-hunter.el b/bug-hunter.el
index c7e3c36..4a9222d 100644
--- a/bug-hunter.el
+++ b/bug-hunter.el
@@ -143,7 +143,10 @@ file.")
nil)
(end-of-file `(bug-caught (end-of-file) ,line ,col))
(invalid-read-syntax `(bug-caught ,er ,line ,col))
- (error (error "Ran into an error we don't understand, please file a
bug report: %S" er)))
+ (error
+ (if (string= (elt er 1) "Invalid modifier in string")
+ `(bug-caught (invalid-modifier) ,line ,col)
+ (error "Ran into an error we don't understand, please file a bug
report: %S" er))))
(nreverse out))))
(defun bug-hunter--read-contents (file)
@@ -215,6 +218,9 @@ the file."
(cl-case (car error)
(end-of-file
"There's a missing closing parenthesis, the expression on this line
never ends.")
+ (invalid-modifier (concat "There's a string on this line with an invalid
modifier."
+ "\n A \"modifier\" is a \\ followed by a few
characters."
+ "\n For example, \\C-; is an invalid
modifier."))
(invalid-read-syntax
(let ((char (cadr error)))
(if (member char '("]" ")"))
- [elpa] externals/bug-hunter 17d7343 74/95: Fix test, (continued)
- [elpa] externals/bug-hunter 17d7343 74/95: Fix test, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter 6e66ec3 78/95: Add missing word in user prompt., Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter fbc34db 84/95: [Fix #12] Mention bisecting and debugging in the Readme, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter afb4bb1 86/95: Fix #14 - Explain what to do if you encounter another issue, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter fb5b512 75/95: Better documentation and interactivity, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter 7d15c017 79/95: Merge pull request #10 from IvanMalison/master, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter 9a3e757 88/95: Indentation, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter 9e4eb56 65/95: Merge pull request #4 from mgalgs/patch-1, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter e59d221 90/95: Bug-hunter version 1.1, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter a29097f 82/95: Update url, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter eed96f1 89/95: Explain invalid-modifier errors,
Stefan Monnier <=
- [elpa] externals/bug-hunter aacb7dc 91/95: [Fix #15] Don't offer interactive bisection in the terminal, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter b88d981 94/95: Version 1.3.1, Stefan Monnier, 2020/11/27