aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2015-08-11 23:56:25 -0300
committerFabián Ezequiel Gallina2015-08-11 23:56:25 -0300
commit197f280042a4d901ea94acdf10f1dc544fae4750 (patch)
treef37c762e449cb65caff1cdf59fcf0b7492340973
parentbf0ed7340098dcb6228566450a99d3cbc0460094 (diff)
downloademacs-197f280042a4d901ea94acdf10f1dc544fae4750.tar.gz
emacs-197f280042a4d901ea94acdf10f1dc544fae4750.zip
; python.el: Emacs 24.x compatibility fixes
* lisp/progmodes/python.el: Provide compatibility alternatives for prog-widen and prog-first-column.
-rw-r--r--lisp/progmodes/python.el12
1 files changed, 12 insertions, 0 deletions
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 @@
282 :version "24.3" 282 :version "24.3"
283 :link '(emacs-commentary-link "python")) 283 :link '(emacs-commentary-link "python"))
284 284
285
286;;; 24.x Compat
287
288
289(unless (fboundp 'prog-widen)
290 (defun prog-widen ()
291 (widen)))
292
293(unless (fboundp 'prog-first-column)
294 (defun prog-first-column ()
295 0))
296
285 297
286;;; Bindings 298;;; Bindings
287 299