]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/python.el
* lisp/progmodes/python.el (inferior-python-mode): Use add-hook.
[gnu-emacs] / lisp / progmodes / python.el
index a564acc3075eebd3f6ba4bfd4c6709530f74aa23..c828de10304432425dd7a06d000c33ea7ea14496 100644 (file)
@@ -2165,9 +2165,9 @@ variable.
   (define-key inferior-python-mode-map [remap complete-symbol]
     'completion-at-point)
   (add-hook 'completion-at-point-functions
-            'python-shell-completion-complete-at-point nil 'local)
-  (add-to-list (make-local-variable 'comint-dynamic-complete-functions)
-               'python-shell-completion-complete-at-point)
+            #'python-shell-completion-complete-at-point nil 'local)
+  (add-hook 'comint-dynamic-complete-functions ;FIXME: really?
+            #'python-shell-completion-complete-at-point nil 'local)
   (define-key inferior-python-mode-map "\t"
     'python-shell-completion-complete-or-indent)
   (make-local-variable 'python-pdbtrack-buffers-to-kill)