emacs-cython-mode: Wrap the docstring of cython-default-compile-format to 80 characters

Fixes: https://bugzilla.redhat.com/2155090
This commit is contained in:
Miro Hrončok 2022-12-20 01:14:01 +01:00
parent 7b06dc068d
commit 4c46cbf0e0
2 changed files with 36 additions and 1 deletions

View File

@ -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 <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 0.29.32-1
- Update to 0.29.32

View File

@ -0,0 +1,26 @@
From 38339b8598b5cfaef324650368581f6967b024a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
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)