aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 310bb8d3f66..f695d747483 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1549,16 +1549,12 @@ virtualenv."
1549If DEDICATED is t and the variable `buffer-file-name' is non-nil 1549If DEDICATED is t and the variable `buffer-file-name' is non-nil
1550returns a string with the form 1550returns a string with the form
1551`python-shell-buffer-name'[variable `buffer-file-name'] else 1551`python-shell-buffer-name'[variable `buffer-file-name'] else
1552returns the value of `python-shell-buffer-name'. After 1552returns the value of `python-shell-buffer-name'."
1553calculating the process name adds the buffer name for the process
1554in the `same-window-buffer-names' list."
1555 (let ((process-name 1553 (let ((process-name
1556 (if (and dedicated 1554 (if (and dedicated
1557 buffer-file-name) 1555 buffer-file-name)
1558 (format "%s[%s]" python-shell-buffer-name buffer-file-name) 1556 (format "%s[%s]" python-shell-buffer-name buffer-file-name)
1559 (format "%s" python-shell-buffer-name)))) 1557 (format "%s" python-shell-buffer-name))))
1560 (add-to-list 'same-window-buffer-names (purecopy
1561 (format "*%s*" process-name)))
1562 process-name)) 1558 process-name))
1563 1559
1564(defun python-shell-internal-get-process-name () 1560(defun python-shell-internal-get-process-name ()