[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 5143edf 17/44: Fix indentation accidents
From: |
Mattias Engdeg�rd |
Subject: |
[elpa] externals/relint 5143edf 17/44: Fix indentation accidents |
Date: |
Tue, 26 Mar 2019 12:57:27 -0400 (EDT) |
branch: externals/relint
commit 5143edfbbe5de97797c48129b852882dfc8ddb2d
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Fix indentation accidents
---
trawl.el | 64 ++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/trawl.el b/trawl.el
index 51dbb55..13b9040 100644
--- a/trawl.el
+++ b/trawl.el
@@ -127,15 +127,15 @@
(defun trawl--check-re-string (re name file pos path)
(let ((complaints
(condition-case err
- (mapcar (lambda (warning)
+ (mapcar (lambda (warning)
(let ((pos (car warning)))
(format "In %s: %s (pos %d)\n %s\n %s"
name (cdr warning) pos
(trawl--quote-string re)
(trawl--caret-string re pos))))
- (xr-lint re))
- (error (list (format "In %s: Error: %s: %s"
- name (cadr err)
+ (xr-lint re))
+ (error (list (format "In %s: Error: %s: %s"
+ name (cadr err)
(trawl--quote-string re)))))))
(mapc (lambda (msg) (trawl--report file pos path msg))
complaints)))
@@ -509,14 +509,14 @@
(when (symbolp name)
(cond
((string-match-p (rx (or "-regexp" "-re" "-regex" "-pattern") eos)
- (symbol-name name))
- (trawl--check-re re-arg name file pos (cons 2 path))
+ (symbol-name name))
+ (trawl--check-re re-arg name file pos (cons 2 path))
(push name trawl--checked-variables))
((string-match-p (rx (or (or "-regexps" "-regexes" "-patterns")
(seq (or "-regexp" "-re" "-regex" "-pattern")
"-list"))
eos)
- (symbol-name name))
+ (symbol-name name))
(trawl--check-list re-arg name file pos (cons 2 path))
(push name trawl--checked-variables))
((string-match-p (rx "-font-lock-keywords" eos)
@@ -544,7 +544,7 @@
((and (stringp (car rest))
(let ((case-fold-search t))
(string-match-p (rx bos "regexp") (car rest))))
- (trawl--check-re re-arg name file pos (cons 2 path))
+ (trawl--check-re re-arg name file pos (cons 2 path))
(push name trawl--checked-variables))
)
(push (cons name re-arg) trawl--variables)))
@@ -624,36 +624,36 @@
(trawl--variables nil)
(trawl--checked-variables nil)
(trawl--regexp-functions nil))
- (while keep-going
- (setq pos (point))
-; (trawl--report file (point) nil "reading")
- (let ((form nil))
- (condition-case err
- (setq form (read (current-buffer)))
- (end-of-file
- (setq keep-going nil))
- (invalid-read-syntax
- (cond
- ((equal (cadr err) "#")
- (goto-char pos)
- (forward-sexp 1))
- (t
- (trawl--report file (point) nil
- (prin1-to-string err))
- (setq keep-going nil))))
- (error
- (trawl--report file (point) nil
- (prin1-to-string err))
- (setq keep-going nil)))
- (when form
- (trawl--check-toplevel-form form file pos))))))
+ (while keep-going
+ (setq pos (point))
+ ;;(trawl--report file (point) nil "reading")
+ (let ((form nil))
+ (condition-case err
+ (setq form (read (current-buffer)))
+ (end-of-file
+ (setq keep-going nil))
+ (invalid-read-syntax
+ (cond
+ ((equal (cadr err) "#")
+ (goto-char pos)
+ (forward-sexp 1))
+ (t
+ (trawl--report file (point) nil
+ (prin1-to-string err))
+ (setq keep-going nil))))
+ (error
+ (trawl--report file (point) nil
+ (prin1-to-string err))
+ (setq keep-going nil)))
+ (when form
+ (trawl--check-toplevel-form form file pos))))))
(when (> trawl--error-count errors-before)
(trawl--show-errors))))
(defun trawl--tree (dir)
(dolist (file (directory-files-recursively
dir (rx bos (not (any ".")) (* anything) ".el" eos)))
-; (trawl--add-to-error-buffer (format "trawling %s\n" file))
+ ;;(trawl--add-to-error-buffer (format "trawling %s\n" file))
(trawl--single-file file)))
(defun trawl--init (file-or-dir dir)
- [elpa] externals/relint 104e66c 15/44: Fix bugs in evaluation of `rx' and `rx-to-strings', (continued)
- [elpa] externals/relint 104e66c 15/44: Fix bugs in evaluation of `rx' and `rx-to-strings', Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 3f8509a 13/44: Add more functions to check for regexp arguments, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint f8878ca 16/44: Report rx errors in the result buffer, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 8e37762 18/44: Protect against improper lists in function calls, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 66522ca 12/44: Increment version to 1.1, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 683f31b 28/44: Increment version to 1.3, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint ac5d0cf 25/44: Add more safe functions, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 02bf0ba 21/44: Use explicit list of pure functions, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 7d0e177 20/44: Rewrite the higher-order function handling, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint be3979a 19/44: Check TRIM argument of `split-string' as well, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 5143edf 17/44: Fix indentation accidents,
Mattias Engdeg�rd <=
- [elpa] externals/relint d6320f9 14/44: Detect functions with regexp arguments, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint d19133e 09/44: Better variable name patterns, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint d4d8f97 11/44: Eval mapcar and mapcan with partial-evaluated lists, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 34304b4 08/44: Add (provides) line to make file importable, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 62ca3d4 05/44: Slight performance improvement, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 6ab713e 07/44: Reinstate erroneously removed line, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint cb1fdc5 06/44: Add caret pointing out the error in the quoted regexp, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint b4fc385 04/44: Rename trawl--batch to trawl-batch, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 0214845 01/44: Move to github, Mattias Engdeg�rd, 2019/03/26
- [elpa] externals/relint 830f4bf 03/44: Allow use from batch mode, Mattias Engdeg�rd, 2019/03/26