Fix bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654398
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 03 Jan 2012 18:46:17 +0200
changeset 856 7757d0840a78
parent 855 2df420cd2fcf
child 857 05db92f1e97d
Fix bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654398 C-c C-h ('py-help-at-point') does not work because 'py-which-shell' is 'nil' in 'py-execute-string'.
.emacs-my
--- a/.emacs-my	Wed Dec 21 22:36:27 2011 +0200
+++ b/.emacs-my	Tue Jan 03 18:46:17 2012 +0200
@@ -1947,6 +1947,12 @@
 
 (setq python-indent 4)
 
+(eval-after-load 'python-mode
+  (when (equal py-version "5.1.0")
+    (setq-default py-which-shell py-python-command)
+    ;; (py-toggle-shells 'cpython)
+    ))
+
 (defun my-python-add-to-path (path)
   (interactive (list (read-directory-name "Enter new path for PYTHONPATH: ")))
   (when (featurep 'cygwin-mount)