From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18582: 24.4.50; [python.el] completion error Date: Wed, 01 Oct 2014 10:26:47 -0400 Message-ID: References: <87lhp27gt2.fsf@gmx.us> <87iok4xcgf.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412173645 6408 80.91.229.3 (1 Oct 2014 14:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 14:27:25 +0000 (UTC) Cc: 18582@debbugs.gnu.org, fabian@anue.biz To: Rasmus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 16:27:19 2014 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 1XZKsA-0006KN-Oi for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 16:27:18 +0200 Original-Received: from localhost ([::1]:55725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZKsA-0003pD-CA for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 10:27:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZKs1-0003oR-6x for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 10:27:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZKru-00017d-UB for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 10:27:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZKru-00017V-Rl for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 10:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZKru-00089l-9z for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18582-submit@debbugs.gnu.org id=B18582.141217361331338 (code B ref 18582); Wed, 01 Oct 2014 14:27:02 +0000 Original-Received: (at 18582) by debbugs.gnu.org; 1 Oct 2014 14:26:53 +0000 Original-Received: from localhost ([127.0.0.1]:57523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZKrk-00089N-J1 for submit@debbugs.gnu.org; Wed, 01 Oct 2014 10:26:53 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50716) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZKrg-00089E-Un for 18582@debbugs.gnu.org; Wed, 01 Oct 2014 10:26:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLNBIUGA0kiAQIDdIMF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLNBIUGA0kiAQIDdIMF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="91408841" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Oct 2014 10:26:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C78634821; Wed, 1 Oct 2014 10:26:47 -0400 (EDT) In-Reply-To: <87iok4xcgf.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 01 Oct 2014 13:21:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:93959 Archived-At: > Okay, I changed my build-script to download from: > http://bzr.savannah.gnu.org/r/emacs/emacs-24/ > It was trunk at the end of the url before. Sounds right. > If this means anything to you: > (emacs-bzr-get-version) => "ueno@gnu.org-20141001022515-zphv3mmopxc6h5gs" Yes, that's good. >>> write im >>> press M-Tab, should expand to import >> >> This now works for me now in `emacs-24'. > Not for me (using python3). > Backtrace: > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > buffer-substring-no-properties(nil 5) > python-shell-completion-at-point(#) Right, that looks like the same bug you were hitting with `trunk' (and hence a different bug from the one I fixed). But it makes no sense. The only call to buffer-substring-no-properties in python-shell-completion-at-point (in emacs-24) is of the form: (buffer-substring-no-properties (line-beginning-position) end) and I can't imagine how line-beginning-position could return nil. Are you sure you don't have another python.el or python.elc that gets in the way? Or maybe your python.el was not properly recompiled so you still use the python.elc from the trunk? What if you M-x load-library RET python.el RET (to load the non-compiled version)? Stefan