From eff5a3e43ba886074c3a2e007a2bced9bcb85f17 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 2 Mar 2025 05:37:55 +0100 Subject: Bump python.el requirement to Emacs 26.3 * lisp/progmodes/python.el: Require Emacs 26.3, flymake 1.0 and project 0.1. (Bug#75526) --- lisp/progmodes/python.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 047ca54f755..64aca544fc4 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5,7 +5,7 @@ ;; Author: Fabián E. Gallina ;; 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 @@ -7233,7 +7233,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. -- cgit v1.2.1