From c7b8c9832a71a28052b1388bf9664c4e00fcb586 Mon Sep 17 00:00:00 2001 From: Noam Postavsky 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