bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18582: 24.4.50; [python.el] completion error


From: Stefan Monnier
Subject: bug#18582: 24.4.50; [python.el] completion error
Date: Wed, 01 Oct 2014 10:26:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> 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(#<process Python>)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]