aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-06-14 22:33:57 -0300
committerFabián Ezequiel Gallina2012-06-14 22:33:57 -0300
commit9ddf3c74c8c1d4eb255f374852018a31fcd21753 (patch)
tree51c7a7d3147018504396ec7fe770fc5c47e33215 /lisp/progmodes/python.el
parent4b32415cc5d76fb5f468090a907c2d7e32997b42 (diff)
downloademacs-9ddf3c74c8c1d4eb255f374852018a31fcd21753.tar.gz
emacs-9ddf3c74c8c1d4eb255f374852018a31fcd21753.zip
* lisp/progmodes/python.el: (python-indent, python-guess-indent,
python-use-skeletons): New obsolete variable aliases. (python-indent-guess-indent-offset): Make interactive.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4fa8dff2a72..9bf89840e92 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -547,6 +547,12 @@ It makes underscores and dots word constituent chars.")
547 :group 'python 547 :group 'python
548 :safe 'booleanp) 548 :safe 'booleanp)
549 549
550(define-obsolete-variable-alias
551 'python-indent 'python-indent-offset "24.2")
552
553(define-obsolete-variable-alias
554 'python-guess-indent 'python-indent-guess-indent-offset "24.2")
555
550(defvar python-indent-current-level 0 556(defvar python-indent-current-level 0
551 "Current indentation level `python-indent-line-function' is using.") 557 "Current indentation level `python-indent-line-function' is using.")
552 558
@@ -560,6 +566,7 @@ These make `python-indent-calculate-indentation' subtract the value of
560 566
561(defun python-indent-guess-indent-offset () 567(defun python-indent-guess-indent-offset ()
562 "Guess and set `python-indent-offset' for the current buffer." 568 "Guess and set `python-indent-offset' for the current buffer."
569 (interactive)
563 (save-excursion 570 (save-excursion
564 (save-restriction 571 (save-restriction
565 (widen) 572 (widen)
@@ -2117,6 +2124,9 @@ the if condition."
2117 :group 'python 2124 :group 'python
2118 :safe 'booleanp) 2125 :safe 'booleanp)
2119 2126
2127(define-obsolete-variable-alias
2128 'python-use-skeletons 'python-skeleton-autoinsert "24.2")
2129
2120(defvar python-skeleton-available '() 2130(defvar python-skeleton-available '()
2121 "Internal list of available skeletons.") 2131 "Internal list of available skeletons.")
2122 2132