From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Galtieri Newsgroups: gmane.emacs.help Subject: Re: Configuring Anaconda-Mode and Company-Mode with IPython Date: Thu, 16 Apr 2015 19:48:14 -0700 (PDT) Message-ID: <8c1de894-22ab-46fb-89e4-22e158f85c21@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429239029 25533 80.91.229.3 (17 Apr 2015 02:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2015 02:50:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 17 04:50:29 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YiwML-00086n-L9 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2015 04:50:25 +0200 Original-Received: from localhost ([::1]:39245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiwMK-0000og-NA for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Apr 2015 22:50:24 -0400 X-Received: by 10.236.110.130 with SMTP id u2mr1126926yhg.39.1429238894648; Thu, 16 Apr 2015 19:48:14 -0700 (PDT) X-Received: by 10.182.213.41 with SMTP id np9mr6354obc.18.1429238894619; Thu, 16 Apr 2015 19:48:14 -0700 (PDT) Original-Path: usenet.stanford.edu!j5no2130612qga.1!news-out.google.com!db6ni17886igc.0!nntp.google.com!l13no6185717iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.57.89.63; posting-account=f7-ZvAoAAAB4-kU4KuXEoQsBjFpDC4Z5 Original-NNTP-Posting-Host: 71.57.89.63 User-Agent: G2/1.0 Injection-Date: Fri, 17 Apr 2015 02:48:14 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211490 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103772 Archived-At: On Friday, April 17, 2015 at 1:36:58 AM UTC, Dmitry Gutov wrote: > Hi! >=20 > On 04/15/2015 04:42 PM, daniel.galtieri@gmail.com wrote: > > I am new to using Emacs, and am currently trying to configure it to be = a more robust environment for coding in Python. > > > > To do this I'm using Company-Mode with Anaconda-Mode for autocompletion= , along with the defaul Python.el mode > > > > I would like to use IPython as my repl, but I'm experiencing some odd b= ehavior with autocompletion in the IPython buffer (autocompletion works fin= e in the normal python buffer(s)). >=20 > Sorry, I don't do Python, and I'm a bit too busy to try you config.=20 > Here's what you should try: >=20 > First, disable anaconda-mode and see how much of the described behavior= =20 > you can reproduce. If there are problems you can now attribute to=20 > anaconda-mode, file issues on its bug tracker. >=20 > The rest of those should be problems or limitations of the built-in=20 > Emacs completion (which uses the REPL buffer), which you can file bugs=20 > for, with `M-x report-emacs-bug'. >=20 > But to double-check, disable `company-mode', and try pressing C-M-i: you= =20 > should see the same results in the *Completions* buffer. So I spoke with the dev for Anaconda-mode and it seems that it doesn't work= in the inferior python mode buffer, which is why it's not even listed as a= minor mode in my inferior buffer. Disabling Anaconda-mode as you suggested= doesn't change any of the described behavior, which isn't too surprising.= =20 C-M-i provides all the correct completion options. The issue seems to be wi= th whatever mechanism is behind generating the autocomplete tooltips. I'm n= ot entirely sure what I changed, or if this never worked to begin with and = I was mistaken in the first place, but if I do the following, for example:= =20 sys.p M-x company-complete to manually start completion I get "No completio= n found". But if I type C-M-i I get a completions buffer with the appropria= te methods.=20 Oddly, if I type sys.p and then change my focus to another application (e.g= . I click inside of firefox) and then switch my focus back to Emacs, typing= "a" (for example) results in the autocompletion tooltip to pop up.=20 There seems to be something funky going on, but I'm not entirely sure where= to direct my questions.