From 0be9eed1f5f2c24e8fa8e0bd091629250959ce67 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Tue, 1 Sep 2020 02:13:28 +0200 Subject: [PATCH 01/15] First import --- .gitignore | 1 + emacs-flycheck.spec | 53 ++++++++++ flycheck-init.el | 233 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 288 insertions(+) create mode 100644 .gitignore create mode 100644 emacs-flycheck.spec create mode 100644 flycheck-init.el create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09b3e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/emacs-flycheck-31.tar.gz diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec new file mode 100644 index 0000000..e882ab9 --- /dev/null +++ b/emacs-flycheck.spec @@ -0,0 +1,53 @@ +%global pkg flycheck + +Name: emacs-%{pkg} +Version: 31 +Release: 1%{?dist} +Summary: On the fly syntax checking for GNU Emacs + +License: GPLv3+ +URL: https://www.flycheck.org/ +Source0: https://github.com/%{pkg}/%{pkg}/archive/%{version}/%{name}-%{version}.tar.gz +Source1: %{pkg}-init.el + +BuildRequires: emacs +BuildRequires: emacs-dash +BuildRequires: emacs-pkg-info +Requires: emacs(bin) >= %{_emacs_version} +Requires: emacs-dash +Requires: emacs-pkg-info +BuildArch: noarch + +%description +Flycheck is a modern on-the-fly syntax checking extension for GNU Emacs, +intended as replacement for the older Flymake extension which is part of GNU +Emacs. + + +%prep +%autosetup -n %{pkg}-%{version} + + +%build +for i in *.el; do + %{_emacs_bytecompile} $i +done + + +%install +install -dm 0755 $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ +install -pm 0644 *.el* -t $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ + +install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.el + + +%files +%doc CHANGES.old CHANGES.rst MAINTAINERS README.md +%license COPYING +%{_emacs_sitelispdir}/%{pkg}/ +%{_emacs_sitestartdir}/*.el + + +%changelog +* Thu Aug 20 2020 Mohamed El Morabity - 31-1 +- Initial RPM release diff --git a/flycheck-init.el b/flycheck-init.el new file mode 100644 index 0000000..6249193 --- /dev/null +++ b/flycheck-init.el @@ -0,0 +1,233 @@ +(autoload 'flycheck-manual "flycheck" "\ +Open the Flycheck manual. + +\(fn)" t nil) + +(autoload 'flycheck-mode "flycheck" "\ +Minor mode for on-the-fly syntax checking. + +When called interactively, toggle `flycheck-mode'. With prefix +ARG, enable `flycheck-mode' if ARG is positive, otherwise disable +it. + +When called from Lisp, enable `flycheck-mode' if ARG is omitted, +nil or positive. If ARG is `toggle', toggle `flycheck-mode'. +Otherwise behave as if called interactively. + +In `flycheck-mode' the buffer is automatically syntax-checked +using the first suitable syntax checker from `flycheck-checkers'. +Use `flycheck-select-checker' to select a checker for the current +buffer manually. + +\\{flycheck-mode-map} + +\(fn &optional ARG)" t nil) + +(defvar global-flycheck-mode nil "\ +Non-nil if Global Flycheck mode is enabled. +See the `global-flycheck-mode' command +for a description of this minor mode. +Setting this variable directly does not take effect; +either customize it (see the info node `Easy Customization') +or call the function `global-flycheck-mode'.") + +(custom-autoload 'global-flycheck-mode "flycheck" nil) + +(autoload 'global-flycheck-mode "flycheck" "\ +Toggle Flycheck mode in all buffers. +With prefix ARG, enable Global Flycheck mode if ARG is positive; +otherwise, disable it. If called from Lisp, enable the mode if +ARG is omitted or nil. + +Flycheck mode is enabled in all buffers where +`flycheck-mode-on-safe' would do it. +See `flycheck-mode' for more information on Flycheck mode. + +\(fn &optional ARG)" t nil) + +(autoload 'flycheck-define-error-level "flycheck" "\ +Define a new error LEVEL with PROPERTIES. + +The following PROPERTIES constitute an error level: + +`:severity SEVERITY' + A number denoting the severity of this level. The higher + the number, the more severe is this level compared to other + levels. Defaults to 0. + + The severity is used by `flycheck-error-level-<' to + determine the ordering of errors according to their levels. + +`:compilation-level LEVEL' + + A number indicating the broad class of messages that errors + at this level belong to: one of 0 (info), 1 (warning), or + 2 or nil (error). Defaults to nil. + + This is used by `flycheck-checker-pattern-to-error-regexp' + to map error levels into `compilation-mode''s hierarchy and + to get proper highlighting of errors in `compilation-mode'. + +`:overlay-category CATEGORY' + A symbol denoting the overlay category to use for error + highlight overlays for this level. See Info + node `(elisp)Overlay Properties' for more information about + overlay categories. + + A category for an error level overlay should at least define + the `face' property, for error highlighting. Another useful + property for error level categories is `priority', to + influence the stacking of multiple error level overlays. + +`:fringe-bitmap BITMAP' + A fringe bitmap symbol denoting the bitmap to use for fringe + indicators for this level. See Info node `(elisp)Fringe + Bitmaps' for more information about fringe bitmaps, + including a list of built-in fringe bitmaps. + +`:fringe-face FACE' + A face symbol denoting the face to use for fringe indicators + for this level. + +`:error-list-face FACE' + A face symbol denoting the face to use for messages of this + level in the error list. See `flycheck-list-errors'. + +\(fn LEVEL &rest PROPERTIES)" nil nil) + +(function-put 'flycheck-define-error-level 'lisp-indent-function '1) + +(autoload 'flycheck-define-command-checker "flycheck" "\ +Define SYMBOL as syntax checker to run a command. + +Define SYMBOL as generic syntax checker via +`flycheck-define-generic-checker', which uses an external command +to check the buffer. SYMBOL and DOCSTRING are the same as for +`flycheck-define-generic-checker'. + +In addition to the properties understood by +`flycheck-define-generic-checker', the following PROPERTIES +constitute a command syntax checker. Unless otherwise noted, all +properties are mandatory. Note that the default `:error-filter' +of command checkers is `flycheck-sanitize-errors'. + +`:command COMMAND' + The command to run for syntax checking. + + COMMAND is a list of the form `(EXECUTABLE [ARG ...])'. + + EXECUTABLE is a string with the executable of this syntax + checker. It can be overridden with the variable + `flycheck-SYMBOL-executable'. Note that this variable is + NOT implicitly defined by this function. Use + `flycheck-def-executable-var' to define this variable. + + Each ARG is an argument to the executable, either as string, + or as special symbol or form for + `flycheck-substitute-argument', which see. + +`:error-patterns PATTERNS' + A list of patterns to parse the output of the `:command'. + + Each ITEM in PATTERNS is a list `(LEVEL SEXP ...)', where + LEVEL is a Flycheck error level (see + `flycheck-define-error-level'), followed by one or more RX + `SEXP's which parse an error of that level and extract line, + column, file name and the message. + + See `rx' for general information about RX, and + `flycheck-rx-to-string' for some special RX forms provided + by Flycheck. + + All patterns are applied in the order of declaration to the + whole output of the syntax checker. Output already matched + by a pattern will not be matched by subsequent patterns. In + other words, the first pattern wins. + + This property is optional. If omitted, however, an + `:error-parser' is mandatory. + +`:error-parser FUNCTION' + A function to parse errors with. + + The function shall accept three arguments OUTPUT CHECKER + BUFFER. OUTPUT is the syntax checker output as string, + CHECKER the syntax checker that was used, and BUFFER a + buffer object representing the checked buffer. The function + must return a list of `flycheck-error' objects parsed from + OUTPUT. + + This property is optional. If omitted, it defaults to + `flycheck-parse-with-patterns'. In this case, + `:error-patterns' is mandatory. + +`:standard-input t' + Whether to send the buffer contents on standard input. + + If this property is given and has a non-nil value, send the + contents of the buffer on standard input. + + Defaults to nil. + +Note that you may not give `:start', `:interrupt', and +`:print-doc' for a command checker. You can give a custom +`:verify' function, though, whose results will be appended to the +default `:verify' function of command checkers. + +\(fn SYMBOL DOCSTRING &rest PROPERTIES)" nil nil) + +(function-put 'flycheck-define-command-checker 'lisp-indent-function '1) + +(function-put 'flycheck-define-command-checker 'doc-string-elt '2) + +(autoload 'flycheck-def-config-file-var "flycheck" "\ +Define SYMBOL as config file variable for CHECKER, with default FILE-NAME. + +SYMBOL is declared as customizable variable using `defcustom', to +provide configuration files for the given syntax CHECKER. +CUSTOM-ARGS are forwarded to `defcustom'. + +FILE-NAME is the initial value of the new variable. If omitted, +the default value is nil. It can be either a string or a list of +strings. + +Use this together with the `config-file' form in the `:command' +argument to `flycheck-define-checker'. + +\(fn SYMBOL CHECKER &optional FILE-NAME &rest CUSTOM-ARGS)" nil t) + +(function-put 'flycheck-def-config-file-var 'lisp-indent-function '3) + +(autoload 'flycheck-def-option-var "flycheck" "\ +Define SYMBOL as option variable with INIT-VALUE for CHECKER. + +SYMBOL is declared as customizable variable using `defcustom', to +provide an option for the given syntax CHECKERS (a checker or a +list of checkers). INIT-VALUE is the initial value of the +variable, and DOCSTRING is its docstring. CUSTOM-ARGS are +forwarded to `defcustom'. + +Use this together with the `option', `option-list' and +`option-flag' forms in the `:command' argument to +`flycheck-define-checker'. + +\(fn SYMBOL INIT-VALUE CHECKERS DOCSTRING &rest CUSTOM-ARGS)" nil t) + +(function-put 'flycheck-def-option-var 'lisp-indent-function '3) + +(function-put 'flycheck-def-option-var 'doc-string-elt '4) + +(autoload 'flycheck-define-checker "flycheck" "\ +Define SYMBOL as command syntax checker with DOCSTRING and PROPERTIES. + +Like `flycheck-define-command-checker', but PROPERTIES must not +be quoted. Also, implicitly define the executable variable for +SYMBOL with `flycheck-def-executable-var'. + +\(fn SYMBOL DOCSTRING &rest PROPERTIES)" nil t) + +(function-put 'flycheck-define-checker 'lisp-indent-function '1) + +(function-put 'flycheck-define-checker 'doc-string-elt '2) + +(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "flycheck" '("flycheck-" "list-flycheck-errors" "help-flycheck-checker-d"))) diff --git a/sources b/sources new file mode 100644 index 0000000..47f5ed5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (emacs-flycheck-31.tar.gz) = e7b3707f38a913d483109cf0e581d41053363e6fc0b849805d13076cc30eca19ec875c44590c3ffb383b73670c6763582f54a2df5502f287ec04b80a542182ec From 2d6dc8b4e65d603c75e49d57a4db72e3d02bddca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 04:31:38 +0000 Subject: [PATCH 02/15] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index e882ab9..1b5673e 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 31 -Release: 1%{?dist} +Release: 2%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,5 +49,8 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Thu Aug 20 2020 Mohamed El Morabity - 31-1 - Initial RPM release From 11e5a56b11c555687075dd4dc71d96e3573389ab Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 21:54:04 +0000 Subject: [PATCH 03/15] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 1b5673e..8c48f34 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 31 -Release: 2%{?dist} +Release: 3%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 31-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 2c1cb30b3a3ada4014c1546395057f561d8d8e05 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 01:53:29 +0000 Subject: [PATCH 04/15] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 8c48f34..51bd6ae 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 31 -Release: 3%{?dist} +Release: 4%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 31-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 31-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 474a6443c2fe99ab30dab922e89059c905f4c4a5 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 30 Mar 2022 11:48:37 +0200 Subject: [PATCH 05/15] Update to 32 --- .gitignore | 1 + emacs-flycheck.spec | 7 +++-- flycheck-init.el | 66 ++++++++++++++++++++++++++++++++------------- sources | 2 +- 4 files changed, 55 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index a09b3e0..eaaee0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /emacs-flycheck-31.tar.gz +/emacs-flycheck-32.tar.gz diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 51bd6ae..c01c4cc 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -1,8 +1,8 @@ %global pkg flycheck Name: emacs-%{pkg} -Version: 31 -Release: 4%{?dist} +Version: 32 +Release: 1%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Mar 30 2022 Mohamed El Morabity - 32-1 +- Update to 32 + * Thu Jan 20 2022 Fedora Release Engineering - 31-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/flycheck-init.el b/flycheck-init.el index 6249193..7559b78 100644 --- a/flycheck-init.el +++ b/flycheck-init.el @@ -1,28 +1,52 @@ (autoload 'flycheck-manual "flycheck" "\ -Open the Flycheck manual. - -\(fn)" t nil) +Open the Flycheck manual." t nil) (autoload 'flycheck-mode "flycheck" "\ -Minor mode for on-the-fly syntax checking. - -When called interactively, toggle `flycheck-mode'. With prefix -ARG, enable `flycheck-mode' if ARG is positive, otherwise disable -it. - -When called from Lisp, enable `flycheck-mode' if ARG is omitted, -nil or positive. If ARG is `toggle', toggle `flycheck-mode'. -Otherwise behave as if called interactively. +Flycheck is a minor mode for on-the-fly syntax checking. In `flycheck-mode' the buffer is automatically syntax-checked using the first suitable syntax checker from `flycheck-checkers'. Use `flycheck-select-checker' to select a checker for the current buffer manually. +If you run into issues, use `\\[flycheck-verify-setup]' to get help. + +Flycheck supports many languages out of the box, and many +additional ones are available on MELPA. Adding new ones is very +easy. Complete documentation is available online at URL +`https://www.flycheck.org/en/latest/'. Please report issues and +request features at URL `https://github.com/flycheck/flycheck'. + +Flycheck displays its status in the mode line. In the default +configuration, it looks like this: + +`FlyC' This buffer has not been checked yet. +`FlyC-' Flycheck doesn't have a checker for this buffer. +`FlyC*' Flycheck is running. Expect results soon! +`FlyC:3|2' This buffer contains three warnings and two errors. + Use `\\[flycheck-list-errors]' to see the list. + +You may also see the following icons: +`FlyC!' The checker crashed. +`FlyC.' The last syntax check was manually interrupted. +`FlyC?' The checker did something unexpected, like exiting with 1 + but returning no errors. + +The following keybindings are available in `flycheck-mode': + \\{flycheck-mode-map} +\(you can change the prefix by customizing +`flycheck-keymap-prefix') + +If called interactively, enable Flycheck mode if ARG is positive, +and disable it if ARG is zero or negative. If called from Lisp, +also enable the mode if ARG is omitted or nil, and toggle it if +ARG is ‘toggle’; disable the mode otherwise. \(fn &optional ARG)" t nil) +(put 'global-flycheck-mode 'globalized-minor-mode t) + (defvar global-flycheck-mode nil "\ Non-nil if Global Flycheck mode is enabled. See the `global-flycheck-mode' command @@ -79,16 +103,24 @@ The following PROPERTIES constitute an error level: property for error level categories is `priority', to influence the stacking of multiple error level overlays. -`:fringe-bitmap BITMAP' +`:fringe-bitmap BITMAPS' A fringe bitmap symbol denoting the bitmap to use for fringe - indicators for this level. See Info node `(elisp)Fringe - Bitmaps' for more information about fringe bitmaps, - including a list of built-in fringe bitmaps. + indicators for this level, or a cons of two bitmaps (one for + narrow fringes and one for wide fringes). See Info node + `(elisp)Fringe Bitmaps' for more information about fringe + bitmaps, including a list of built-in fringe bitmaps. `:fringe-face FACE' A face symbol denoting the face to use for fringe indicators for this level. +`:margin-spec SPEC' + A display specification indicating what to display in the + margin when `flycheck-indication-mode' is `left-margin' or + `right-margin'. See Info node `(elisp)Displaying in the + Margins'. If omitted, Flycheck generates an image spec from + the fringe bitmap. + `:error-list-face FACE' A face symbol denoting the face to use for messages of this level in the error list. See `flycheck-list-errors'. @@ -229,5 +261,3 @@ SYMBOL with `flycheck-def-executable-var'. (function-put 'flycheck-define-checker 'lisp-indent-function '1) (function-put 'flycheck-define-checker 'doc-string-elt '2) - -(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "flycheck" '("flycheck-" "list-flycheck-errors" "help-flycheck-checker-d"))) diff --git a/sources b/sources index 47f5ed5..4e7f610 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (emacs-flycheck-31.tar.gz) = e7b3707f38a913d483109cf0e581d41053363e6fc0b849805d13076cc30eca19ec875c44590c3ffb383b73670c6763582f54a2df5502f287ec04b80a542182ec +SHA512 (emacs-flycheck-32.tar.gz) = 3e89238ee6d2bd3e51cd5df805969366fbb77c3df470a12e697282535e372cbea1d3e907f1c33952e5821c05c62ce758103d6421a2add9be5347f839806f831b From 8118079b001046cbc243470b201d78c178afa119 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 01:55:59 +0000 Subject: [PATCH 06/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index c01c4cc..66812be 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 32 -Release: 1%{?dist} +Release: 2%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Wed Mar 30 2022 Mohamed El Morabity - 32-1 - Update to 32 From 8c5d1df7b33a4c77ca8b43ad4916729203ed6c21 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 02:17:23 +0000 Subject: [PATCH 07/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 66812be..718c2cf 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 32 -Release: 2%{?dist} +Release: 3%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 32-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 459620f72f32f49fd0051ec9b6715bcf972413de Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 18:26:09 +0000 Subject: [PATCH 08/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 718c2cf..4325f67 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 32 -Release: 3%{?dist} +Release: 4%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 32-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From a0605b131f10905ce902a7e0ed90d68c64a8ff44 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 18:05:26 +0000 Subject: [PATCH 09/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 4325f67..4342bbf 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 32 -Release: 4%{?dist} +Release: 5%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 32-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 32-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From a0f0f5f1dd72ed52503f6e3283ff4f9ddc9506a6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 10:20:42 +0000 Subject: [PATCH 10/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 4342bbf..235a3fa 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 32 -Release: 5%{?dist} +Release: 6%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPLv3+ @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 32-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 32-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From e2df92f345613b91062eb11748c458bac76854b6 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Sat, 2 Mar 2024 00:48:40 +0100 Subject: [PATCH 11/15] Update to 34.1 --- .gitignore | 1 + emacs-flycheck.spec | 10 +++++++--- flycheck-init.el | 47 ++++++++++++++++++++++++++++----------------- sources | 2 +- 4 files changed, 38 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index eaaee0c..0f7306f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /emacs-flycheck-31.tar.gz /emacs-flycheck-32.tar.gz +/emacs-flycheck-34.1.tar.gz diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 235a3fa..a540a1c 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -1,11 +1,11 @@ %global pkg flycheck Name: emacs-%{pkg} -Version: 32 -Release: 6%{?dist} +Version: 34.1 +Release: 1%{?dist} Summary: On the fly syntax checking for GNU Emacs -License: GPLv3+ +License: GPL-3.0-or-later URL: https://www.flycheck.org/ Source0: https://github.com/%{pkg}/%{pkg}/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{pkg}-init.el @@ -49,6 +49,10 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Fri Mar 01 2024 Mohamed El Morabity - 34.1-1 +- Update to 34.1 +- Migrate to SPDX license + * Wed Jan 24 2024 Fedora Release Engineering - 32-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/flycheck-init.el b/flycheck-init.el index 7559b78..fad88b5 100644 --- a/flycheck-init.el +++ b/flycheck-init.el @@ -1,5 +1,5 @@ (autoload 'flycheck-manual "flycheck" "\ -Open the Flycheck manual." t nil) +Open the Flycheck manual." t) (autoload 'flycheck-mode "flycheck" "\ Flycheck is a minor mode for on-the-fly syntax checking. @@ -43,7 +43,7 @@ and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’; disable the mode otherwise. -\(fn &optional ARG)" t nil) +\(fn &optional ARG)" t) (put 'global-flycheck-mode 'globalized-minor-mode t) @@ -60,14 +60,18 @@ or call the function `global-flycheck-mode'.") (autoload 'global-flycheck-mode "flycheck" "\ Toggle Flycheck mode in all buffers. With prefix ARG, enable Global Flycheck mode if ARG is positive; -otherwise, disable it. If called from Lisp, enable the mode if -ARG is omitted or nil. +otherwise, disable it. + +If called from Lisp, toggle the mode if ARG is `toggle'. +Enable the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +Flycheck mode is enabled in all buffers where `flycheck-mode-on-safe' +would do it. -Flycheck mode is enabled in all buffers where -`flycheck-mode-on-safe' would do it. See `flycheck-mode' for more information on Flycheck mode. -\(fn &optional ARG)" t nil) +\(fn &optional ARG)" t) (autoload 'flycheck-define-error-level "flycheck" "\ Define a new error LEVEL with PROPERTIES. @@ -77,7 +81,8 @@ The following PROPERTIES constitute an error level: `:severity SEVERITY' A number denoting the severity of this level. The higher the number, the more severe is this level compared to other - levels. Defaults to 0. + levels. Defaults to 0; info is -10, warning is 10, and + error is 100. The severity is used by `flycheck-error-level-<' to determine the ordering of errors according to their levels. @@ -125,9 +130,9 @@ The following PROPERTIES constitute an error level: A face symbol denoting the face to use for messages of this level in the error list. See `flycheck-list-errors'. -\(fn LEVEL &rest PROPERTIES)" nil nil) +\(fn LEVEL &rest PROPERTIES)") -(function-put 'flycheck-define-error-level 'lisp-indent-function '1) +(function-put 'flycheck-define-error-level 'lisp-indent-function 1) (autoload 'flycheck-define-command-checker "flycheck" "\ Define SYMBOL as syntax checker to run a command. @@ -206,11 +211,11 @@ Note that you may not give `:start', `:interrupt', and `:verify' function, though, whose results will be appended to the default `:verify' function of command checkers. -\(fn SYMBOL DOCSTRING &rest PROPERTIES)" nil nil) +\(fn SYMBOL DOCSTRING &rest PROPERTIES)") -(function-put 'flycheck-define-command-checker 'lisp-indent-function '1) +(function-put 'flycheck-define-command-checker 'lisp-indent-function 1) -(function-put 'flycheck-define-command-checker 'doc-string-elt '2) +(function-put 'flycheck-define-command-checker 'doc-string-elt 2) (autoload 'flycheck-def-config-file-var "flycheck" "\ Define SYMBOL as config file variable for CHECKER, with default FILE-NAME. @@ -228,7 +233,7 @@ argument to `flycheck-define-checker'. \(fn SYMBOL CHECKER &optional FILE-NAME &rest CUSTOM-ARGS)" nil t) -(function-put 'flycheck-def-config-file-var 'lisp-indent-function '3) +(function-put 'flycheck-def-config-file-var 'lisp-indent-function 3) (autoload 'flycheck-def-option-var "flycheck" "\ Define SYMBOL as option variable with INIT-VALUE for CHECKER. @@ -245,9 +250,9 @@ Use this together with the `option', `option-list' and \(fn SYMBOL INIT-VALUE CHECKERS DOCSTRING &rest CUSTOM-ARGS)" nil t) -(function-put 'flycheck-def-option-var 'lisp-indent-function '3) +(function-put 'flycheck-def-option-var 'lisp-indent-function 3) -(function-put 'flycheck-def-option-var 'doc-string-elt '4) +(function-put 'flycheck-def-option-var 'doc-string-elt 4) (autoload 'flycheck-define-checker "flycheck" "\ Define SYMBOL as command syntax checker with DOCSTRING and PROPERTIES. @@ -258,6 +263,12 @@ SYMBOL with `flycheck-def-executable-var'. \(fn SYMBOL DOCSTRING &rest PROPERTIES)" nil t) -(function-put 'flycheck-define-checker 'lisp-indent-function '1) +(function-put 'flycheck-define-checker 'lisp-indent-function 1) -(function-put 'flycheck-define-checker 'doc-string-elt '2) +(function-put 'flycheck-define-checker 'doc-string-elt 2) + +(register-definition-prefixes "flycheck" '("flycheck-" "help-flycheck-checker-d" "list-flycheck-errors")) + +(register-definition-prefixes "flycheck-buttercup" '("flycheck-buttercup-format-error-list")) + +(register-definition-prefixes "flycheck-ert" '("flycheck-er")) diff --git a/sources b/sources index 4e7f610..2381b50 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (emacs-flycheck-32.tar.gz) = 3e89238ee6d2bd3e51cd5df805969366fbb77c3df470a12e697282535e372cbea1d3e907f1c33952e5821c05c62ce758103d6421a2add9be5347f839806f831b +SHA512 (emacs-flycheck-34.1.tar.gz) = 5a28b8bb6a11db3da3535effb6c1087ee9d60e56ca132c77027834724dba723a610cb036b99baddaa9bd6e14d0986503f272bee4b64c5278f1cf0726cfac31f4 From a7307926e49dcbc2364430c621f12e4e7bbe8c01 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 21:57:03 +0000 Subject: [PATCH 12/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index a540a1c..95e085c 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 34.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPL-3.0-or-later @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 34.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Mar 01 2024 Mohamed El Morabity - 34.1-1 - Update to 34.1 - Migrate to SPDX license From 52fc9a5b57d1d4add187e221e3608fecb7be2b3e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 16:53:32 +0000 Subject: [PATCH 13/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 95e085c..1e15145 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 34.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPL-3.0-or-later @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 34.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jul 17 2024 Fedora Release Engineering - 34.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 1de637318cf3ed2d7a2c76d44ec6ccf5da1a2d25 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Sat, 12 Jul 2025 03:01:28 +0200 Subject: [PATCH 14/15] Update to 35.0 --- .gitignore | 1 + emacs-flycheck.spec | 9 ++++++--- flycheck-init.el | 23 +++++++++++++++++++++-- sources | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 0f7306f..f01faf9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /emacs-flycheck-31.tar.gz /emacs-flycheck-32.tar.gz /emacs-flycheck-34.1.tar.gz +/emacs-flycheck-35.0.tar.gz diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 1e15145..6eadabf 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -1,13 +1,13 @@ %global pkg flycheck Name: emacs-%{pkg} -Version: 34.1 -Release: 3%{?dist} +Version: 35.0 +Release: 1%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPL-3.0-or-later URL: https://www.flycheck.org/ -Source0: https://github.com/%{pkg}/%{pkg}/archive/%{version}/%{name}-%{version}.tar.gz +Source0: https://github.com/%{pkg}/%{pkg}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{pkg}-init.el BuildRequires: emacs @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Sat Jul 12 2025 Mohamed El Morabity - 35.0-1 +- Update to 35.0 + * Thu Jan 16 2025 Fedora Release Engineering - 34.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/flycheck-init.el b/flycheck-init.el index fad88b5..df7016f 100644 --- a/flycheck-init.el +++ b/flycheck-init.el @@ -1,6 +1,9 @@ (autoload 'flycheck-manual "flycheck" "\ Open the Flycheck manual." t) +(autoload 'flycheck-quick-help "flycheck" "\ +Display brief Flycheck help." t) + (autoload 'flycheck-mode "flycheck" "\ Flycheck is a minor mode for on-the-fly syntax checking. @@ -21,10 +24,11 @@ Flycheck displays its status in the mode line. In the default configuration, it looks like this: `FlyC' This buffer has not been checked yet. -`FlyC-' Flycheck doesn't have a checker for this buffer. `FlyC*' Flycheck is running. Expect results soon! -`FlyC:3|2' This buffer contains three warnings and two errors. +`FlyC:0' Last check resulted in no errors and no warnings. +`FlyC:3|5' This buffer contains three errors and five warnings. Use `\\[flycheck-list-errors]' to see the list. +`FlyC-' Flycheck doesn't have a checker for this buffer. You may also see the following icons: `FlyC!' The checker crashed. @@ -204,6 +208,21 @@ of command checkers is `flycheck-sanitize-errors'. If this property is given and has a non-nil value, send the contents of the buffer on standard input. + Some checkers that support reading from standard input have + a separate flag to indicate the name of the file whose + contents are being passed on standard input (typically + `stdin-filename'). In that case, use the `(option)' form in + `:command' to pass the value of variable `buffer-file-name' + when the current buffer has a file name (that is, + use `option \"--stdin-file-name\" buffer-file-name'). + + For buffers not backed by files, checkers that support input + on stdin typically report a file name like `-' or `'. + Make sure your error parser or patterns expect these file + names (for example, use `(or \"\" (file-name))') or + call `flycheck-remove-error-file-names' in a custom + `:error-filter'. + Defaults to nil. Note that you may not give `:start', `:interrupt', and diff --git a/sources b/sources index 2381b50..e4558b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (emacs-flycheck-34.1.tar.gz) = 5a28b8bb6a11db3da3535effb6c1087ee9d60e56ca132c77027834724dba723a610cb036b99baddaa9bd6e14d0986503f272bee4b64c5278f1cf0726cfac31f4 +SHA512 (emacs-flycheck-35.0.tar.gz) = 56b9bd231a711b05b87dac1bb191a796957edfc1ea9e0db63cccff9ba2259044097b489d660e0171483bfbef788ae4eeb3f78210730304fc0f50ce22f2199ddb From f7ba20a0aef1448230b1191ec843f34d6501456c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 19:50:28 +0000 Subject: [PATCH 15/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- emacs-flycheck.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs-flycheck.spec b/emacs-flycheck.spec index 6eadabf..6f9f1b5 100644 --- a/emacs-flycheck.spec +++ b/emacs-flycheck.spec @@ -2,7 +2,7 @@ Name: emacs-%{pkg} Version: 35.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: On the fly syntax checking for GNU Emacs License: GPL-3.0-or-later @@ -49,6 +49,9 @@ install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.e %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 35.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sat Jul 12 2025 Mohamed El Morabity - 35.0-1 - Update to 35.0