]> git.eshelyaron.com Git - emacs.git/commitdiff
Bump python.el requirement to Emacs 26.3
authorStefan Kangas <stefankangas@gmail.com>
Sun, 2 Mar 2025 04:37:55 +0000 (05:37 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 20:59:04 +0000 (21:59 +0100)
* lisp/progmodes/python.el: Require Emacs 26.3, flymake 1.0 and
project 0.1.  (Bug#75526)

(cherry picked from commit eff5a3e43ba886074c3a2e007a2bced9bcb85f17)

lisp/progmodes/python.el

index e08b20804639886406a1e43ccf2de0f61191c137..e825d27e79df2fcadbb4b156ac28547c7aba08be 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author: Fabián E. Gallina <fgallina@gnu.org>
 ;; URL: https://github.com/fgallina/python.el
 ;; Version: 0.28
-;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23"))
+;; Package-Requires: ((emacs "26.3") (compat "29.1.1.0") (seq "2.23") (project "0.1") (flymake "1.0"))
 ;; Maintainer: emacs-devel@gnu.org
 ;; Created: Jul 2010
 ;; Keywords: languages
@@ -7164,7 +7164,8 @@ implementations: `python-mode' and `python-ts-mode'."
     (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-ts-mode))
     (add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode))))
 
-(derived-mode-add-parents 'python-ts-mode '(python-mode))
+(when (fboundp 'derived-mode-add-parents) ; Emacs 30.1
+  (derived-mode-add-parents 'python-ts-mode '(python-mode)))
 
 ;;; Completion predicates for M-x
 ;; Commands that only make sense when editing Python code.