diff options
| author | Chong Yidong | 2012-08-11 00:46:07 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-11 00:46:07 +0800 |
| commit | 1530c98e56d331a21ba7ef2c940d1441442ac798 (patch) | |
| tree | 5503314233c9961630b0198516a2b9516d8027f8 /lisp/progmodes/python.el | |
| parent | e1293765d95660fc7f2cf0fcb28026d1efa592df (diff) | |
| download | emacs-1530c98e56d331a21ba7ef2c940d1441442ac798.tar.gz emacs-1530c98e56d331a21ba7ef2c940d1441442ac798.zip | |
Remove some unnecessary bindings of same-window-* variables.
* lisp/progmodes/python.el (python-shell-get-process-name): Don't mess
with same-window-buffer-names.
* lisp/eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names): Make obsolete.
(eshell-buffer-name, eshell-unload-hook): Don't use them.
(eshell): Just use pop-to-buffer-same-window instead.
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 () |