[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 0d80c1f 07/11: Rename various 'miscape' identifi
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 0d80c1f 07/11: Rename various 'miscape' identifiers |
Date: |
Sat, 20 Jun 2020 05:57:41 -0400 (EDT) |
branch: externals/relint
commit 0d80c1f1bb7cce906f17a7cb4e3d6473a86612f2
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Rename various 'miscape' identifiers
---
relint.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/relint.el b/relint.el
index ae94890..6c67dcc 100644
--- a/relint.el
+++ b/relint.el
@@ -2131,7 +2131,7 @@ Return a list of (FORM . STARTING-POSITION)."
(push (cons form pos) forms))))
(nreverse forms)))
-(defun relint--miscape-in-doc-string-p (pos)
+(defun relint--in-doc-string-p (pos)
"Whether the string literal starting at POS is a doc string."
(save-excursion
(goto-char pos)
@@ -2169,7 +2169,7 @@ Return a list of (FORM . STARTING-POSITION)."
(defconst relint--miscape-ignore-all-doc-strings t
"Whether to ignore all stray backslashes in doc strings.")
-(defun relint--miscape-suspicious-backslash (string-start)
+(defun relint--suspicious-backslash (string-start)
"With point at an ineffective backslash, emit an warning unless filtered out.
STRING-START is the start of the string literal (first double quote)."
(let ((c (char-after (1+ (point)))))
@@ -2177,13 +2177,13 @@ STRING-START is the start of the string literal (first
double quote)."
(and (or (and relint--miscape-ignore-left-round-bracket
(eq c ?\())
relint--miscape-ignore-all-doc-strings)
- (relint--miscape-in-doc-string-p string-start)))
+ (relint--in-doc-string-p string-start)))
(relint--warn (point) nil
(format-message
"Ineffective string escape `\\%s'"
(relint--escape-string (char-to-string c) nil))))))
-(defun relint--miscape-current-buffer ()
+(defun relint--check-for-misplaced-backslashes ()
"Check for misplaced backslashes in the current buffer."
(goto-char (point-min))
(while (not (eobp))
@@ -2209,7 +2209,7 @@ STRING-START is the start of the string literal (first
double quote)."
(not (any ?\\ ?\"))))))
(goto-char (match-end 0)))
(when (eq (following-char) ?\\)
- (relint--miscape-suspicious-backslash string-start)
+ (relint--suspicious-backslash string-start)
(forward-char 2)))
(unless (eobp)
(forward-char 1))))))
@@ -2232,7 +2232,7 @@ STRING-START is the start of the string literal (first
double quote)."
(relint--check-form-recursively-1 (car form) (cdr form) nil))
(dolist (form forms)
(relint--check-form-recursively-2 (car form) nil (cdr form) nil))
- (relint--miscape-current-buffer)
+ (relint--check-for-misplaced-backslashes)
(let ((complaints (nreverse relint--complaints)))
(cons
(sort complaints
- [elpa] externals/relint updated (a54960a -> 0c35e02), Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 6bfba5c 01/11: Always output to stderr when running noninteractively, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 1ea9b91 05/11: Add tests for ineffective backslash check, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0d80c1f 07/11: Rename various 'miscape' identifiers,
Mattias Engdegård <=
- [elpa] externals/relint e35fa2e 09/11: Fix doc string predicate, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint e8d8052 03/11: Add checking of ineffective backslashes in string literals, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 329df9c 02/11: Refactor framework, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 2de1106 04/11: Sort diagnostics by buffer position, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint a1c7bf5 06/11: Describe the ineffective backslash warning in README, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0627d4d 08/11: Simplify (and speed up) string scanning regexp, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 0c35e02 11/11: Increment version to 1.18, Mattias Engdegård, 2020/06/20
- [elpa] externals/relint 6a86509 10/11: Tuned miscape filtering, Mattias Engdegård, 2020/06/20