unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: vsuharnikov@gmail.com
Cc: 22638@debbugs.gnu.org, 22643@debbugs.gnu.org
Subject: bug#22643: bug#22638: 24.5; Double import on completion in python mode
Date: Sun, 07 Feb 2021 17:49:49 +0100	[thread overview]
Message-ID: <87lfbz3jrm.fsf@gnus.org> (raw)
In-Reply-To: <2064810.PUY7i6Wojv@fort_dey> (vsuharnikov@gmail.com's message of "Fri, 12 Feb 2016 04:57:21 +0300")

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

vsuharnikov@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:


[-- Attachment #2: Type: image/png, Size: 71083 bytes --]

[-- Attachment #3: Type: text/plain, Size: 254 bytes --]


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

      reply	other threads:[~2021-02-07 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-12  1:57 bug#22643: 24.5; Double import on completion in python mode vsuharnikov
2021-02-07 16:49 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfbz3jrm.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=22638@debbugs.gnu.org \
    --cc=22643@debbugs.gnu.org \
    --cc=vsuharnikov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).