diff options
| author | Fabián Ezequiel Gallina | 2015-08-11 23:56:25 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2015-08-11 23:56:25 -0300 |
| commit | 197f280042a4d901ea94acdf10f1dc544fae4750 (patch) | |
| tree | f37c762e449cb65caff1cdf59fcf0b7492340973 | |
| parent | bf0ed7340098dcb6228566450a99d3cbc0460094 (diff) | |
| download | emacs-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.el | 12 |
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 | ||