diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-08-20 12:30:23 -0400 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-08-20 12:30:23 -0400 |
| commit | 63d2c2184941902e2358d0e9b0deb17b943db61a (patch) | |
| tree | e6c6fcc94331c32b306232147a605a6b5d3b3076 /tests | |
| parent | eb793e18ad9c9c41aa01b94592cbd51da08a3ada (diff) | |
Fix copyrights for GNU ELPAscratch/polymode
Assign the Copyright to the FSF.
Include various other minor and cosmetic changes:
- Prefer #' to quote function names.
- Fix a few uses of ' in docstrings which can be rendered incorrectly.
- Remove redundant `:group` args.
- Use keyword args for `define-minor-mode` rather than obsolete
positional arguments.
- Use `lexical-binding`.
- Add a `Copyright` line where missing.
* polymode-classes.el (pm-chunkmode, pm-inner-chunkmode): Use `symbol`
rather than `face` as type, since `face` is not actually defined as a type.
* polymode-compat.el: Use `with-eval-after-load` throughout.
* polymode-core.el: Don't use #' to quote the symbol passed to `advice-add`
because this arg can't be just a function, it has to be a symbol.
(pm-use-cache): Move before first use.
* template/targets/utils.el (polymode-add-deps-to-load-path): Make better
use of `expand-file-name`.
* tests/compat-tests.el: Skip tests if `poly-markdown` is not available,
instead of signaling an error.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compat-tests.el | 8 | ||||
| -rw-r--r-- | tests/define-tests.el | 2 | ||||
| -rw-r--r-- | tests/poly-modes-tests.el | 3 | ||||
| -rw-r--r-- | tests/span-matcher-tests.el | 4 |
4 files changed, 16 insertions, 1 deletions
diff --git a/tests/compat-tests.el b/tests/compat-tests.el index c8b97da..1607efb 100644 --- a/tests/compat-tests.el +++ b/tests/compat-tests.el @@ -1,4 +1,8 @@ -(require 'poly-markdown) +;;; compat-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. + +(require 'poly-markdown nil t) ;Don't fail if not installed. (define-innermode poly-test-markdown-inline-python-innermode poly-markdown-inline-code-innermode :head-matcher (cons "[^`]\\(`py \\)" 1) @@ -12,6 +16,7 @@ poly-test-markdown-inline-python-innermode)) (ert-deftest compat/lsp/lsp-text () + (skip-unless (fboundp 'poly-markdown-mode)) (let ((markdown-enable-math t)) (pm-test-run-on-file poly-test-markdown-mode "test.md" ;; python @@ -106,6 +111,7 @@ (ert-deftest compat/indent/double-poly-mode-init-preserves-original-functions () + (skip-unless (fboundp 'poly-markdown-mode)) (pm-test-run-on-file poly-test-markdown-mode "test.md" (goto-char (point-min)) (pm-switch-to-buffer) diff --git a/tests/define-tests.el b/tests/define-tests.el index 26f7278..976ab44 100644 --- a/tests/define-tests.el +++ b/tests/define-tests.el @@ -1,5 +1,7 @@ ;;; mode-init-tests.el --- Various initialization tests -*- lexical-binding: t -*- +;; Copyright (C) 2019-2022 Free Software Foundation, Inc. + (require 'polymode) (require 'polymode-test-utils) diff --git a/tests/poly-modes-tests.el b/tests/poly-modes-tests.el index 0a093e1..43e4b6f 100644 --- a/tests/poly-modes-tests.el +++ b/tests/poly-modes-tests.el @@ -1,3 +1,6 @@ +;;; poly-modes-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. ;; load all tests from individual poly-xyz repositories located in the parent of ;; this repository diff --git a/tests/span-matcher-tests.el b/tests/span-matcher-tests.el index bd36d06..6557f47 100644 --- a/tests/span-matcher-tests.el +++ b/tests/span-matcher-tests.el @@ -1,3 +1,7 @@ +;;; poly-modes-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2018-2022 Free Software Foundation, Inc. + (require 'polymode-test-utils) (defvar markdown-inline-head-fun-matcher (pm-fun-matcher (cons "[^`]\\(`{?[[:alpha:]+-]+\\)[ \t]" 1))) |
