branch: elpa/flycheck
commit c29d344761e48af79a23153c83eff1066670ad2d
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Drop support for Emacs 27
CI hasn't tested anything older than 28.2 for a while, so the declared
27.1 support was nominal. Also remove a couple of Emacs 24 relics and
the now-unconditional checkdoc variable guard.
---
CHANGES.rst | 1 +
Eask | 2 +-
doc/contributor/style-guide.rst | 4 ++--
flycheck.el | 14 +++-----------
4 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/CHANGES.rst b/CHANGES.rst
index 6688fffcae..e474e2995a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,7 @@
``master`` (unreleased)
=======================
+- Drop support for Emacs 27; Flycheck now requires Emacs 28.1 or newer.
- [#2177]: Avoid ``\N{...}`` character escapes, which break native
compilation on Emacs 32.
- Add ``asciidoc-mode`` support to the ``asciidoctor`` and ``textlint``
diff --git a/Eask b/Eask
index 6af5998489..a58d802391 100644
--- a/Eask
+++ b/Eask
@@ -16,7 +16,7 @@
(source 'gnu)
(source 'melpa)
-(depends-on "emacs" "27.1")
+(depends-on "emacs" "28.1")
(depends-on "seq" "2.24")
(development
diff --git a/doc/contributor/style-guide.rst b/doc/contributor/style-guide.rst
index c852606668..f29df86ad4 100644
--- a/doc/contributor/style-guide.rst
+++ b/doc/contributor/style-guide.rst
@@ -56,10 +56,10 @@ Style
.. important::
- ``make check compile`` must pass on Emacs 27.1 or newer. This command
checks
+ ``make check compile`` must pass on Emacs 28.1 or newer. This command
checks
for some formatting issues and compilation errors.
- Run ``make format`` with Emacs 27.1 to automatically reformat the Emacs Lisp
+ Run ``make format`` with Emacs 28.1 to automatically reformat the Emacs Lisp
source files.
* Generally try to fit into the style of the code you see.
diff --git a/flycheck.el b/flycheck.el
index 7771fa3fe8..287832fb8f 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -11,7 +11,7 @@
;; URL: https://github.com/flycheck/flycheck
;; Keywords: convenience, languages, tools
;; Version: 36.0
-;; Package-Requires: ((emacs "27.1") (seq "2.24"))
+;; Package-Requires: ((emacs "28.1") (seq "2.24"))
;; This file is not part of GNU Emacs.
@@ -8748,11 +8748,6 @@ See Info Node `(elisp)Byte Compilation'."
(zero-or-more whitespace) "Warning (check-declare): said\n"
(message (zero-or-more " " (zero-or-more not-newline))
(zero-or-more "\n " (zero-or-more not-newline)))
- line-end)
- ;; The following is for Emacs 24 'check-declare-file', which uses a
- ;; less informative format.
- (warning line-start "Warning (check-declare): " (file-name) " said "
- (message (zero-or-more not-newline))
line-end))
:error-filter
(lambda (errors)
@@ -8770,9 +8765,7 @@ See Info Node `(elisp)Byte Compilation'."
(defconst flycheck-emacs-lisp-checkdoc-form
(flycheck-prepare-emacs-lisp-form
- (unless (require 'elisp-mode nil 'no-error)
- ;; TODO: Fallback for Emacs 24, remove when dropping support for 24
- (require 'lisp-mode))
+ (require 'elisp-mode)
(require 'checkdoc)
(let ((source (car command-line-args-left))
@@ -8810,8 +8803,7 @@ See Info Node `(elisp)Byte Compilation'."
checkdoc-verb-check-experimental-flag
checkdoc-max-keyref-before-warn
sentence-end-double-space
- ,@(and (>= emacs-major-version 28)
- '(checkdoc-column-zero-backslash-before-paren))
+ checkdoc-column-zero-backslash-before-paren
,@(and (>= emacs-major-version 31)
'(checkdoc-allow-quoting-nil-and-t
checkdoc-arguments-missing-flag)))