]> git.eshelyaron.com Git - emacs.git/commitdiff
; python.el: Emacs 24.x compatibility fixes
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 12 Aug 2015 02:56:25 +0000 (23:56 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Wed, 12 Aug 2015 02:56:25 +0000 (23:56 -0300)
* lisp/progmodes/python.el: Provide compatibility alternatives for
prog-widen and prog-first-column.

lisp/progmodes/python.el

index 95814fabca3b9e178c0f3a8294fe73cc3fc32710..0b7b9b7f5019e9015e5a7d27c41735684177bc3d 100644 (file)
   :version "24.3"
   :link '(emacs-commentary-link "python"))
 
+
+;;; 24.x Compat
+\f
+
+(unless (fboundp 'prog-widen)
+  (defun prog-widen ()
+    (widen)))
+
+(unless (fboundp 'prog-first-column)
+  (defun prog-first-column ()
+    0))
+
 \f
 ;;; Bindings