emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109525: * progmodes/python.el (pytho


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109525: * progmodes/python.el (python-pdbtrack-tracked-buffer)
Date: Thu, 09 Aug 2012 01:08:29 -0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109525
committer: Fabián Ezequiel Gallina <address@hidden>
branch nick: trunk
timestamp: Thu 2012-08-09 01:08:29 -0300
message:
  * 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.
modified:
  lisp/ChangeLog
  lisp/progmodes/python.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-08-09 03:30:37 +0000
+++ b/lisp/ChangeLog    2012-08-09 04:08:29 +0000
@@ -1,5 +1,12 @@
 2012-08-09  Fabián Ezequiel Gallina  <address@hidden>
 
+       * 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.
+
+2012-08-09  Fabián Ezequiel Gallina  <address@hidden>
+
        * progmodes/python.el: Enhancements to forward-sexp.
        (python-nav-forward-sexp): Rename from
        python-nav-forward-sexp-function.

=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el  2012-08-09 03:30:37 +0000
+++ b/lisp/progmodes/python.el  2012-08-09 04:08:29 +0000
@@ -1668,6 +1668,9 @@
                'python-shell-completion-complete-at-point)
   (define-key inferior-python-mode-map "\t"
     'python-shell-completion-complete-or-indent)
+  (make-local-variable 'python-pdbtrack-buffers-to-kill)
+  (make-local-variable 'python-pdbtrack-tracked-buffer)
+  (make-local-variable 'python-shell-internal-last-output)
   (when python-shell-enable-font-lock
     (set (make-local-variable 'font-lock-defaults)
          '(python-font-lock-keywords nil nil nil nil))
@@ -1787,13 +1790,11 @@
   "Current internal shell buffer for the current buffer.
 This is really not necessary at all for the code to work but it's
 there for compatibility with CEDET.")
-(make-variable-buffer-local 'python-shell-internal-buffer)
 
 (defvar python-shell-internal-last-output nil
   "Last output captured by the internal shell.
 This is really not necessary at all for the code to work but it's
 there for compatibility with CEDET.")
-(make-variable-buffer-local 'python-shell-internal-last-output)
 
 (defun python-shell-internal-get-or-create-process ()
   "Get or create an inferior Internal Python process."
@@ -2135,11 +2136,9 @@
   "Variable containing the value of the current tracked buffer.
 Never set this variable directly, use
 `python-pdbtrack-set-tracked-buffer' instead.")
-(make-variable-buffer-local 'python-pdbtrack-tracked-buffer)
 
 (defvar python-pdbtrack-buffers-to-kill nil
   "List of buffers to be deleted after tracking finishes.")
-(make-variable-buffer-local 'python-pdbtrack-buffers-to-kill)
 
 (defun python-pdbtrack-set-tracked-buffer (file-name)
   "Set the buffer for FILE-NAME as the tracked buffer.
@@ -3004,6 +3003,8 @@
 
   (python-skeleton-add-menu-items)
 
+  (make-local-variable 'python-shell-internal-buffer)
+
   (when python-indent-guess-indent-offset
     (python-indent-guess-indent-offset)))
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]