aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorGlenn Morris2017-12-20 16:05:46 -0500
committerGlenn Morris2017-12-20 16:05:46 -0500
commit7af7f5e15589407e1e78d0595fa93b20aa7dbb5a (patch)
tree7b67c338ee0850772abc1c47b87053342e289576 /lisp/progmodes/python.el
parent79fb4b5438d1a5ccf695459de4df295e602fb7b3 (diff)
downloademacs-7af7f5e15589407e1e78d0595fa93b20aa7dbb5a.tar.gz
emacs-7af7f5e15589407e1e78d0595fa93b20aa7dbb5a.zip
Fix some more aliases to user options
* lisp/cus-edit.el (custom-mode-hook): * lisp/erc/erc.el (erc-default-coding-system): * lisp/progmodes/python.el (python-indent, python-guess-indent) (python-shell-virtualenv-path) (python-shell-completion-module-string-code) (python-shell-completion-pdb-string-code, python-use-skeletons): Define aliases to user options before the options are defined.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el40
1 files changed, 20 insertions, 20 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 035d93f7b99..4388cbdc060 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -725,12 +725,18 @@ It makes underscores and dots word constituent chars.")
725 725
726;;; Indentation 726;;; Indentation
727 727
728(define-obsolete-variable-alias
729 'python-indent 'python-indent-offset "24.3")
730
728(defcustom python-indent-offset 4 731(defcustom python-indent-offset 4
729 "Default indentation offset for Python." 732 "Default indentation offset for Python."
730 :group 'python 733 :group 'python
731 :type 'integer 734 :type 'integer
732 :safe 'integerp) 735 :safe 'integerp)
733 736
737(define-obsolete-variable-alias
738 'python-guess-indent 'python-indent-guess-indent-offset "24.3")
739
734(defcustom python-indent-guess-indent-offset t 740(defcustom python-indent-guess-indent-offset t
735 "Non-nil tells Python mode to guess `python-indent-offset' value." 741 "Non-nil tells Python mode to guess `python-indent-offset' value."
736 :type 'boolean 742 :type 'boolean
@@ -750,12 +756,6 @@ It makes underscores and dots word constituent chars.")
750 :type '(repeat symbol) 756 :type '(repeat symbol)
751 :group 'python) 757 :group 'python)
752 758
753(define-obsolete-variable-alias
754 'python-indent 'python-indent-offset "24.3")
755
756(define-obsolete-variable-alias
757 'python-guess-indent 'python-indent-guess-indent-offset "24.3")
758
759(defvar python-indent-current-level 0 759(defvar python-indent-current-level 0
760 "Deprecated var available for compatibility.") 760 "Deprecated var available for compatibility.")
761 761
@@ -2042,6 +2042,9 @@ executed through tramp connections."
2042 :type '(repeat string) 2042 :type '(repeat string)
2043 :group 'python) 2043 :group 'python)
2044 2044
2045(define-obsolete-variable-alias
2046 'python-shell-virtualenv-path 'python-shell-virtualenv-root "25.1")
2047
2045(defcustom python-shell-virtualenv-root nil 2048(defcustom python-shell-virtualenv-root nil
2046 "Path to virtualenv root. 2049 "Path to virtualenv root.
2047This variable, when set to a string, makes the environment to be 2050This variable, when set to a string, makes the environment to be
@@ -2050,9 +2053,6 @@ virtualenv."
2050 :type '(choice (const nil) string) 2053 :type '(choice (const nil) string)
2051 :group 'python) 2054 :group 'python)
2052 2055
2053(define-obsolete-variable-alias
2054 'python-shell-virtualenv-path 'python-shell-virtualenv-root "25.1")
2055
2056(defcustom python-shell-setup-codes nil 2056(defcustom python-shell-setup-codes nil
2057 "List of code run by `python-shell-send-setup-codes'." 2057 "List of code run by `python-shell-send-setup-codes'."
2058 :type '(repeat symbol) 2058 :type '(repeat symbol)
@@ -3289,14 +3289,6 @@ def __PYTHON_EL_get_completions(text):
3289 :type 'string 3289 :type 'string
3290 :group 'python) 3290 :group 'python)
3291 3291
3292(defcustom python-shell-completion-string-code
3293 "';'.join(__PYTHON_EL_get_completions('''%s'''))"
3294 "Python code used to get a string of completions separated by semicolons.
3295The string passed to the function is the current python name or
3296the full statement in the case of imports."
3297 :type 'string
3298 :group 'python)
3299
3300(define-obsolete-variable-alias 3292(define-obsolete-variable-alias
3301 'python-shell-completion-module-string-code 3293 'python-shell-completion-module-string-code
3302 'python-shell-completion-string-code 3294 'python-shell-completion-string-code
@@ -3309,6 +3301,14 @@ the full statement in the case of imports."
3309 "25.1" 3301 "25.1"
3310 "Completion string code must work for (i)pdb.") 3302 "Completion string code must work for (i)pdb.")
3311 3303
3304(defcustom python-shell-completion-string-code
3305 "';'.join(__PYTHON_EL_get_completions('''%s'''))"
3306 "Python code used to get a string of completions separated by semicolons.
3307The string passed to the function is the current python name or
3308the full statement in the case of imports."
3309 :type 'string
3310 :group 'python)
3311
3312(defcustom python-shell-completion-native-disabled-interpreters 3312(defcustom python-shell-completion-native-disabled-interpreters
3313 ;; PyPy's readline cannot handle some escape sequences yet. Native 3313 ;; PyPy's readline cannot handle some escape sequences yet. Native
3314 ;; completion was found to be non-functional for IPython (see 3314 ;; completion was found to be non-functional for IPython (see
@@ -4040,6 +4040,9 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
4040 4040
4041;;; Skeletons 4041;;; Skeletons
4042 4042
4043(define-obsolete-variable-alias
4044 'python-use-skeletons 'python-skeleton-autoinsert "24.3")
4045
4043(defcustom python-skeleton-autoinsert nil 4046(defcustom python-skeleton-autoinsert nil
4044 "Non-nil means template skeletons will be automagically inserted. 4047 "Non-nil means template skeletons will be automagically inserted.
4045This happens when pressing \"if<SPACE>\", for example, to prompt for 4048This happens when pressing \"if<SPACE>\", for example, to prompt for
@@ -4048,9 +4051,6 @@ the if condition."
4048 :group 'python 4051 :group 'python
4049 :safe 'booleanp) 4052 :safe 'booleanp)
4050 4053
4051(define-obsolete-variable-alias
4052 'python-use-skeletons 'python-skeleton-autoinsert "24.3")
4053
4054(defvar python-skeleton-available '() 4054(defvar python-skeleton-available '()
4055 "Internal list of available skeletons.") 4055 "Internal list of available skeletons.")
4056 4056