From: Stefan Kangas Date: Sun, 2 Mar 2025 04:37:55 +0000 (+0100) Subject: Bump python.el requirement to Emacs 26.3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9fe89d77e8a927598debc51ed78574842c967a18;p=emacs.git 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) (cherry picked from commit eff5a3e43ba886074c3a2e007a2bced9bcb85f17) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e08b2080463..e825d27e79d 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 @@ -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.