diff options
author | Chong Yidong <cyd@gnu.org> | 2012-08-11 00:46:07 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 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.tar.bz2 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." If DEDICATED is t and the variable `buffer-file-name' is non-nil returns a string with the form `python-shell-buffer-name'[variable `buffer-file-name'] else -returns the value of `python-shell-buffer-name'. After -calculating the process name adds the buffer name for the process -in the `same-window-buffer-names' list." +returns the value of `python-shell-buffer-name'." (let ((process-name (if (and dedicated buffer-file-name) (format "%s[%s]" python-shell-buffer-name buffer-file-name) (format "%s" python-shell-buffer-name)))) - (add-to-list 'same-window-buffer-names (purecopy - (format "*%s*" process-name))) process-name)) (defun python-shell-internal-get-process-name () |