emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-matchit dd4570eb6a 3/4: clean code


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit dd4570eb6a 3/4: clean code
Date: Sun, 29 May 2022 22:58:16 -0400 (EDT)

branch: elpa/evil-matchit
commit dd4570eb6a03bbb9f4eb8257592ef1a0bbd0ddba
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    clean code
---
 Makefile                 |  6 +++---
 tests/my-byte-compile.el | 12 +++---------
 tests/my-elint.el        |  5 ++---
 3 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile
index a83c0f286a..c0eaf84553 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,11 @@ deps:
        @if [ ! -f deps/yaml-mode.el ]; then curl -L 
https://stable.melpa.org/packages/yaml-mode-0.0.15.el > deps/yaml-mode.el; fi;
 
 lint: deps
-       @$(EMACS) ${EMACS_BATCH_OPTS} -l tests/my-elint.el 2>&1 | grep -E 
"([Ee]rror|[Ww]arning):" && exit 1 || exit 0
+       @$(EMACS) $(EMACS_BATCH_OPTS) -l tests/my-elint.el 2>&1 | grep -E 
"([Ee]rror|[Ww]arning):" && exit 1 || exit 0
 
 compile: deps
        $(RM) *.elc
-       @$(EMACS) ${EMACS_BATCH_OPTS} -l tests/my-byte-compile.el 2>&1 | grep 
-E "([Ee]rror|[Ww]arning):" && exit 1 || exit 0
+       @$(EMACS) $(EMACS_BATCH_OPTS) -l tests/my-byte-compile.el 2>&1 | grep 
-E "([Ee]rror|[Ww]arning):" && exit 1 || exit 0
 
 test: compile deps
-       @$(EMACS) ${EMACS_BATCH_OPTS} -l evil-matchit.el -l 
tests/evil-matchit-tests.el
+       @$(EMACS) $(EMACS_BATCH_OPTS) -l tests/evil-matchit-tests.el
diff --git a/tests/my-byte-compile.el b/tests/my-byte-compile.el
index 18396b0b2c..bd0fc90a89 100644
--- a/tests/my-byte-compile.el
+++ b/tests/my-byte-compile.el
@@ -1,9 +1,8 @@
 ;;; my-elint.el --- syntax check the code  -*- lexical-binding: t -*-
 
-;; Copyright (C) 2022 Free Software Foundation, Inc.
+;; Copyright (C) 2022 Chen Bin
 ;;
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
-;; URL: https://github.com/tumashu/pyim
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -21,7 +20,7 @@
 ;; along with this program; if not, see <https://www.gnu.org/licenses/>.
 
 ;;; Commentary:
-;;  Syntax check the pyim code.  It's used in Emacs cli.
+;;  Syntax check the code.  It's used in Emacs cli.
 ;;
 
 ;;; Code:
@@ -35,12 +34,7 @@
                      (string-match "\\.el$" file)
                      (not (string-match "\\.dir-locals\\.el" file))))
               (lambda (dir parent)
-                (not (or (string= dir ".")
-                         (string= dir "..")
-                         (string= dir ".git")
-                         (string= dir ".svn")
-                         (string= dir "deps")
-                         (string= dir "tests")
+                (not (or (member dir '("." ".." ".git" ".svn" "deps" "tests"))
                          (file-symlink-p (expand-file-name dir parent))))))))
   (dolist (file files)
     (byte-compile-file file)))
diff --git a/tests/my-elint.el b/tests/my-elint.el
index 4b5d906378..fb5b0119ca 100644
--- a/tests/my-elint.el
+++ b/tests/my-elint.el
@@ -1,9 +1,8 @@
 ;;; my-elint.el --- syntax check the code  -*- lexical-binding: t -*-
 
-;; Copyright (C) 2022 Free Software Foundation, Inc.
+;; Copyright (C) 2022 Chen Bin
 ;;
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
-;; URL: https://github.com/tumashu/pyim
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -21,7 +20,7 @@
 ;; along with this program; if not, see <https://www.gnu.org/licenses/>.
 
 ;;; Commentary:
-;;  Syntax check the pyim code.  It's used in Emacs cli.
+;;  Syntax check the code.  It's used in Emacs cli.
 ;;
 
 ;;; Code:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]