title: Why does Emacs Jedi always insert “elif” after I type “else:”?
body: <p>I have installed “Jedi” mode in Emacs but am finding that it auto-inserts the word <code>elif</code> every time I create a new line and then type <kbd>e</kbd> <kbd>l</kbd> <kbd>s</kbd> <kbd>e</kbd> <kbd>:</kbd> <kbd>Enter</kbd> because the colon character apparently kicks off Jedi’s completion logic with <code>elif</code> suggested as the top suggestion, and my pressing <kbd>Enter</kbd> apparently selects it. So I always, every time I try to type an <code>else</code> clause, have to backspace over the extraneous <code>elif</code> before continuing.</p>
  
  <p>Is this problem unique to me? I activate Jedi by closely following the documentation:</p>
  
  <pre>
  (add-hook 'python-mode-hook 'jedi:setup)                                        
  (setq jedi:complete-on-dot t)                                                   
  (setq jedi:get-in-function-call-delay 200)                                      
  (setq jedi:tooltip-method nil)                                                  
  </pre>
  
  <p>You can find my entire <code>.emacs.d/init.el</code> under version control on GitHub:</p>
  
  <pre><code>https://github.com/brandon-rhodes/dot-emacs
  </code></pre>
  
  <p>The current version of Jedi and its associated tools on my system is:</p>
  
  <pre>
  (:emacs-version "24.3.1" :jedi-version "0.2.0alpha2")
  ((:version "3.4.0 |Continuum Analytics, Inc.| (default, Mar 17 2014, 16:13:08) \n[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]" :file nil :name "sys")
   (:version "0.8.0-final0" :file "/home/brandon/.v/fopnp-py3/lib/python3.4/site-packages/jedi/__init__.py" :name "jedi")
   (:version "0.0.5" :file "/home/brandon/.v/fopnp-py3/lib/python3.4/site-packages/epc/__init__.py" :name "epc")
   (:version "0.0.3" :file "/home/brandon/.v/fopnp-py3/lib/python3.4/site-packages/sexpdata.py" :name "sexpdata"))
  </pre>
  
  <p>I note that the <code>:</code> character is bound to the Emacs function <code>python-indent-electric-colon</code> but I am not sure how to determine whether that function is somehow setting off Jedi’s completion logic without meaning to.</p>