aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-08-09 01:08:29 -0300
committerFabián Ezequiel Gallina2012-08-09 01:08:29 -0300
commite0cc4efac7f170e81c9b95f1a616c1595442936e (patch)
treea52748d46470b0cf8a99a9697da5e7be0479b5d5 /lisp/progmodes/python.el
parent489af14fa55c1774367460c3279c0897f0ea9f2c (diff)
downloademacs-e0cc4efac7f170e81c9b95f1a616c1595442936e.tar.gz
emacs-e0cc4efac7f170e81c9b95f1a616c1595442936e.zip
* progmodes/python.el (python-pdbtrack-tracked-buffer)
(python-pdbtrack-buffers-to-kill, python-shell-internal-buffer) (python-shell-internal-last-output): Use make-local-variable instead of make-variable-buffer-local.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index c65f2a2d595..310bb8d3f66 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1668,6 +1668,9 @@ variable.
1668 'python-shell-completion-complete-at-point) 1668 'python-shell-completion-complete-at-point)
1669 (define-key inferior-python-mode-map "\t" 1669 (define-key inferior-python-mode-map "\t"
1670 'python-shell-completion-complete-or-indent) 1670 'python-shell-completion-complete-or-indent)
1671 (make-local-variable 'python-pdbtrack-buffers-to-kill)
1672 (make-local-variable 'python-pdbtrack-tracked-buffer)
1673 (make-local-variable 'python-shell-internal-last-output)
1671 (when python-shell-enable-font-lock 1674 (when python-shell-enable-font-lock
1672 (set (make-local-variable 'font-lock-defaults) 1675 (set (make-local-variable 'font-lock-defaults)
1673 '(python-font-lock-keywords nil nil nil nil)) 1676 '(python-font-lock-keywords nil nil nil nil))
@@ -1787,13 +1790,11 @@ startup."
1787 "Current internal shell buffer for the current buffer. 1790 "Current internal shell buffer for the current buffer.
1788This is really not necessary at all for the code to work but it's 1791This is really not necessary at all for the code to work but it's
1789there for compatibility with CEDET.") 1792there for compatibility with CEDET.")
1790(make-variable-buffer-local 'python-shell-internal-buffer)
1791 1793
1792(defvar python-shell-internal-last-output nil 1794(defvar python-shell-internal-last-output nil
1793 "Last output captured by the internal shell. 1795 "Last output captured by the internal shell.
1794This is really not necessary at all for the code to work but it's 1796This is really not necessary at all for the code to work but it's
1795there for compatibility with CEDET.") 1797there for compatibility with CEDET.")
1796(make-variable-buffer-local 'python-shell-internal-last-output)
1797 1798
1798(defun python-shell-internal-get-or-create-process () 1799(defun python-shell-internal-get-or-create-process ()
1799 "Get or create an inferior Internal Python process." 1800 "Get or create an inferior Internal Python process."
@@ -2135,11 +2136,9 @@ Used to extract the current line and module being inspected."
2135 "Variable containing the value of the current tracked buffer. 2136 "Variable containing the value of the current tracked buffer.
2136Never set this variable directly, use 2137Never set this variable directly, use
2137`python-pdbtrack-set-tracked-buffer' instead.") 2138`python-pdbtrack-set-tracked-buffer' instead.")
2138(make-variable-buffer-local 'python-pdbtrack-tracked-buffer)
2139 2139
2140(defvar python-pdbtrack-buffers-to-kill nil 2140(defvar python-pdbtrack-buffers-to-kill nil
2141 "List of buffers to be deleted after tracking finishes.") 2141 "List of buffers to be deleted after tracking finishes.")
2142(make-variable-buffer-local 'python-pdbtrack-buffers-to-kill)
2143 2142
2144(defun python-pdbtrack-set-tracked-buffer (file-name) 2143(defun python-pdbtrack-set-tracked-buffer (file-name)
2145 "Set the buffer for FILE-NAME as the tracked buffer. 2144 "Set the buffer for FILE-NAME as the tracked buffer.
@@ -3004,6 +3003,8 @@ if that value is non-nil."
3004 3003
3005 (python-skeleton-add-menu-items) 3004 (python-skeleton-add-menu-items)
3006 3005
3006 (make-local-variable 'python-shell-internal-buffer)
3007
3007 (when python-indent-guess-indent-offset 3008 (when python-indent-guess-indent-offset
3008 (python-indent-guess-indent-offset))) 3009 (python-indent-guess-indent-offset)))
3009 3010