]> git.eshelyaron.com Git - emacs.git/commitdiff
Added compatibility with lastest CEDET.
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:32 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:32 +0000 (00:03 -0300)
Obsolete variables definitions:
  + python-buffer => python-shell-internal-buffer

Obsolete functions definitions:
  + python-proc => python-shell-internal-get-or-create-process
  + python-send-string => python-shell-internal-send-string

lisp/progmodes/python.el

index 5842dc021c61c0368c8dbb742f93b9147fe37cf7..9e83ac77f6b9a2646813a405a9b1b5cc2968ae2b 100644 (file)
@@ -1426,13 +1426,26 @@ of commands.)"
                             dedicated-proc-buffer-name
                           global-proc-buffer-name))))
 
+(defvar python-shell-internal-buffer nil
+  "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)
+
 (defun python-shell-internal-get-or-create-process ()
   "Get or create an inferior Internal Python process."
   (let* ((proc-name (python-shell-internal-get-process-name))
          (proc-buffer-name (format "*%s*" proc-name)))
     (run-python-internal)
+    (setq python-shell-internal-buffer proc-buffer-name)
     (get-buffer-process proc-buffer-name)))
 
+(define-obsolete-function-alias
+  'python-proc 'python-shell-internal-get-or-create-process "23.3")
+
+(define-obsolete-variable-alias
+  'python-buffer 'python-shell-internal-buffer "23.3")
+
 (defun python-shell-send-string (string &optional process msg)
   "Send STRING to inferior Python PROCESS.
 When MSG is non-nil messages the first line of STRING."
@@ -1486,10 +1499,10 @@ Returns the output.  See `python-shell-send-string-no-output'."
    (python-shell-internal-get-or-create-process) nil))
 
 (define-obsolete-function-alias
-  'python-send-receive 'python-shell-internal-send-string "23.3"
-  "Send STRING to inferior Python (if any) and return result.
-The result is what follows `_emacs_out' in the output.
-This is a no-op if `python-check-comint-prompt' returns nil.")
+  'python-send-receive 'python-shell-internal-send-string "23.3")
+
+(define-obsolete-function-alias
+  'python-send-string 'python-shell-internal-send-string "23.3")
 
 (defun python-shell-send-region (start end)
   "Send the region delimited by START and END to inferior Python process."