From 197f280042a4d901ea94acdf10f1dc544fae4750 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Tue, 11 Aug 2015 23:56:25 -0300 Subject: [PATCH] ; python.el: Emacs 24.x compatibility fixes * lisp/progmodes/python.el: Provide compatibility alternatives for prog-widen and prog-first-column. --- lisp/progmodes/python.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 95814fabca3..0b7b9b7f501 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -282,6 +282,18 @@ :version "24.3" :link '(emacs-commentary-link "python")) + +;;; 24.x Compat + + +(unless (fboundp 'prog-widen) + (defun prog-widen () + (widen))) + +(unless (fboundp 'prog-first-column) + (defun prog-first-column () + 0)) + ;;; Bindings -- 2.39.2