GNU bug report logs -
#22643
24.5; Double import on completion in python mode
Previous Next
Reported by: vsuharnikov <at> gmail.com
Date: Fri, 12 Feb 2016 16:33:03 UTC
Severity: normal
Merged with 22638,
22641,
22642
Found in version 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #12 received at 22643 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
vsuharnikov <at> gmail.com writes:
> Steps for reproduce:
> * start emacs: emacs -Q
> * create an empty python buffer: C-x b foo.py RET
> * turn on python mode: M-x python-mode RET
> * start interpreter: C-c C-z (python-shell-switch-to-shell) and answer the
> prompts (I pressed RET n)
> * switch back to python buffer: C-x o (other-window)
> * type "from os import " (there is a space after "import")
> * press C-M-i (completion-at-point)
>
> Observed behaviour: "import " is inserted in the buffer. The buffer now
> contains "from os import import ".
> Expected behaviour: completion-at-point offers names from the os module
> as completion candidates.
I'm unable to reproduce this in Emacs 26.1-28, so I'm going to go ahead
that this has been fixed in the years since this was reported, and I'm
closing this bug report. If you can still see this problem, please
respond to the debbugs address, and we'll reopen.
However, there seems to be a regression between 25.1 and 26.1
somewhere -- `C-M-i' doesn't give a completion at all now, and in Emacs
25.1 it used to say:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
I'm not really familiar with how completion is supposed to work here,
though -- if this is an error, then perhaps a new bug report should be
opened.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 108 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.