From 307bd2e8c72c33811fa6bf32a23b08fda84b282e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:24 -0300 Subject: [PATCH] Fix typo enviroment => environment Removed function: * python-shell-calculate-process-enviroment New function: * python-shell-calculate-process-environment --- lisp/progmodes/python.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 8c80640ec82..3d25f0b46c8 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -89,7 +89,7 @@ ;; virtualenvs and other special environment modifications thanks to ;; `python-shell-process-environment' and `python-shell-exec-path'. ;; These two variables allows you to modify execution paths and -;; enviroment variables to make easy for you to setup virtualenv rules +;; environment variables to make easy for you to setup virtualenv rules ;; or behavior modifications when running shells. Here is an example ;; of how to make shell processes to be run using the /path/to/env/ ;; virtualenv: @@ -1079,11 +1079,11 @@ returned in that moment and not after waiting." :safe 'integerp) (defcustom python-shell-process-environment nil - "List of enviroment variables for Python shell. -This variable follows the same rules as `process-enviroment' + "List of environment variables for Python shell. +This variable follows the same rules as `process-environment' since it merges with it before the process creation routines are called. When this variable is nil, the Python shell is run with -the default `process-enviroment'." +the default `process-environment'." :type '(repeat string) :group 'python :safe 'listp) @@ -1171,8 +1171,8 @@ uniqueness for different types of configurations." "Calculate the string used to execute the inferior Python process." (format "%s %s" python-shell-interpreter python-shell-interpreter-args)) -(defun python-shell-calculate-process-enviroment () - "Calculate process enviroment given `python-shell-virtualenv-path'." +(defun python-shell-calculate-process-environment () + "Calculate process environment given `python-shell-virtualenv-path'." (let ((env (python-util-merge 'list python-shell-process-environment process-environment 'string=)) (virtualenv (if python-shell-virtualenv-path @@ -1260,7 +1260,7 @@ is created the `inferior-python-mode' is activated. If POP is non-nil the buffer is shown." (save-excursion (let* ((proc-buffer-name (format "*%s*" proc-name)) - (process-environment (python-shell-calculate-process-enviroment)) + (process-environment (python-shell-calculate-process-environment)) (exec-path (python-shell-calculate-exec-path))) (when (not (comint-check-proc proc-buffer-name)) (let* ((cmdlist (split-string-and-unquote cmd)) -- 2.39.5