Subject: bug#23126: 24.3; format-message, phyton.el in GNU ELPA doesn't specify that it is required Emacs 25

From: Noam Postavsky <[email-masked]>
Date: Sat, 4 Jun 2016 13:47:21 -0400

tag 23126 + patch
quit

I guess the point of having python.el in ELPA is to support older
emacs, so we should avoid calling format-message rather than require
Emacs 25? Patch attached.
From c7b8c9832a71a28052b1388bf9664c4e00fcb586 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <[email-masked]>
Date: Sat, 4 Jun 2016 13:32:50 -0400
Subject: [PATCH] Make python.el work in Emacs 24

* lisp/progmodes/python.el (python-define-auxiliary-skeleton): Only use
format-message if fbound (Bug#23126).
---
 lisp/progmodes/python.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 343023f..d12d98a 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4045,8 +4045,8 @@ python-define-auxiliary-skeleton
   (declare (indent 2))
   (let* ((name (symbol-name name))
          (function-name (intern (concat "python-skeleton--" name)))
-         (msg (format-message
-               "Add `%s' clause? " name)))
+         (msg (funcall (if (fboundp 'format-message) 'format-message format)
+                       "Add `%s' clause? " name)))
     (when (not skel)
       (setq skel
             `(< ,(format "%s:" name) \n \n
-- 
2.8.0