Commit 279c9272 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina Committed by Fabián Ezequiel Gallina

Enhancements to internal python shell naming.

The internal python shell now takes into account more shell settings
in order to generate the unique hash for its name.

Also `python-shell-setup-codes' has been simplified and is not allowed
to be a list of cons anymore.
parent e1f00930
......@@ -1181,11 +1181,7 @@ virtualenv."
(defcustom python-shell-setup-codes '(python-shell-completion-setup-code
"List of code run by `python-shell-send-setup-codes'.
Each variable can contain either a simple string with the code to
execute or a cons with the form (CODE . DESCRIPTION), where CODE
is a string with the code to execute and DESCRIPTION is the
description of it."
"List of code run by `python-shell-send-setup-codes'."
:type '(repeat symbol)
:group 'python
:safe 'listp)
......@@ -1232,8 +1228,13 @@ uniqueness for different types of configurations."
(mapconcat #'symbol-value python-shell-setup-codes "")
(mapconcat #'indentity python-shell-process-environment "")
(mapconcat #'indentity python-shell-extra-pythonpaths "")
(mapconcat #'indentity python-shell-exec-path "")
(or python-shell-virtualenv-path "")
(mapconcat #'indentity python-shell-exec-path "")))))
......@@ -1548,8 +1549,6 @@ This function takes the list of setup code to send from the
(accept-process-output process python-shell-send-setup-max-wait)
(dolist (code python-shell-setup-codes)
(when code
(when (consp code)
(setq msg (cdr code)))
(message (format msg code))
(symbol-value code) process)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment