From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc. Date: Wed, 08 Sep 2021 19:44:48 +0200 Message-ID: <87sfyfotbj.fsf@gmail.com> References: <87wnnsl1d1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 50459@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 08 19:46:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mO1eU-0008hz-7l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 19:46:26 +0200 Original-Received: from localhost ([::1]:48138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO1eS-0003wN-6F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 13:46:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO1e7-0003wC-0X for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 13:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mO1e6-0005oO-El for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mO1e6-0004mV-AA for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Sep 2021 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50459 X-GNU-PR-Package: emacs Original-Received: via spool by 50459-submit@debbugs.gnu.org id=B50459.163112310118269 (code B ref 50459); Wed, 08 Sep 2021 17:46:02 +0000 Original-Received: (at 50459) by debbugs.gnu.org; 8 Sep 2021 17:45:01 +0000 Original-Received: from localhost ([127.0.0.1]:33529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO1d7-0004kR-B6 for submit@debbugs.gnu.org; Wed, 08 Sep 2021 13:45:01 -0400 Original-Received: from mail-ej1-f52.google.com ([209.85.218.52]:45978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mO1d2-0004k9-4c for 50459@debbugs.gnu.org; Wed, 08 Sep 2021 13:44:59 -0400 Original-Received: by mail-ej1-f52.google.com with SMTP id e21so5768144ejz.12 for <50459@debbugs.gnu.org>; Wed, 08 Sep 2021 10:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=pbBKr/x74wo/OyhVgObk78Lwm5KHcldkX4BydyGpjfM=; b=eZdcgZOCrP6grKItUUurFIfktHNIaiq5BizlIJssP2CN9LcFxmFzJ3YGh5N8osPVx5 GXjgN+qqX0VRX+kbi54KkMe0k+gLgXEell3BRoQ2o5cOFLTRqbrM5GAOvcytjgDphOh+ N4COkZAfocRWYIVFc1zY4gXmUKL52FTiOUwiDlom6dI5ZjSDEmMkq3OESDxRHsaGQAMR 7mgrYV7BFctqwtj/8KtkWlv5tcHECUi0JSUgcvES0xxuqf1qT1T9XIPCVD6A87C/7+cl 3kcCpzJ6ShLDSM7N4l7MaGUzfq+pCEjSCocVv0Y/KQe3pPD/TJ3j7jsdYwzyR1uZvLqe rzqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pbBKr/x74wo/OyhVgObk78Lwm5KHcldkX4BydyGpjfM=; b=PcFpblgEzSUs+cFGWjz9GOor8I9Hv+M5YWvYB6bTVWa5Ev8YXAqo0K5yJkUd8G5b7i rgrq0myKk3FOZ8JQpsftb5AZyKMYBEIXiLk1MrGIoOV1kBgecfi7LZK7sWMHjj7DQuFM R+xsIt3Nn4zEdgfy67jEHjZh95YT1cEGrisjLKEuWKD0sc/J4UxPPo0Qk5shB+arBE4p y4jCbp4TnmT2Um/TrvdCo7nQEgziXSL0aYLxKaqeX5igw1K1teB1XEwfTo4OTh7K6R+6 ZEJ7EKyxHDbPHJxJztUdrERP1iqNMnG0ZjET0wkK7OaDgFNIRyDl832zgzM7SgsKYWMH rtQA== X-Gm-Message-State: AOAM532vM9HUCrZGL7wd67Q6Xk071mJEZejvUz04ho68/M0Z+g6MBpZ/ QEotE7l2BkEo0sgyCDe4zLKZ2uWwbHviJA== X-Google-Smtp-Source: ABdhPJz4orVNhuw9F5Qw3B0O2J3ZIBU4HA5gHq5LKNI02WFRvix2WVTdUUVvvvg+dydYEQ+N5vPZjw== X-Received: by 2002:a17:906:974a:: with SMTP id o10mr1096681ejy.480.1631123089887; Wed, 08 Sep 2021 10:44:49 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id x11sm1564778edq.58.2021.09.08.10.44.48 for <50459@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 10:44:49 -0700 (PDT) In-Reply-To: <87wnnsl1d1.fsf@gmail.com> (Augusto Stoffel's message of "Tue, 07 Sep 2021 19:52:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213853 Archived-At: On Tue, 7 Sep 2021 at 19:52, Augusto Stoffel wrote: > If I start a Python shell on Emacs -Q and type, say > > ``` > x = [] > x.c > ``` > > then I see, as expected, > > ``` > Possible completions are: > x.clear > x.copy > x.count > ``` > > Now, if I (setq completion-styles '(flex)), then no completions as > reported in the same situation. Same thing with the `orderless' or > `substring' completion styles. > > Moreover, the same observation holds for native completion on or off. On closer inspection (and discussion with the orderless people), the completion-at-point function in pyhton.el conforms to the completion API. The issue lies in the fancier completion styles, which always send the empty string as the STRING argument to any completion table. There's a workaround for this, which I could provide, but this doesn't seem advisable.