[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 197f280: ; python.el: Emacs 24.x compatibility fixe
From: |
Fabián Ezequiel Gallina |
Subject: |
[Emacs-diffs] master 197f280: ; python.el: Emacs 24.x compatibility fixes |
Date: |
Wed, 12 Aug 2015 02:57:24 +0000 |
branch: master
commit 197f280042a4d901ea94acdf10f1dc544fae4750
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>
; 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 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 95814fa..0b7b9b7 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 197f280: ; python.el: Emacs 24.x compatibility fixes,
Fabián Ezequiel Gallina <=