From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Pank Roulund Newsgroups: gmane.emacs.bugs Subject: bug#15128: 24.3.50; python.el completion broken Date: Mon, 19 Aug 2013 02:44:15 +0200 Message-ID: <87ob8uo6g0.fsf@pank.eu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376893875 9408 80.91.229.3 (19 Aug 2013 06:31:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2013 06:31:15 +0000 (UTC) To: 15128@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 19 08:31:17 2013 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 1VBIzl-0003Rx-7B for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Aug 2013 08:31:17 +0200 Original-Received: from localhost ([::1]:41180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBIzk-0007Nt-Ph for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Aug 2013 02:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBIzc-0007Nb-7Z for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2013 02:31:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBIzX-0000RD-0h for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2013 02:31:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBIzW-0000R6-UA for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2013 02:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VBIzW-0005ll-6k for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2013 02:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rasmus Pank Roulund Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Aug 2013 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137689382722109 (code B ref -1); Mon, 19 Aug 2013 06:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Aug 2013 06:30:27 +0000 Original-Received: from localhost ([127.0.0.1]:39688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VBIyv-0005kW-8j for submit@debbugs.gnu.org; Mon, 19 Aug 2013 02:30:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VBDaJ-0004M7-HQ for submit@debbugs.gnu.org; Sun, 18 Aug 2013 20:44:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBDa9-000747-HX for submit@debbugs.gnu.org; Sun, 18 Aug 2013 20:44:34 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBDa9-000743-Ea for submit@debbugs.gnu.org; Sun, 18 Aug 2013 20:44:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBDa5-00037A-24 for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 20:44:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBDa0-00072b-HX for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 20:44:24 -0400 Original-Received: from eumx.net ([91.82.101.43]:45701 helo=owm.eumx.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBDa0-000725-Ay for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 20:44:20 -0400 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAHKSURBVEjHlZTLlexACENnf3NRLiRCLmSiUBQR5y08v3Z73P1Y2nWr EAg+9iZ88e3j5nzqfwHlXeDIxbwN9OzuNn4bqN1EeDd5Byit25Ck/AKY7BpFXZRlXgBduxHTtBhp 6HsA7Q4yjKrRULdAwDPUgKsahXqUfX6hqCr3oGQaPC3fihZNxTC7A+1+VPEEmIYEDvXYemj4cx+q oVcwG8FsvwDc0BFoB5i17oEIKlTRqsI+jHUDIFXTDaQwk3vAjCRmoKI+W/bqBRcQQ5niNBRXGmag Nx4PvDLf7pbSjsfOPrn7CshkhCSp5p2Jy0jjHD2pvASsrzSyu65XI+o+TsQFnSfiCfiyZgMg79Tt APUcqaQ4wtt/2zvzq01uAZB9KO3H47ih37wbqMeV+Rs4fp+2TtWxSq6AuQAORZrrlFrnLfTt4FxX yVfrd3e36rpKZ+/kx/O5TKkfalyi8klJF8Dvac9nF/BuPCWegZ+Esj5mFNBXA8+AC8q7G7ta0F/m +IwTYJgB1bR6nBHcAUFZAQMV+8sXfwKmNwDHxYp7T4+cAWVbqq4qdTKu+5S+TTH+Xpj8PPkseqA9 MzPjJE/3P5e1eREnDeL/AHgX+Ac1wLS1jG2Y1gAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 19 Aug 2013 02:30:19 -0400 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:77496 Archived-At: Hi, With Christopher Schmidt's comint changes on 2013-08-08 python.el completion breaks. To reproduce do emacs -q M-x run-python x [TAB] I've included a simple fix that may or may not be sufficient. Here's the diff -c output *** python.el 2013-08-19 02:13:21.822104349 +0200 --- python1.el 2013-08-19 02:13:52.323300415 +0200 *************** *** 2276,2283 **** ;; heuristic. (with-current-buffer (process-buffer process) (buffer-substring-no-properties ! (overlay-start comint-last-prompt-overlay) ! (overlay-end comint-last-prompt-overlay)))) (completion-context ;; Check whether a prompt matches a pdb string, an import ;; statement or just the standard prompt and use the --- 2276,2283 ---- ;; heuristic. (with-current-buffer (process-buffer process) (buffer-substring-no-properties ! (marker-position (car comint-last-prompt)) ! (marker-position (cdr comint-last-prompt))))) (completion-context ;; Check whether a prompt matches a pdb string, an import ;; statement or just the standard prompt and use the Here's a changelog, if needed. 2013-08-19 Rasmus Pank Roulund * progmodes/python.el (python-shell-completion-get-completions): Replace reference to comint-last-prompt-overlay with comint-last-prompt. Let me know if I did something wrong! =E2=80=93Rasmus In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2) of 2013-08-17 on pank Bzr revision: eliz@gnu.org-20130817171807-fxigtkbc6yy8m9iw Windowing system distributor `The X.Org Foundation', version 11.0.11402000 System Description: Arch Linux