; python.el: Emacs 24.x compatibility fixes
* lisp/progmodes/python.el: Provide compatibility alternatives for prog-widen and prog-first-column.
This commit is contained in:
parent
bf0ed73400
commit
197f280042
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue