From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#19755: python.el: native completion: more problems (and solutions) Date: Thu, 5 Feb 2015 11:25:31 -0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1423146434 28880 80.91.229.3 (5 Feb 2015 14:27:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 14:27:14 +0000 (UTC) To: 19755@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 15:27:14 2015 Return-path: Envelope-to: geb-bug-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 1YJNOj-0008Ao-TE for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 15:27:14 +0100 Original-Received: from localhost ([::1]:42331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJNOj-00078B-5h for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 09:27:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJNOe-00076A-SF for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 09:27:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJNOZ-0000Lj-GK for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 09:27:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJNOZ-0000LZ-Da for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 09:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YJNOY-00082u-S1 for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 09:27:03 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Feb 2015 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19755-submit@debbugs.gnu.org id=B19755.142314636330859 (code B ref 19755); Thu, 05 Feb 2015 14:27:02 +0000 Original-Received: (at 19755) by debbugs.gnu.org; 5 Feb 2015 14:26:03 +0000 Original-Received: from localhost ([127.0.0.1]:34600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJNNZ-00081e-Vl for submit@debbugs.gnu.org; Thu, 05 Feb 2015 09:26:02 -0500 Original-Received: from mail-lb0-f175.google.com ([209.85.217.175]:50840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJNNV-00081G-Qt for 19755@debbugs.gnu.org; Thu, 05 Feb 2015 09:25:58 -0500 Original-Received: by mail-lb0-f175.google.com with SMTP id n10so3420749lbv.6 for <19755@debbugs.gnu.org>; Thu, 05 Feb 2015 06:25:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=4MEtZDKx02HOTd+QXoHt1DVg7gHGM24g0E5b/V6wOtc=; b=UCKv7MLS3opG01/xOBwhIM9wzizto10HuH3rQYYGemvgA77idzB6yOnHi4Fwnb8Q3I 9JuR6ukfZwaMrpNM3hq44VYvuuydt6Iy9UN54uUkuEcnlLpZisZQ5oPs9RbzTN08b+ku /z7GMj/0aP33X3lisRSY5+uYvTfM6HYz/GfkkruChMn0XK2oNSrCmpiy4zuj9D3axCcH +Umcn2OUH6csaE0xGykqmleRfVXaWKQ1hExPLEDSX+Sp1k6HQdQb+fVto9RGW7qBt3j9 /tUcKD3DJPAHk7xOzh4uMWl+ad97WaXmVo36cDjtRNPB5nr5A5rynVVg05PCnAQQlstc 1NtQ== X-Received: by 10.152.181.129 with SMTP id dw1mr295774lac.101.1423146351975; Thu, 05 Feb 2015 06:25:51 -0800 (PST) Original-Received: by 10.112.124.202 with HTTP; Thu, 5 Feb 2015 06:25:31 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99059 Archived-At: Ok, after a conversation with Fabian I understood which are the shortcomings of the legacy mechanism: 1) While inside a block of code asking a completion to the shell makes it believe that you're not inside the block anymore. 2) Spurious prompt number increments take place each time a completion is requested to the shell. So it's not just a matter of the completer being the preinstalled by the shell or some other one that python.el instantiates itself during the setup phase. Another solution could be to open a simple python helper thread that listens on a socket. This thread could provide documentation for eldoc or for help buffers (I'm about to post a RFE for this feature), besides the completions. Another adventage is that it will be possible to unify the completion mechanisms again. What do you think? Cheers -- Carlos