Fix: nil python shell because we already switched from .py file.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 02 Aug 2016 23:46:27 +0300
changeset 1413 63a3141a7ffe
parent 1412 04c1fdf1fdc9
child 1414 436e2cb0d9c0
Fix: nil python shell because we already switched from .py file.
.emacs-my
--- a/.emacs-my	Tue Aug 02 23:42:10 2016 +0300
+++ b/.emacs-my	Tue Aug 02 23:46:27 2016 +0300
@@ -2786,12 +2786,12 @@
                             (format "Describe symbol (default %s): " symbol)
                           "Describe symbol: ")
                         nil nil symbol))))
-  (let ( )
+  (let ( (pyproc (python-shell-get-process)) )
     (switch-to-buffer (get-buffer-create "*Python-doc*"))
     (read-only-mode -1)
     (buffer-disable-undo)
     (erase-buffer)
-    (insert (python-shell-send-string-no-output (format my-python/eldoc-string-code2 symbol) (python-shell-get-process)))
+    (insert (python-shell-send-string-no-output (format my-python/eldoc-string-code2 symbol) pyproc))
     (goto-char (point-min))
     (when (re-search-forward "^u?'" (line-end-position) t)
       (replace-match ""))