From 4c46cbf0e07b6e5a8c111a025f62dd783b0d9d12 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Dec 20 2022 00:14:01 +0000 Subject: emacs-cython-mode: Wrap the docstring of cython-default-compile-format to 80 characters Fixes: https://bugzilla.redhat.com/2155090 --- diff --git a/Cython.spec b/Cython.spec index e6854fe..4307358 100644 --- a/Cython.spec +++ b/Cython.spec @@ -6,13 +6,18 @@ Name: Cython Version: 0.29.32 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Language for writing Python extension modules License: ASL 2.0 URL: http://www.cython.org Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz +# Wrap the docstring of cython-default-compile-format to 80 characters +# Upstream PR: https://github.com/cython/emacs-cython-mode/pull/1 +# Fixes https://bugzilla.redhat.com/2155090 +Patch: emacs-docstring-wrap.patch + BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -128,6 +133,10 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir %changelog +* Tue Dec 20 2022 Miro Hrončok - 0.29.32-2 +- emacs-cython-mode: Wrap the docstring of cython-default-compile-format to 80 characters +- Fixes: rhbz#2155090 + * Mon Aug 08 2022 Miro Hrončok - 0.29.32-1 - Update to 0.29.32 diff --git a/emacs-docstring-wrap.patch b/emacs-docstring-wrap.patch new file mode 100644 index 0000000..792d6e2 --- /dev/null +++ b/emacs-docstring-wrap.patch @@ -0,0 +1,26 @@ +From 38339b8598b5cfaef324650368581f6967b024a0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Tue, 20 Dec 2022 01:08:58 +0100 +Subject: [PATCH] Wrap the docstring of cython-default-compile-format to 80 + characters + +This should avoid a warning as reported in: +https://bugzilla.redhat.com/show_bug.cgi?id=2155090 +--- + Tools/cython-mode.el | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Tools/cython-mode.el b/Tools/cython-mode.el +index 2d9fbae..970a765 100644 +--- a/Tools/cython-mode.el ++++ b/Tools/cython-mode.el +@@ -108,7 +108,8 @@ + ;;;###autoload + (defcustom cython-default-compile-format "cython -a %s" + "Format for the default command to compile a Cython file. +-It will be passed to `format' with `buffer-file-name' as the only other argument." ++It will be passed to `format' with `buffer-file-name' ++as the only other argument." + :group 'cython + :type 'string) +