diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
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." | |||
| 1549 | If DEDICATED is t and the variable `buffer-file-name' is non-nil | 1549 | If DEDICATED is t and the variable `buffer-file-name' is non-nil |
| 1550 | returns a string with the form | 1550 | returns 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 |
| 1552 | returns the value of `python-shell-buffer-name'. After | 1552 | returns the value of `python-shell-buffer-name'." |
| 1553 | calculating the process name adds the buffer name for the process | ||
| 1554 | in 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 () |