aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorChong Yidong2012-08-11 00:46:07 +0800
committerChong Yidong2012-08-11 00:46:07 +0800
commit1530c98e56d331a21ba7ef2c940d1441442ac798 (patch)
tree5503314233c9961630b0198516a2b9516d8027f8 /lisp/progmodes/python.el
parente1293765d95660fc7f2cf0fcb28026d1efa592df (diff)
downloademacs-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.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 ()