From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 30 17:30:16 2015 Received: (at submit) by debbugs.gnu.org; 30 Jan 2015 22:30:16 +0000 Received: from localhost ([127.0.0.1]:58302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHK4u-0007lV-9m for submit@debbugs.gnu.org; Fri, 30 Jan 2015 17:30:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHK4s-0007lH-Ea for submit@debbugs.gnu.org; Fri, 30 Jan 2015 17:30:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHK4m-0001LX-6W for submit@debbugs.gnu.org; Fri, 30 Jan 2015 17:30:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHK4m-0001LT-4b for submit@debbugs.gnu.org; Fri, 30 Jan 2015 17:30:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHK4h-0008Ki-N2 for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 17:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHK4d-00016l-Hb for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 17:30:03 -0500 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:41350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHK4d-00016h-CX for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2015 17:29:59 -0500 Received: by mail-qg0-f43.google.com with SMTP id e89so40391573qgf.2 for ; Fri, 30 Jan 2015 14:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type; bh=WWFtbe6eFjsTxQG3kb9axJiTHTn20Op0lS2kx0sDt1I=; b=q/6EPnBzND1zWoSiVjgvrruwiYH3G0+muYxed81a067pbDfllnmLW5FuXEQ6AfJ4iw jk2G6PJrqkl4FtnaSI3SdTISkrWKZK1r0bLN1my/+/a7mcwkYTzoJD4yI18tcYM2ksIH LA93mrTMI9KM1xgY4D01XSyZ7zKZgUBjI8eWbyQv/DZ9aWW2Utv9TTKreWlCmKtH0LFH MiXfSSiK6YxLps8DA+WOM9Hf0z5RGmBhyZDzNdNQTdy76iHxPjTzLg3BcriuskNTn4ca i0stp2udPgPdab+GI0cLMfOI9YSV+uS1jx9m87zHayqL+fIHCpS4/glNkaJPtBnIJqCr JjJw== X-Received: by 10.140.35.114 with SMTP id m105mr12847551qgm.79.1422656998085; Fri, 30 Jan 2015 14:29:58 -0800 (PST) Received: from carlos-jampp ([190.18.155.203]) by mx.google.com with ESMTPSA id l64sm11336620qgf.16.2015.01.30.14.29.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 14:29:57 -0800 (PST) From: Carlos Pita To: bug-gnu-emacs@gnu.org Subject: 24.4; python.el: native completion breaks ipython magic completion Date: Fri, 30 Jan 2015 19:29:41 -0300 Message-ID: <87y4ojhpgq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: fabi.87@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hi Fabian, I think you should be using [1] as the ipython completer. In a sense, when you inherit from rlcompleter.Completer and replace the current completer you're somehow going against the goal of native completion, aren't you? Wouldn't it be better to just monkey patch the completer returned by readline.get_completer() with your _callable_postfix in case the completer indeed defines a _callable_postfix (it seems ipython completer don't do that)? Cheers -- Carlos [1] http://ipython.org/ipython-doc/dev/api/generated/IPython.core.completer.html From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 12:31:18 2015 Received: (at 19736) by debbugs.gnu.org; 2 Feb 2015 17:31:18 +0000 Received: from localhost ([127.0.0.1]:60593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKqD-0003mo-Lv for submit@debbugs.gnu.org; Mon, 02 Feb 2015 12:31:18 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:39219) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKqB-0003ma-PW for 19736@debbugs.gnu.org; Mon, 02 Feb 2015 12:31:16 -0500 Received: by mail-la0-f54.google.com with SMTP id hv19so43113316lab.13 for <19736@debbugs.gnu.org>; Mon, 02 Feb 2015 09:31:09 -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=s+Pz/Nnri67TRQ8GE9/dFoVhkSzCTvN+Zd/h1o6MZyY=; b=xsATys9ThSa3TBghExiaa8IBhyHwQhT9txgf7zWxdfB4b+xVvj3WD8FxZDK+MyjDOL +6KDy3oeUtNuWVJWqmvOYS2aPazwPwCj6WeYlK02JCROKyC5IE6lr+NJFvkosC97I28p 842sG66XR2n03QVQVkATn7k4N3TRfiAIioEswWmKM81Yw7X+8eRNMcUgDloKR54lIKqx 6WCnSzVqzINNw1MGJhZdTRLGQeo/tzXphwoNPkHWHjUBOgmAc6Ioxx4zuXjTsA4s2Fzc iExCJI6tiT2iDCcBmYpkRzgYAk1jhE9E40H0iuFkOM1xPv/ZgxsXi9Msx7ytMsWxm/6D vy/w== X-Received: by 10.112.25.104 with SMTP id b8mr20611456lbg.69.1422898269636; Mon, 02 Feb 2015 09:31:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 09:30:49 -0800 (PST) From: Carlos Pita Date: Mon, 2 Feb 2015 14:30:49 -0300 Message-ID: Subject: To: 19736@debbugs.gnu.org Content-Type: multipart/mixed; boundary=001a11c3d1c8e9e3ef050e1e512d X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch Hi Fabian, I've fixed this bug. It was harder than I'd initially thought as several issues converged to screw ipython completion up: [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 19736 Cc: Fabian Ezequiel Gallina X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch Hi Fabian, I've fixed this bug. It was harder than I'd initially thought as several issues converged to screw ipython completion up: [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --001a11c3d1c8e9e3ef050e1e512d Content-Type: text/plain; charset=UTF-8 Tags: patch Hi Fabian, I've fixed this bug. It was harder than I'd initially thought as several issues converged to screw ipython completion up: 1) The native completion setup code was importing rlcompleter. Just importing this overrides the current readline completer (the import calls set_completer to set the standard python completer, which is not quite the same as the completer ipython had previously set up). 2) The fallback completion setup code was also importing rlcompleter unconditionally, thus replacing the ipython completer too. 3) The _callable_postfix + triple-tab workaround was not available for the ipython completer AFAICS, because it has no _callable_postfix method. I opted for another (IMO a bit cleaner) workaround, see below. So, here is what I've done to fix the issues above: 3') I'm wrapping the current complete function (as returned by readline.get_completer) so that the wrapper never returns just one completion. In case the original completer returned one completion, a '__dummy_completion__' is added to the completion list by the wrapper. This avoids the need to define a _callable_postifx (unavailable in ipython) and also avoids the need for the triple-tab hack and duplicate filtering (obviously, you still have to filter '__dummy_completion__'). All in all I think the approach is more robust although still a bit hackish. IMO, it should be documented better in the code, I spent quite a time figuring out WTF the triple tabs and _callable_postfix were supposed to do! :) 1') Because of 3', there is no need to import rlcompleter in the native completion setup code anymore. 2') I've done some refactoring of the fallback completion setup code in order to import rlcompleter only in case the current shell is not ipython. In general, I think this setup code is a bit more clear now, but you're the one to judge that. I'm attaching a patch against my version of python.el which is a little outdated and has some patches of mine applied on top. But I think you won't have any problems figuring out the needed changes as they closely track the description above. Cheers -- Carlos --001a11c3d1c8e9e3ef050e1e512d Content-Type: text/plain; charset=US-ASCII; name="complete.diff" Content-Disposition: attachment; filename="complete.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i5o4opil0 ZGlmZiAtLWdpdCBhLy5lbWFjcy5kL2xpc3AvcHl0aG9uLmVsIGIvLmVtYWNzLmQvbGlzcC9weXRo b24uZWwKaW5kZXggYjk1OWZjNC4uMzMyY2E0NCAxMDA2NDQKLS0tIGEvLmVtYWNzLmQvbGlzcC9w eXRob24uZWwKKysrIGIvLmVtYWNzLmQvbGlzcC9weXRob24uZWwKQEAgLTI5NTAsNDMgKzI5NjIs MzggQEAgVGhpcyBmdW5jdGlvbiB0YWtlcyB0aGUgbGlzdCBvZiBzZXR1cCBjb2RlIHRvIHNlbmQg ZnJvbSB0aGUKIDs7OyBTaGVsbCBjb21wbGV0aW9uCiAKIChkZWZjdXN0b20gcHl0aG9uLXNoZWxs LWNvbXBsZXRpb24tc2V0dXAtY29kZQotICAidHJ5OgotICAgIGltcG9ydCBfX2J1aWx0aW5fXwot ZXhjZXB0IEltcG9ydEVycm9yOgotICAgICMgUHl0aG9uIDMKLSAgICBpbXBvcnQgYnVpbHRpbnMg YXMgX19idWlsdGluX18KLXRyeToKLSAgICBpbXBvcnQgcmVhZGxpbmUsIHJsY29tcGxldGVyCi1l eGNlcHQ6Ci0gICAgZGVmIF9fUFlUSE9OX0VMX2dldF9jb21wbGV0aW9ucyh0ZXh0KToKLSAgICAg ICAgcmV0dXJuIFtdCi1lbHNlOgotICAgIGRlZiBfX1BZVEhPTl9FTF9nZXRfY29tcGxldGlvbnMo dGV4dCk6Ci0gICAgICAgIGJ1aWx0aW5zID0gZGlyKF9fYnVpbHRpbl9fKQotICAgICAgICBjb21w bGV0aW9ucyA9IFtdCi0gICAgICAgIHRyeToKKyAgImRlZiBfX1BZVEhPTl9FTF9nZXRfY29tcGxl dGlvbnModGV4dCk6CisgICAgdHJ5OgorICAgICAgICBpbXBvcnQgX19idWlsdGluX18KKyAgICBl eGNlcHQgSW1wb3J0RXJyb3I6ICAjIFB5dGhvbiAzCisgICAgICAgIGltcG9ydCBidWlsdGlucyBh cyBfX2J1aWx0aW5fXworICAgIGJ1aWx0aW5zID0gZGlyKF9fYnVpbHRpbl9fKQorICAgIGlzX2lw eXRob24gPSAoJ19fSVBZVEhPTl9fJyBpbiBidWlsdGlucyBvcgorICAgICAgICAgICAgICAgICAg J19fSVBZVEhPTl9fYWN0aXZlJyBpbiBidWlsdGlucykKKyAgICBjb21wbGV0aW9ucyA9IFtdCisg ICAgdHJ5OgorICAgICAgICBpZiBpc19pcHl0aG9uOgogICAgICAgICAgICAgc3BsaXRzID0gdGV4 dC5zcGxpdCgpCiAgICAgICAgICAgICBpc19tb2R1bGUgPSBzcGxpdHMgYW5kIHNwbGl0c1swXSBp biAoJ2Zyb20nLCAnaW1wb3J0JykKLSAgICAgICAgICAgIGlzX2lweXRob24gPSAoJ19fSVBZVEhP Tl9fJyBpbiBidWlsdGlucyBvcgotICAgICAgICAgICAgICAgICAgICAgICAgICAnX19JUFlUSE9O X19hY3RpdmUnIGluIGJ1aWx0aW5zKQogICAgICAgICAgICAgaWYgaXNfbW9kdWxlOgogICAgICAg ICAgICAgICAgIGZyb20gSVB5dGhvbi5jb3JlLmNvbXBsZXRlcmxpYiBpbXBvcnQgbW9kdWxlX2Nv bXBsZXRpb24KICAgICAgICAgICAgICAgICBjb21wbGV0aW9ucyA9IG1vZHVsZV9jb21wbGV0aW9u KHRleHQuc3RyaXAoKSkKLSAgICAgICAgICAgIGVsaWYgaXNfaXB5dGhvbiBhbmQgJ19fSVAnIGlu IGJ1aWx0aW5zOgorICAgICAgICAgICAgZWxpZiAnX19JUCcgaW4gYnVpbHRpbnM6CiAgICAgICAg ICAgICAgICAgY29tcGxldGlvbnMgPSBfX0lQLmNvbXBsZXRlKHRleHQpCi0gICAgICAgICAgICBl bGlmIGlzX2lweXRob24gYW5kICdnZXRfaXB5dGhvbicgaW4gYnVpbHRpbnM6CisgICAgICAgICAg ICBlbGlmICdnZXRfaXB5dGhvbicgaW4gYnVpbHRpbnM6CiAgICAgICAgICAgICAgICAgY29tcGxl dGlvbnMgPSBnZXRfaXB5dGhvbigpLkNvbXBsZXRlci5hbGxfY29tcGxldGlvbnModGV4dCkKLSAg ICAgICAgICAgIGVsc2U6Ci0gICAgICAgICAgICAgICAgaSA9IDAKLSAgICAgICAgICAgICAgICB3 aGlsZSBUcnVlOgotICAgICAgICAgICAgICAgICAgICByZXMgPSByZWFkbGluZS5nZXRfY29tcGxl dGVyKCkodGV4dCwgaSkKLSAgICAgICAgICAgICAgICAgICAgaWYgbm90IHJlczoKLSAgICAgICAg ICAgICAgICAgICAgICAgIGJyZWFrCi0gICAgICAgICAgICAgICAgICAgIGkgKz0gMQotICAgICAg ICAgICAgICAgICAgICBjb21wbGV0aW9ucy5hcHBlbmQocmVzKQotICAgICAgICBleGNlcHQ6Ci0g ICAgICAgICAgICBwYXNzCi0gICAgICAgIHJldHVybiBjb21wbGV0aW9ucyIKKyAgICAgICAgZWxz ZTogICMgTmV2ZXIgZG8gdGhpcyBpbiBJUHl0aG9uIGFzIGl0IG92ZXJyaWRlcyB0aGUgY29tcGxl dGVyIQorICAgICAgICAgICAgaW1wb3J0IHJlYWRsaW5lLCBybGNvbXBsZXRlcgorICAgICAgICAg ICAgaSA9IDAKKyAgICAgICAgICAgIHdoaWxlIFRydWU6CisgICAgICAgICAgICAgICAgcmVzID0g cmVhZGxpbmUuZ2V0X2NvbXBsZXRlcigpKHRleHQsIGkpCisgICAgICAgICAgICAgICAgaWYgbm90 IHJlczoKKyAgICAgICAgICAgICAgICAgICBicmVhaworICAgICAgICAgICAgICAgIGkgKz0gMQor ICAgICAgICAgICAgICAgIGNvbXBsZXRpb25zLmFwcGVuZChyZXMpCisgICAgZXhjZXB0OgorICAg ICAgICBwYXNzCisgICAgcmV0dXJuIGNvbXBsZXRpb25zIgogICAiQ29kZSB1c2VkIHRvIHNldHVw IGNvbXBsZXRpb24gaW4gaW5mZXJpb3IgUHl0aG9uIHByb2Nlc3Nlcy4iCiAgIDp0eXBlICdzdHJp bmcKICAgOmdyb3VwICdweXRob24pCkBAIC0zMDUzLDE4ICszMDYwLDIwIEBAIFdoZW4gYSBtYXRj aCBpcyBmb3VuZCwgbmF0aXZlIGNvbXBsZXRpb24gaXMgZGlzYWJsZWQuIgogICAgICAgIydpZGVu dGl0eQogICAgICAgKGxpc3QKICAgICAgICAidHJ5OiIKLSAgICAgICAiICAgIGltcG9ydCByZWFk bGluZSwgcmxjb21wbGV0ZXIiCi0gICAgICAgOzsgUmVtb3ZlIHBhcmVucyBvbiBjYWxsYWJsZXMg YXMgaXQgYnJlYWtzIGNvbXBsZXRpb24gb24KLSAgICAgICA7OyBhcmd1bWVudHMgKGUuZy4gc3Ry KEFyaTx0YWI+KSkuCi0gICAgICAgIiAgICBjbGFzcyBDb21wbGV0ZXIocmxjb21wbGV0ZXIuQ29t cGxldGVyKToiCi0gICAgICAgIiAgICAgICAgZGVmIF9jYWxsYWJsZV9wb3N0Zml4KHNlbGYsIHZh bCwgd29yZCk6IgotICAgICAgICIgICAgICAgICAgICByZXR1cm4gd29yZCIKLSAgICAgICAiICAg IHJlYWRsaW5lLnNldF9jb21wbGV0ZXIoQ29tcGxldGVyKCkuY29tcGxldGUpIgorICAgICAgICIg ICAgaW1wb3J0IHJlYWRsaW5lIgorICAgICAgICIgICAgZGVmIGNvbXBsZXRlcih0ZXh0LCBzdGF0 ZSwgYz1yZWFkbGluZS5nZXRfY29tcGxldGVyKCkpOiIKKyAgICAgICAiICAgICAgICBjb21wbGV0 aW9uID0gYyh0ZXh0LCBzdGF0ZSkiCisgICAgICAgIiAgICAgICAgaWYgbm90IGNvbXBsZXRpb24g YW5kIHN0YXRlID09IDE6IgorICAgICAgICIgICAgICAgICAgICByZXR1cm4gdGV4dCArICdfX2R1 bW15X2NvbXBsZXRpb25fXyciCisgICAgICAgIiAgICAgICAgZWxzZToiCisgICAgICAgIiAgICAg ICAgICAgIHJldHVybiBjb21wbGV0aW9uIgorICAgICAgICIgICAgcmVhZGxpbmUuc2V0X2NvbXBs ZXRlcihjb21wbGV0ZXIpIgogICAgICAgICIgICAgaWYgcmVhZGxpbmUuX19kb2NfXyBhbmQgJ2xp YmVkaXQnIGluIHJlYWRsaW5lLl9fZG9jX186IgogICAgICAgICIgICAgICAgIHJlYWRsaW5lLnBh cnNlX2FuZF9iaW5kKCdiaW5kIF5JIHJsX2NvbXBsZXRlJykiCiAgICAgICAgIiAgICBlbHNlOiIK ICAgICAgICAiICAgICAgICByZWFkbGluZS5wYXJzZV9hbmRfYmluZCgndGFiOiBjb21wbGV0ZScp IgogICAgICAgICIgICAgcHJpbnQgKCdweXRob24uZWw6IHJlYWRsaW5lIGlzIGF2YWlsYWJsZScp IgorICAgICAgICIgICAgZGVsIGNvbXBsZXRlciwgcmVhZGxpbmUgICMgU29tZSBjbGVhbnVwIgog ICAgICAgICJleGNlcHQ6IgogICAgICAgICIgICAgcHJpbnQgKCdweXRob24uZWw6IHJlYWRsaW5l IG5vdCBhdmFpbGFibGUnKSIpCiAgICAgICAiXG4iKQpAQCAtMzE0Niw3ICszMTU1LDcgQEAgY29t cGxldGlvbi4iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHB5dGhvbi1zaGVsbC1jb21w bGV0aW9uLW5hdGl2ZS1yZWRpcmVjdC1idWZmZXIpKQogICAgICAgICAgICAoc2VwYXJhdG9ycyAo cHl0aG9uLXJ4CiAgICAgICAgICAgICAgICAgICAgICAgICAob3Igd2hpdGVzcGFjZSBvcGVuLXBh cmVuIGNsb3NlLXBhcmVuKSkpCi0gICAgICAgICAgICh0cmlnZ2VyICJcdFx0XHQiKQorICAgICAg ICAgICAodHJpZ2dlciAiXHQiKQogICAgICAgICAgICAobmV3LWlucHV0IChjb25jYXQgaW5wdXQg dHJpZ2dlcikpCiAgICAgICAgICAgIChpbnB1dC1sZW5ndGgKICAgICAgICAgICAgIChzYXZlLWV4 Y3Vyc2lvbgpAQCAtMzE5MiwxMSArMzIwMSwxMyBAQCBjb21wbGV0aW9uLiIKICAgICAgICAgICAg ICAgKHdoaWxlIChhY2NlcHQtcHJvY2Vzcy1vdXRwdXQKICAgICAgICAgICAgICAgICAgICAgICBw cm9jZXNzCiAgICAgICAgICAgICAgICAgICAgICAgcHl0aG9uLXNoZWxsLWNvbXBsZXRpb24tbmF0 aXZlLW91dHB1dC10aW1lb3V0KSkKLSAgICAgICAgICAgICAgKGNsLXJlbW92ZS1kdXBsaWNhdGVz CisgICAgICAgICAgICAgIChjbC1yZW1vdmUKKyAgICAgICAgICAgICAgIChjb25jYXQgaW5wdXQg Il9fZHVtbXlfY29tcGxldGlvbl9fIikKICAgICAgICAgICAgICAgIChzcGxpdC1zdHJpbmcKICAg ICAgICAgICAgICAgICAoYnVmZmVyLXN1YnN0cmluZy1uby1wcm9wZXJ0aWVzCiAgICAgICAgICAg ICAgICAgIChwb2ludC1taW4pIChwb2ludC1tYXgpKQotICAgICAgICAgICAgICAgIHNlcGFyYXRv cnMgdCkpKSkKKyAgICAgICAgICAgICAgICBzZXBhcmF0b3JzIHQpCisgICAgICAgICAgICAgICA6 dGVzdCAjJ3N0cmluZz0pKSkKICAgICAgICAgKHNldC1wcm9jZXNzLWZpbHRlciBwcm9jZXNzIG9y aWdpbmFsLWZpbHRlci1mbikpKSkpCiAKIChkZWZ1biBweXRob24tc2hlbGwtY29tcGxldGlvbi1n ZXQtY29tcGxldGlvbnMgKHByb2Nlc3MgaW1wb3J0IGlucHV0KQo= --001a11c3d1c8e9e3ef050e1e512d-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 12:33:54 2015 Received: (at control) by debbugs.gnu.org; 2 Feb 2015 17:33:54 +0000 Received: from localhost ([127.0.0.1]:60601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKsk-0003r9-Fb for submit@debbugs.gnu.org; Mon, 02 Feb 2015 12:33:54 -0500 Received: from mail-la0-f43.google.com ([209.85.215.43]:58416) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKsi-0003qu-EJ for control@debbugs.gnu.org; Mon, 02 Feb 2015 12:33:52 -0500 Received: by mail-la0-f43.google.com with SMTP id q1so43341147lam.2 for ; Mon, 02 Feb 2015 09:33:46 -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:content-type; bh=cbOfhW9aKy4y7qSyE3R3MjEDblP8sPxhtR8FbwH5Br8=; b=S1QDUbA/iqahIhlYcWegMVToXtORt59DeW3ogbnulriX/5KwqQTsaSoLUPa0FrCSDe C7N+dsWGV+Ee4ZejnoCD3d9wFWk1lJs5NTtP+/yTQ+UgWT5nvetMlWxIE4K9COL6StT8 P4ADzV+OQwAIGC7Vdn6MPiG/2S1xX9BOOYFSA6DOUHdg/7QrNly4c0Z+jumiz+lQnGnU uOPLSU+3+jiEL3dIeh1CSFBfJLKSpF3OlkA/tBv8bBWnO/d37oAf3WSM3vQnQRlUZdT4 a9+0NhwY2/0ViBVfXbevbucThaC4EgXY6/INQZeBvrV86XbnLmqI/6NVpx8E5bSM2eXI 1dSg== X-Received: by 10.112.198.1 with SMTP id iy1mr20463921lbc.13.1422898426553; Mon, 02 Feb 2015 09:33:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 09:33:26 -0800 (PST) From: Carlos Pita Date: Mon, 2 Feb 2015 14:33:26 -0300 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 19736 patch [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.43 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 19736 patch [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.43 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid tags 19736 patch From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 12:38:44 2015 Received: (at 19736) by debbugs.gnu.org; 2 Feb 2015 17:38:44 +0000 Received: from localhost ([127.0.0.1]:60607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKxQ-0003z1-3k for submit@debbugs.gnu.org; Mon, 02 Feb 2015 12:38:44 -0500 Received: from mail-la0-f44.google.com ([209.85.215.44]:41788) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIKxN-0003yh-VJ for 19736@debbugs.gnu.org; Mon, 02 Feb 2015 12:38:42 -0500 Received: by mail-la0-f44.google.com with SMTP id s18so43488000lam.3 for <19736@debbugs.gnu.org>; Mon, 02 Feb 2015 09:38:36 -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=sX1GNSP4HutFqZWU1gmkTTen6UcdXULQxw3KxsfTGIs=; b=c1dzAlNl2HyCBbyknt/AwDxN/RceziZRIL6ZE0sg4xp6HZFuHQS+aDAyEZEYJwfsLh g0QukqAnE/342WroFggHbEw7NeFnjdj4kzK3YPF9/UDzXDoGSu+LS6CRKJx8Ar7w2Pxo Ry6smFSzwwXyG88hfoby7Fep8H7h4I6Qwe953/liSYNyeA90TH6YS9rFHtZ2AR6homtQ 8XLoI+ViWahK1akbt4w9ijpe/dkaNq0vwBcis9oj/JxoVnHbjxSMV+FhCFGSh6/lMQw1 Qxth7gAo2QeblW/nVJhUvtWfd5HBxMKNd7D37zxo5aoyVonhC8PFnENxGX/tm/w8efcH Y4sQ== X-Received: by 10.152.4.233 with SMTP id n9mr20892563lan.61.1422898715994; Mon, 02 Feb 2015 09:38:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 09:38:15 -0800 (PST) From: Carlos Pita Date: Mon, 2 Feb 2015 14:38:15 -0300 Message-ID: Subject: To: 19736@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Just in case, here is the modified code for both completion setups (I'm not listing the minor changes to python-shell-completion-native-get-completions below): (defcustom python-shell-completion-setup-code "def __PYTHON_EL_get_completions(text): try: import __builtin__ except ImportError: # Python 3 import builtins as __builtin__ builtins = dir(__builtin__) is_ipython = ('__IPYTHON__' in builtins or '__IPYTHON__active' in builtins) completions = [] try: if is_ipython: splits = text.split() is_module = splits and splits[0] in ('from', 'import') if is_module: from IPython.core.completerlib import module_completion completions = module_completion(text.strip()) elif '__IP' in builtins: completions = __IP.complete(text) elif 'get_ipython' in builtins: completions = get_ipython().Completer.all_completions(text) else: # Never do this in IPython as it overrides the completer! import readline, rlcompleter i = 0 while True: res = readline.get_completer()(text, i) if not res: break i += 1 completions.append(res) except: pass return completions" "Code used to setup completion in inferior Python processes." :type 'string :group 'python) [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 19736 Cc: Fabian Ezequiel Gallina X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Just in case, here is the modified code for both completion setups (I'm not listing the minor changes to python-shell-completion-native-get-completions below): (defcustom python-shell-completion-setup-code "def __PYTHON_EL_get_completions(text): try: import __builtin__ except ImportError: # Python 3 import builtins as __builtin__ builtins = dir(__builtin__) is_ipython = ('__IPYTHON__' in builtins or '__IPYTHON__active' in builtins) completions = [] try: if is_ipython: splits = text.split() is_module = splits and splits[0] in ('from', 'import') if is_module: from IPython.core.completerlib import module_completion completions = module_completion(text.strip()) elif '__IP' in builtins: completions = __IP.complete(text) elif 'get_ipython' in builtins: completions = get_ipython().Completer.all_completions(text) else: # Never do this in IPython as it overrides the completer! import readline, rlcompleter i = 0 while True: res = readline.get_completer()(text, i) if not res: break i += 1 completions.append(res) except: pass return completions" "Code used to setup completion in inferior Python processes." :type 'string :group 'python) [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.44 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Just in case, here is the modified code for both completion setups (I'm not listing the minor changes to python-shell-completion-native-get-completions below): (defcustom python-shell-completion-setup-code "def __PYTHON_EL_get_completions(text): try: import __builtin__ except ImportError: # Python 3 import builtins as __builtin__ builtins = dir(__builtin__) is_ipython = ('__IPYTHON__' in builtins or '__IPYTHON__active' in builtins) completions = [] try: if is_ipython: splits = text.split() is_module = splits and splits[0] in ('from', 'import') if is_module: from IPython.core.completerlib import module_completion completions = module_completion(text.strip()) elif '__IP' in builtins: completions = __IP.complete(text) elif 'get_ipython' in builtins: completions = get_ipython().Completer.all_completions(text) else: # Never do this in IPython as it overrides the completer! import readline, rlcompleter i = 0 while True: res = readline.get_completer()(text, i) if not res: break i += 1 completions.append(res) except: pass return completions" "Code used to setup completion in inferior Python processes." :type 'string :group 'python) (defun python-shell-completion-native-setup () "Try to setup native completion, return non-nil on success." (let ((process (python-shell-get-process))) (python-shell-send-string (funcall 'mapconcat #'identity (list "try:" " import readline" " def completer(text, state, c=readline.get_completer()):" " completion = c(text, state)" " if not completion and state == 1:" " return text + '__dummy_completion__'" " else:" " return completion" " readline.set_completer(completer)" " if readline.__doc__ and 'libedit' in readline.__doc__:" " readline.parse_and_bind('bind ^I rl_complete')" " else:" " readline.parse_and_bind('tab: complete')" " print ('python.el: readline is available')" " del completer, readline # Some cleanup" "except:" " print ('python.el: readline not available')") "\n") process) (python-shell-accept-process-output process) (when (save-excursion (re-search-backward (regexp-quote "python.el: readline is available") nil t 1)) (python-shell-completion-native-try)))) From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 14:27:31 2015 Received: (at 19736) by debbugs.gnu.org; 2 Feb 2015 19:27:31 +0000 Received: from localhost ([127.0.0.1]:60628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIMeg-00082n-No for submit@debbugs.gnu.org; Mon, 02 Feb 2015 14:27:31 -0500 Received: from mail-la0-f53.google.com ([209.85.215.53]:48762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIMee-00082a-25 for 19736@debbugs.gnu.org; Mon, 02 Feb 2015 14:27:28 -0500 Received: by mail-la0-f53.google.com with SMTP id gq15so44391857lab.12 for <19736@debbugs.gnu.org>; Mon, 02 Feb 2015 11:27:22 -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=bPqJNvWnqG0LrYj/epBIFtEMSzggRSBE01FNoFMz620=; b=TiBc5L/oxGicPfLyDkSHtxHRi4koA3A3z/ASGcJdWHtQ47yylxyFjKVO75MoJP4zv0 5wWkoqkIjgIe6Jrr9mviFSY50DnEhvfjhOdtSG39gPuY8YsmiFOuQLqLXxQlPRS2y+DN iff05reF64t8bjMLDH+FhRLXR57C5/MjeH7p31kHwsj4fphS2W+/cXAFzUArclSRuGJ6 JqEXofALkjqHrZLt0vFKh0RdZyUFHi7xJGk1RODmq272xWUKVQRIbz/JSB/AaieWrhPY yXLc7EzAJvDrqmVDTZJoQ86aF9DDQY24Tb57wFdkDFF5XYaEvmIlZr6hdV/qE0rZnU42 kZig== X-Received: by 10.152.6.101 with SMTP id z5mr21136342laz.19.1422905241884; Mon, 02 Feb 2015 11:27:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 11:27:01 -0800 (PST) From: Carlos Pita Date: Mon, 2 Feb 2015 16:27:01 -0300 Message-ID: Subject: To: 19736@debbugs.gnu.org Content-Type: multipart/mixed; boundary=089e014943327e4269050e1ff107 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patch updated against the current master. From d3ceebd6ea08475b7f72090e0a219a51aaac21fd Mon Sep 17 00:00:00 2001 From: memeplex Date: Mon, 2 Feb 2015 14:59:24 -0300 Subject: [PATCH] python.el: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19736 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.53 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 19736 Cc: Fabian Ezequiel Gallina X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patch updated against the current master. From d3ceebd6ea08475b7f72090e0a219a51aaac21fd Mon Sep 17 00:00:00 2001 From: memeplex Date: Mon, 2 Feb 2015 14:59:24 -0300 Subject: [PATCH] python.el: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19736 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.53 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --089e014943327e4269050e1ff107 Content-Type: text/plain; charset=UTF-8 Patch updated against the current master. --089e014943327e4269050e1ff107 Content-Type: text/x-patch; charset=US-ASCII; name="complete.patch" Content-Disposition: attachment; filename="complete.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i5o90tmy0 RnJvbSBkM2NlZWJkNmVhMDg0NzViN2Y3MjA5MGUwYTIxOWE1MWFhYWMyMWZkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBtZW1lcGxleCA8Y2FybG9zam9zZXBpdGFAZ21haWwuY29tPgpE YXRlOiBNb24sIDIgRmViIDIwMTUgMTQ6NTk6MjQgLTAzMDAKU3ViamVjdDogW1BBVENIXSBweXRo b24uZWw6IGh0dHA6Ly9kZWJidWdzLmdudS5vcmcvY2dpL2J1Z3JlcG9ydC5jZ2k/YnVnPTE5NzM2 CgotLS0KIC5lbWFjcy5kL2xpc3AvcHl0aG9uLmVsIHwgNzkgKysrKysrKysrKysrKysrKysrKysr KysrLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDM5IGluc2VydGlv bnMoKyksIDQwIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhLy5lbWFjcy5kL2xpc3AvcHl0aG9u LmVsIGIvLmVtYWNzLmQvbGlzcC9weXRob24uZWwKaW5kZXggYjk1OWZjNC4uNWY4YTllOCAxMDA2 NDQKLS0tIGEvLmVtYWNzLmQvbGlzcC9weXRob24uZWwKKysrIGIvLmVtYWNzLmQvbGlzcC9weXRo b24uZWwKQEAgLTI5NTAsNDMgKzI5NTAsMzggQEAgVGhpcyBmdW5jdGlvbiB0YWtlcyB0aGUgbGlz dCBvZiBzZXR1cCBjb2RlIHRvIHNlbmQgZnJvbSB0aGUKIDs7OyBTaGVsbCBjb21wbGV0aW9uCiAK IChkZWZjdXN0b20gcHl0aG9uLXNoZWxsLWNvbXBsZXRpb24tc2V0dXAtY29kZQotICAidHJ5Ogot ICAgIGltcG9ydCBfX2J1aWx0aW5fXwotZXhjZXB0IEltcG9ydEVycm9yOgotICAgICMgUHl0aG9u IDMKLSAgICBpbXBvcnQgYnVpbHRpbnMgYXMgX19idWlsdGluX18KLXRyeToKLSAgICBpbXBvcnQg cmVhZGxpbmUsIHJsY29tcGxldGVyCi1leGNlcHQ6Ci0gICAgZGVmIF9fUFlUSE9OX0VMX2dldF9j b21wbGV0aW9ucyh0ZXh0KToKLSAgICAgICAgcmV0dXJuIFtdCi1lbHNlOgotICAgIGRlZiBfX1BZ VEhPTl9FTF9nZXRfY29tcGxldGlvbnModGV4dCk6Ci0gICAgICAgIGJ1aWx0aW5zID0gZGlyKF9f YnVpbHRpbl9fKQotICAgICAgICBjb21wbGV0aW9ucyA9IFtdCi0gICAgICAgIHRyeToKKyAgImRl ZiBfX1BZVEhPTl9FTF9nZXRfY29tcGxldGlvbnModGV4dCk6CisgICAgdHJ5OgorICAgICAgICBp bXBvcnQgX19idWlsdGluX18KKyAgICBleGNlcHQgSW1wb3J0RXJyb3I6ICAjIFB5dGhvbiAzCisg ICAgICAgIGltcG9ydCBidWlsdGlucyBhcyBfX2J1aWx0aW5fXworICAgIGJ1aWx0aW5zID0gZGly KF9fYnVpbHRpbl9fKQorICAgIGlzX2lweXRob24gPSAoJ19fSVBZVEhPTl9fJyBpbiBidWlsdGlu cyBvcgorICAgICAgICAgICAgICAgICAgJ19fSVBZVEhPTl9fYWN0aXZlJyBpbiBidWlsdGlucykK KyAgICBjb21wbGV0aW9ucyA9IFtdCisgICAgdHJ5OgorICAgICAgICBpZiBpc19pcHl0aG9uOgog ICAgICAgICAgICAgc3BsaXRzID0gdGV4dC5zcGxpdCgpCiAgICAgICAgICAgICBpc19tb2R1bGUg PSBzcGxpdHMgYW5kIHNwbGl0c1swXSBpbiAoJ2Zyb20nLCAnaW1wb3J0JykKLSAgICAgICAgICAg IGlzX2lweXRob24gPSAoJ19fSVBZVEhPTl9fJyBpbiBidWlsdGlucyBvcgotICAgICAgICAgICAg ICAgICAgICAgICAgICAnX19JUFlUSE9OX19hY3RpdmUnIGluIGJ1aWx0aW5zKQogICAgICAgICAg ICAgaWYgaXNfbW9kdWxlOgogICAgICAgICAgICAgICAgIGZyb20gSVB5dGhvbi5jb3JlLmNvbXBs ZXRlcmxpYiBpbXBvcnQgbW9kdWxlX2NvbXBsZXRpb24KICAgICAgICAgICAgICAgICBjb21wbGV0 aW9ucyA9IG1vZHVsZV9jb21wbGV0aW9uKHRleHQuc3RyaXAoKSkKLSAgICAgICAgICAgIGVsaWYg aXNfaXB5dGhvbiBhbmQgJ19fSVAnIGluIGJ1aWx0aW5zOgorICAgICAgICAgICAgZWxpZiAnX19J UCcgaW4gYnVpbHRpbnM6CiAgICAgICAgICAgICAgICAgY29tcGxldGlvbnMgPSBfX0lQLmNvbXBs ZXRlKHRleHQpCi0gICAgICAgICAgICBlbGlmIGlzX2lweXRob24gYW5kICdnZXRfaXB5dGhvbicg aW4gYnVpbHRpbnM6CisgICAgICAgICAgICBlbGlmICdnZXRfaXB5dGhvbicgaW4gYnVpbHRpbnM6 CiAgICAgICAgICAgICAgICAgY29tcGxldGlvbnMgPSBnZXRfaXB5dGhvbigpLkNvbXBsZXRlci5h bGxfY29tcGxldGlvbnModGV4dCkKLSAgICAgICAgICAgIGVsc2U6Ci0gICAgICAgICAgICAgICAg aSA9IDAKLSAgICAgICAgICAgICAgICB3aGlsZSBUcnVlOgotICAgICAgICAgICAgICAgICAgICBy ZXMgPSByZWFkbGluZS5nZXRfY29tcGxldGVyKCkodGV4dCwgaSkKLSAgICAgICAgICAgICAgICAg ICAgaWYgbm90IHJlczoKLSAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrCi0gICAgICAgICAg ICAgICAgICAgIGkgKz0gMQotICAgICAgICAgICAgICAgICAgICBjb21wbGV0aW9ucy5hcHBlbmQo cmVzKQotICAgICAgICBleGNlcHQ6Ci0gICAgICAgICAgICBwYXNzCi0gICAgICAgIHJldHVybiBj b21wbGV0aW9ucyIKKyAgICAgICAgZWxzZTogICMgTmV2ZXIgZG8gdGhpcyBpbiBJUHl0aG9uIGFz IGl0IG92ZXJyaWRlcyB0aGUgY29tcGxldGVyIQorICAgICAgICAgICAgaW1wb3J0IHJlYWRsaW5l LCBybGNvbXBsZXRlcgorICAgICAgICAgICAgaSA9IDAKKyAgICAgICAgICAgIHdoaWxlIFRydWU6 CisgICAgICAgICAgICAgICAgcmVzID0gcmVhZGxpbmUuZ2V0X2NvbXBsZXRlcigpKHRleHQsIGkp CisgICAgICAgICAgICAgICAgaWYgbm90IHJlczoKKyAgICAgICAgICAgICAgICAgICBicmVhawor ICAgICAgICAgICAgICAgIGkgKz0gMQorICAgICAgICAgICAgICAgIGNvbXBsZXRpb25zLmFwcGVu ZChyZXMpCisgICAgZXhjZXB0OgorICAgICAgICBwYXNzCisgICAgcmV0dXJuIGNvbXBsZXRpb25z IgogICAiQ29kZSB1c2VkIHRvIHNldHVwIGNvbXBsZXRpb24gaW4gaW5mZXJpb3IgUHl0aG9uIHBy b2Nlc3Nlcy4iCiAgIDp0eXBlICdzdHJpbmcKICAgOmdyb3VwICdweXRob24pCkBAIC0zMDUzLDE4 ICszMDQ4LDIwIEBAIFdoZW4gYSBtYXRjaCBpcyBmb3VuZCwgbmF0aXZlIGNvbXBsZXRpb24gaXMg ZGlzYWJsZWQuIgogICAgICAgIydpZGVudGl0eQogICAgICAgKGxpc3QKICAgICAgICAidHJ5OiIK LSAgICAgICAiICAgIGltcG9ydCByZWFkbGluZSwgcmxjb21wbGV0ZXIiCi0gICAgICAgOzsgUmVt b3ZlIHBhcmVucyBvbiBjYWxsYWJsZXMgYXMgaXQgYnJlYWtzIGNvbXBsZXRpb24gb24KLSAgICAg ICA7OyBhcmd1bWVudHMgKGUuZy4gc3RyKEFyaTx0YWI+KSkuCi0gICAgICAgIiAgICBjbGFzcyBD b21wbGV0ZXIocmxjb21wbGV0ZXIuQ29tcGxldGVyKToiCi0gICAgICAgIiAgICAgICAgZGVmIF9j YWxsYWJsZV9wb3N0Zml4KHNlbGYsIHZhbCwgd29yZCk6IgotICAgICAgICIgICAgICAgICAgICBy ZXR1cm4gd29yZCIKLSAgICAgICAiICAgIHJlYWRsaW5lLnNldF9jb21wbGV0ZXIoQ29tcGxldGVy KCkuY29tcGxldGUpIgorICAgICAgICIgICAgaW1wb3J0IHJlYWRsaW5lIgorICAgICAgICIgICAg ZGVmIGNvbXBsZXRlcih0ZXh0LCBzdGF0ZSwgYz1yZWFkbGluZS5nZXRfY29tcGxldGVyKCkpOiIK KyAgICAgICAiICAgICAgICBjb21wbGV0aW9uID0gYyh0ZXh0LCBzdGF0ZSkiCisgICAgICAgIiAg ICAgICAgaWYgbm90IGNvbXBsZXRpb24gYW5kIHN0YXRlID09IDE6IgorICAgICAgICIgICAgICAg ICAgICByZXR1cm4gdGV4dCArICdfX2R1bW15X2NvbXBsZXRpb25fXyciCisgICAgICAgIiAgICAg ICAgZWxzZToiCisgICAgICAgIiAgICAgICAgICAgIHJldHVybiBjb21wbGV0aW9uIgorICAgICAg ICIgICAgcmVhZGxpbmUuc2V0X2NvbXBsZXRlcihjb21wbGV0ZXIpIgogICAgICAgICIgICAgaWYg cmVhZGxpbmUuX19kb2NfXyBhbmQgJ2xpYmVkaXQnIGluIHJlYWRsaW5lLl9fZG9jX186IgogICAg ICAgICIgICAgICAgIHJlYWRsaW5lLnBhcnNlX2FuZF9iaW5kKCdiaW5kIF5JIHJsX2NvbXBsZXRl JykiCiAgICAgICAgIiAgICBlbHNlOiIKICAgICAgICAiICAgICAgICByZWFkbGluZS5wYXJzZV9h bmRfYmluZCgndGFiOiBjb21wbGV0ZScpIgogICAgICAgICIgICAgcHJpbnQgKCdweXRob24uZWw6 IHJlYWRsaW5lIGlzIGF2YWlsYWJsZScpIgorICAgICAgICIgICAgZGVsIGNvbXBsZXRlciwgcmVh ZGxpbmUgICMgU29tZSBjbGVhbnVwIgogICAgICAgICJleGNlcHQ6IgogICAgICAgICIgICAgcHJp bnQgKCdweXRob24uZWw6IHJlYWRsaW5lIG5vdCBhdmFpbGFibGUnKSIpCiAgICAgICAiXG4iKQpA QCAtMzE0Niw3ICszMTQzLDcgQEAgY29tcGxldGlvbi4iCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHB5dGhvbi1zaGVsbC1jb21wbGV0aW9uLW5hdGl2ZS1yZWRpcmVjdC1idWZmZXIpKQog ICAgICAgICAgICAoc2VwYXJhdG9ycyAocHl0aG9uLXJ4CiAgICAgICAgICAgICAgICAgICAgICAg ICAob3Igd2hpdGVzcGFjZSBvcGVuLXBhcmVuIGNsb3NlLXBhcmVuKSkpCi0gICAgICAgICAgICh0 cmlnZ2VyICJcdFx0XHQiKQorICAgICAgICAgICAodHJpZ2dlciAiXHQiKQogICAgICAgICAgICAo bmV3LWlucHV0IChjb25jYXQgaW5wdXQgdHJpZ2dlcikpCiAgICAgICAgICAgIChpbnB1dC1sZW5n dGgKICAgICAgICAgICAgIChzYXZlLWV4Y3Vyc2lvbgpAQCAtMzE5MiwxMSArMzE4OSwxMyBAQCBj b21wbGV0aW9uLiIKICAgICAgICAgICAgICAgKHdoaWxlIChhY2NlcHQtcHJvY2Vzcy1vdXRwdXQK ICAgICAgICAgICAgICAgICAgICAgICBwcm9jZXNzCiAgICAgICAgICAgICAgICAgICAgICAgcHl0 aG9uLXNoZWxsLWNvbXBsZXRpb24tbmF0aXZlLW91dHB1dC10aW1lb3V0KSkKLSAgICAgICAgICAg ICAgKGNsLXJlbW92ZS1kdXBsaWNhdGVzCisgICAgICAgICAgICAgIChjbC1yZW1vdmUKKyAgICAg ICAgICAgICAgIChjb25jYXQgaW5wdXQgIl9fZHVtbXlfY29tcGxldGlvbl9fIikKICAgICAgICAg ICAgICAgIChzcGxpdC1zdHJpbmcKICAgICAgICAgICAgICAgICAoYnVmZmVyLXN1YnN0cmluZy1u by1wcm9wZXJ0aWVzCiAgICAgICAgICAgICAgICAgIChwb2ludC1taW4pIChwb2ludC1tYXgpKQot ICAgICAgICAgICAgICAgIHNlcGFyYXRvcnMgdCkpKSkKKyAgICAgICAgICAgICAgICBzZXBhcmF0 b3JzIHQpCisgICAgICAgICAgICAgICA6dGVzdCAjJ3N0cmluZz0pKSkKICAgICAgICAgKHNldC1w cm9jZXNzLWZpbHRlciBwcm9jZXNzIG9yaWdpbmFsLWZpbHRlci1mbikpKSkpCiAKIChkZWZ1biBw eXRob24tc2hlbGwtY29tcGxldGlvbi1nZXQtY29tcGxldGlvbnMgKHByb2Nlc3MgaW1wb3J0IGlu cHV0KQotLSAKMi4yLjEKCg== --089e014943327e4269050e1ff107-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 21:51:05 2015 Received: (at control) by debbugs.gnu.org; 3 Feb 2015 02:51:05 +0000 Received: from localhost ([127.0.0.1]:60839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YITZx-00064R-2f for submit@debbugs.gnu.org; Mon, 02 Feb 2015 21:51:05 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:59109) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YITZv-00063y-Bu for control@debbugs.gnu.org; Mon, 02 Feb 2015 21:51:04 -0500 Received: by mail-la0-f54.google.com with SMTP id hv19so47161435lab.13 for ; Mon, 02 Feb 2015 18:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tSHZziRm8auB3NAx07TP4OtMhy4LZRpfOfZwMNavoio=; b=iA56kjIG3hgCAJNmO2Y0r9Q1/qbzHpYfGIE+lrtmGoR61CEBk0SlKOwHNDNZoAGWCO ekDfTgJ8jkXiZZSzMRsi4NVDdpIpSP0/sg3TxL6B5P9RyT3juenlINmIC3MQPIZ6gREk OZK0z6elgg2h/jkNHiN7UdfRjyCjgByouphgT648CozN55HhnpXnIzNk74qumv5wfUpu ROo6gx3E+ZChhQufTQ6nNa1TmRBcG6DcB2s/UWnHNEteop9n8mR+ryq1eqiffJGH5V6p 0c3AFH37KqinDqVaNmTKSWCmZD0JWUpF0aTobP5cDY0q5bO6pa05uzC9cRtj/NUzLzZK QZdg== MIME-Version: 1.0 X-Received: by 10.152.234.69 with SMTP id uc5mr22240488lac.16.1422931857067; Mon, 02 Feb 2015 18:50:57 -0800 (PST) Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 18:50:56 -0800 (PST) Received: by 10.112.124.202 with HTTP; Mon, 2 Feb 2015 18:50:56 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Feb 2015 23:50:56 -0300 Message-ID: Subject: From: Carlos Pita To: control@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a11340e0ce155c7050e262385 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 19736 python.el: native completion breaks ipython magic completion retitle 19736 python.el: native completion breaks ipython magic completion [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 19736 python.el: native completion breaks ipython magic completion retitle 19736 python.el: native completion breaks ipython magic completion [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --001a11340e0ce155c7050e262385 Content-Type: text/plain; charset=UTF-8 retitle 19736 python.el: native completion breaks ipython magic completion --001a11340e0ce155c7050e262385 Content-Type: text/html; charset=UTF-8

retitle 19736 python.el: native completion breaks ipython magic completion

--001a11340e0ce155c7050e262385-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 08 23:57:26 2015 Received: (at 19736-done) by debbugs.gnu.org; 9 Apr 2015 03:57:26 +0000 Received: from localhost ([127.0.0.1]:49838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yg3ao-0007PY-2z for submit@debbugs.gnu.org; Wed, 08 Apr 2015 23:57:26 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:54863 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yg3an-0007PQ-06 for 19736-done@debbugs.gnu.org; Wed, 08 Apr 2015 23:57:25 -0400 Received: from [190.246.172.180] (port=45916 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Yg3aj-0001GS-8F for 19736-done@debbugs.gnu.org; Wed, 08 Apr 2015 23:57:24 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 19736-done@debbugs.gnu.org Subject: python.el: native completion breaks ipython magic completion Date: Thu, 09 Apr 2015 00:57:18 -0300 Message-ID: <87vbh6nech.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19736-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Revno ab9252a@master fixes this. Cheers, Fabi=C3=A1n. From unknown Mon Jun 23 11:28:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 May 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator