diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2020-04-28 10:36:34 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2020-04-28 10:36:34 +0200 |
commit | 725256d0030aa72617dc8963e7582e53f9e02674 (patch) | |
tree | e8e3effd5574958919bae00eeffd6236570a6d53 /test/lisp/vc/add-log-tests.el | |
parent | e49d3a45cd4a0554aa98c45f0976ed513c500951 (diff) | |
download | emacs-725256d0030aa72617dc8963e7582e53f9e02674.tar.gz emacs-725256d0030aa72617dc8963e7582e53f9e02674.tar.bz2 emacs-725256d0030aa72617dc8963e7582e53f9e02674.zip |
Use lexical-binding in most vc tests
* test/lisp/vc/add-log-tests.el:
* test/lisp/vc/diff-mode-tests.el:
* test/lisp/vc/ediff-ptch-tests.el:
* test/lisp/vc/smerge-mode-tests.el:
* test/lisp/vc/vc-hg-tests.el:
* test/lisp/vc/vc-tests.el: Use lexical-binding.
* test/lisp/vc/add-log-tests.el
(add-log-current-defun-deftest): Silence byte-compiler.
Diffstat (limited to 'test/lisp/vc/add-log-tests.el')
-rw-r--r-- | test/lisp/vc/add-log-tests.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/vc/add-log-tests.el b/test/lisp/vc/add-log-tests.el index fc928b02c3b..f256945ee42 100644 --- a/test/lisp/vc/add-log-tests.el +++ b/test/lisp/vc/add-log-tests.el @@ -1,4 +1,4 @@ -;;; add-log-tests.el --- Test suite for add-log. +;;; add-log-tests.el --- Test suite for add-log. -*- lexical-binding:t -*- ;; Copyright (C) 2013-2020 Free Software Foundation, Inc. @@ -25,12 +25,12 @@ (require 'ert) (require 'add-log) -(defmacro add-log-current-defun-deftest (name doc major-mode +(defmacro add-log-current-defun-deftest (name doc mode content marker expected-defun) "Generate an ert test for mode-own `add-log-current-defun-function'. -Run `add-log-current-defun' at the point where MARKER specifies in a -buffer which content is CONTENT under MAJOR-MODE. Then it compares the -result with EXPECTED-DEFUN." +Run `add-log-current-defun' at the point where MARKER specifies +in a buffer which content is CONTENT under major mode MODE. Then +it compares the result with EXPECTED-DEFUN." (let ((xname (intern (concat "add-log-current-defun-test-" (symbol-name name) )))) @@ -39,7 +39,7 @@ result with EXPECTED-DEFUN." (with-temp-buffer (insert ,content) (goto-char (point-min)) - (funcall ',major-mode) + (funcall ',mode) (should (equal (when (search-forward ,marker nil t) (replace-match "" nil t) (add-log-current-defun)) |