[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bug-hunter 9a3e757 88/95: Indentation
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bug-hunter 9a3e757 88/95: Indentation |
Date: |
Fri, 27 Nov 2020 22:07:02 -0500 (EST) |
branch: externals/bug-hunter
commit 9a3e7576478421be471f62cc63680bea4af24222
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Commit: Artur Malabarba <bruce.connor.am@gmail.com>
Indentation
---
bug-hunter.el | 90 +++++++++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
diff --git a/bug-hunter.el b/bug-hunter.el
index ca15c03..c7e3c36 100644
--- a/bug-hunter.el
+++ b/bug-hunter.el
@@ -210,43 +210,43 @@ LINE and COLUMN are the coordinates where EXPRESSION
started in
the file."
(when line
(bug-hunter--report "%S, line %s pos %s:"
- bug-hunter--current-file line column))
+ bug-hunter--current-file line column))
(bug-hunter--report " %s"
- (cl-case (car error)
- (end-of-file
- "There's a missing closing parenthesis, the expression on this
line never ends.")
- (invalid-read-syntax
- (let ((char (cadr error)))
- (if (member char '("]" ")"))
- (concat "There's an extra " char
- " on this position. There's probably a missing "
- (if (string= char ")") "(" "[")
- " before that.")
- (concat "There's a " char
- " on this position, and that is not valid elisp
syntax."))))
- (user-aborted
- (let* ((print-level 2)
- (print-length 15)
- (forms (cadr error))
- (size (length forms)))
- (concat "User aborted while testing the following
expressions:\n"
- (mapconcat (lambda (x) (bug-hunter--pretty-format x
4))
- (if (< size 16) forms (seq-take forms 7))
- "")
- (when (> size 16)
- (format "\n ... %s omitted expressions ...\n\n"
- (- size 14)))
- (when (> size 16)
- (mapconcat (lambda (x) (bug-hunter--pretty-format x
4))
- (seq-drop forms (- size 7)) "")))))
- (assertion-triggered
- (concat "The assertion returned the following value here:\n"
- (bug-hunter--pretty-format (cadr error) 4)))
- (t (format "The following error was signaled here:\n %S"
- error))))
+ (cl-case (car error)
+ (end-of-file
+ "There's a missing closing parenthesis, the expression on this line
never ends.")
+ (invalid-read-syntax
+ (let ((char (cadr error)))
+ (if (member char '("]" ")"))
+ (concat "There's an extra " char
+ " on this position. There's probably a missing "
+ (if (string= char ")") "(" "[")
+ " before that.")
+ (concat "There's a " char
+ " on this position, and that is not valid elisp syntax."))))
+ (user-aborted
+ (let* ((print-level 2)
+ (print-length 15)
+ (forms (cadr error))
+ (size (length forms)))
+ (concat "User aborted while testing the following expressions:\n"
+ (mapconcat (lambda (x) (bug-hunter--pretty-format x 4))
+ (if (< size 16) forms (seq-take forms 7))
+ "")
+ (when (> size 16)
+ (format "\n ... %s omitted expressions ...\n\n"
+ (- size 14)))
+ (when (> size 16)
+ (mapconcat (lambda (x) (bug-hunter--pretty-format x 4))
+ (seq-drop forms (- size 7)) "")))))
+ (assertion-triggered
+ (concat "The assertion returned the following value here:\n"
+ (bug-hunter--pretty-format (cadr error) 4)))
+ (t (format "The following error was signaled here:\n %S"
+ error))))
(when expression
(bug-hunter--report " Caused by the following expression:\n%s"
- (bug-hunter--pretty-format expression 4)))
+ (bug-hunter--pretty-format expression 4)))
(bug-hunter--report "\xc\n")
`[,error ,line ,column ,expression])
@@ -408,27 +408,27 @@ are evaluated."
((progn (bug-hunter--report "Doing some initial tests...")
(not (bug-hunter--run-and-test expressions assertion)))
(bug-hunter--report-user-error "Test failed.\n%s\n%s"
- (if assertion
- (concat "The assertion returned nil after
loading the entire file.\n"
- bug-hunter--assertion-reminder)
- "No errors signaled after loading the entire file.
+ (if assertion
+ (concat "The assertion returned nil after loading the entire
file.\n"
+ bug-hunter--assertion-reminder)
+ "No errors signaled after loading the entire file.
If you're looking for something that's not an error, use the
interactive hunt instead of the error hunt. If you have some
elisp proficiency, you can also use the assertion hunt, see this
link for some examples:
https://github.com/Malabarba/elisp-bug-hunter")
- (or assertion "")))
+ (or assertion "")))
;; Make sure we're in a forest, not a volcano.
((bug-hunter--run-and-test nil assertion)
(bug-hunter--report-user-error "Test failed.\n%s\n%s"
- (if assertion
- (concat "Assertion returned non-nil even on
emacs -Q:"
- bug-hunter--assertion-reminder)
- "Detected a signaled error even on emacs -Q. I'm
sorry, but there
+ (if assertion
+ (concat "Assertion returned non-nil even on emacs -Q:"
+ bug-hunter--assertion-reminder)
+ "Detected a signaled error even on emacs -Q. I'm sorry, but there
is something seriously wrong with your Emacs installation.
There's nothing more I can do here.")
- (or assertion "")))
+ (or assertion "")))
(t
;; Perform the actual hunt.
@@ -436,7 +436,7 @@ There's nothing more I can do here.")
(let* ((result (bug-hunter--bisect-start expressions assertion)))
(if (not result)
(bug-hunter--report-user-error "No problem was found, despite our
initial tests.\n%s"
- "I have no idea what's going on.")
+ "I have no idea what's going on.")
(let* ((pos (elt result 0))
(ret (elt result 1))
(linecol (when pos (cdr (elt rich-forms pos))))
- [elpa] externals/bug-hunter 480b6c1 87/95: Version bump, (continued)
- [elpa] externals/bug-hunter 480b6c1 87/95: Version bump, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter bc623c2 92/95: [Fix #16] Improve the error message when emacs -Q fails, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter 5c99abe 95/95: Fix some quoting problems in doc strings, Stefan Monnier, 2020/11/27
- [elpa] externals/bug-hunter a300e9a 72/95: Add test, Stefan Monnier, 2020/11/27
- [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 <=
- [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, 2020/11/27
- [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