diff options
| author | Fabián Ezequiel Gallina | 2012-08-09 01:08:29 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-08-09 01:08:29 -0300 |
| commit | e0cc4efac7f170e81c9b95f1a616c1595442936e (patch) | |
| tree | a52748d46470b0cf8a99a9697da5e7be0479b5d5 /lisp/progmodes/python.el | |
| parent | 489af14fa55c1774367460c3279c0897f0ea9f2c (diff) | |
| download | emacs-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.el | 9 |
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. |
| 1788 | This is really not necessary at all for the code to work but it's | 1791 | This is really not necessary at all for the code to work but it's |
| 1789 | there for compatibility with CEDET.") | 1792 | there 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. |
| 1794 | This is really not necessary at all for the code to work but it's | 1796 | This is really not necessary at all for the code to work but it's |
| 1795 | there for compatibility with CEDET.") | 1797 | there 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. |
| 2136 | Never set this variable directly, use | 2137 | Never 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 | ||