From: Fabián Ezequiel Gallina Date: Wed, 12 Aug 2015 02:56:25 +0000 (-0300) Subject: ; python.el: Emacs 24.x compatibility fixes X-Git-Tag: emacs-25.0.90~1373^2~58 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=197f280042a4d901ea94acdf10f1dc544fae4750;p=emacs.git ; python.el: Emacs 24.x compatibility fixes * lisp/progmodes/python.el: Provide compatibility alternatives for prog-widen and prog-first-column. --- 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