[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint c08baf2 06/10: Quote symbols with ' instead of `
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint c08baf2 06/10: Quote symbols with ' instead of ` in pcase |
Date: |
Sun, 4 Aug 2019 13:42:48 -0400 (EDT) |
branch: externals/relint
commit c08baf220028d95ad8337019eba46ae5cb607360
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Quote symbols with ' instead of ` in pcase
---
relint.el | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/relint.el b/relint.el
index 76b2405..3d85222 100644
--- a/relint.el
+++ b/relint.el
@@ -903,7 +903,7 @@ character alternative: `[' followed by a regexp-generating
expression."
(defun relint--check-form-recursively-1 (form file pos path)
(pcase form
- (`(,(or `defun `defmacro `defsubst)
+ (`(,(or 'defun 'defmacro 'defsubst)
,name ,args . ,body)
;; Save the function or macro for possible use.
@@ -980,23 +980,23 @@ character alternative: `[' followed by a
regexp-generating expression."
(defun relint--check-form-recursively-2 (form file pos path)
(pcase form
- (`(,(or `looking-at `re-search-forward `re-search-backward
- `string-match `string-match-p `looking-back `looking-at-p
- `replace-regexp-in-string `replace-regexp
- `query-replace-regexp
- `posix-looking-at `posix-search-backward `posix-search-forward
- `posix-string-match
- `load-history-filename-element
- `kill-matching-buffers
- `keep-lines `flush-lines `how-many)
+ (`(,(or 'looking-at 're-search-forward 're-search-backward
+ 'string-match 'string-match-p 'looking-back 'looking-at-p
+ 'replace-regexp-in-string 'replace-regexp
+ 'query-replace-regexp
+ 'posix-looking-at 'posix-search-backward 'posix-search-forward
+ 'posix-string-match
+ 'load-history-filename-element
+ 'kill-matching-buffers
+ 'keep-lines 'flush-lines 'how-many)
,re-arg . ,_)
(unless (and (symbolp re-arg)
(memq re-arg relint--checked-variables))
(relint--check-re re-arg (format "call to %s" (car form))
file pos (cons 1 path))))
- (`(,(or `split-string `split-string-and-unquote
- `string-trim-left `string-trim-right `string-trim
- `directory-files-recursively)
+ (`(,(or 'split-string 'split-string-and-unquote
+ 'string-trim-left 'string-trim-right 'string-trim
+ 'directory-files-recursively)
,_ ,re-arg . ,rest)
(unless (and (symbolp re-arg)
(memq re-arg relint--checked-variables))
@@ -1018,7 +1018,7 @@ character alternative: `[' followed by a
regexp-generating expression."
(memq trim relint--checked-variables))
(relint--check-re trim (format "call to %s" (car form))
file pos (cons 4 path))))))
- (`(,(or `skip-chars-forward `skip-chars-backward)
+ (`(,(or 'skip-chars-forward 'skip-chars-backward)
,skip-arg . ,_)
(let ((str (relint--get-string skip-arg file pos path)))
(when str
@@ -1033,7 +1033,7 @@ character alternative: `[' followed by a
regexp-generating expression."
(let ((template (relint--get-string template-arg file pos path)))
(when template
(relint--check-format-mixup template args file pos path))))
- (`(,(or `defvar `defconst `defcustom)
+ (`(,(or 'defvar 'defconst 'defcustom)
,name ,re-arg . ,rest)
(let ((type (and (eq (car form) 'defcustom)
(relint--eval-or-nil (plist-get (cdr rest) :type)))))
- [elpa] externals/relint updated (e049e93 -> bc001eb), Mattias Engdegård, 2019/08/04
- [elpa] externals/relint c5ac726 03/10: Handle rx `literal' and `regexp' forms correctly, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 77c3b87 04/10: Improved source traversal towards location, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 1dc96b5 05/10: Make font-lock-keywords errors easier to find, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint bc001eb 10/10: Increment version to 1.9, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 963e232 02/10: Check more defcustom strings, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint c08baf2 06/10: Quote symbols with ' instead of ` in pcase,
Mattias Engdegård <=
- [elpa] externals/relint 9238375 07/10: Detect more regexps in defcustom alists, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 943c728 08/10: Indentation fixes, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 298d407 01/10: Restructure `cond' expressions for better compilation, Mattias Engdegård, 2019/08/04
- [elpa] externals/relint 2e0bb22 09/10: Keep track of local variable bindings, Mattias Engdegård, 2019/08/04