]> code.delx.au - gnu-emacs/commitdiff
Make python.el work in Emacs 24
authorNoam Postavsky <npostavs@gmail.com>
Sat, 4 Jun 2016 17:32:50 +0000 (13:32 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 14 Jun 2016 12:08:01 +0000 (08:08 -0400)
* lisp/progmodes/python.el: Bump version.
(python-define-auxiliary-skeleton): Only use format-message if
fbound (Bug#23126).

lisp/progmodes/python.el

index 343023f7a09fb05504b32c7f38e279f290598565..d4089a3ea922182dae8cb21811ddd4c9759444d3 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Fabián E. Gallina <fgallina@gnu.org>
 ;; URL: https://github.com/fgallina/python.el
-;; Version: 0.25.1
+;; Version: 0.25.2
 ;; Package-Requires: ((emacs "24.1") (cl-lib "1.0"))
 ;; Maintainer: emacs-devel@gnu.org
 ;; Created: Jul 2010
@@ -4045,8 +4045,8 @@ The skeleton will be bound to python-skeleton-NAME."
   (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