From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc. Date: Fri, 10 Sep 2021 15:06:45 +0100 Message-ID: References: <87wnnsl1d1.fsf@gmail.com> <87czpijixk.fsf@gmail.com> <877dfqjfwu.fsf@gmail.com> <87mtolr91a.fsf@gmail.com> <877dfopsoa.fsf@gnus.org> <87zgskejjq.fsf@gmail.com> <87ee9wa7yo.fsf@gmail.com> <8ee6271b-142e-7cc1-3d24-7e5c342ef86b@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33188"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , Lars Ingebrigtsen , Michael Albinus , 50459@debbugs.gnu.org, Gregory Heytings To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 10 16:08:13 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 1mOhCN-0008FP-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 16:08:11 +0200 Original-Received: from localhost ([::1]:59556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOhCL-0001B6-7w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 10:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOhCE-0001Aw-TK for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOhCE-00086U-Ly for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOhCE-0008P2-E7 for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 14:08: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.163128282532225 (code B ref 50459); Fri, 10 Sep 2021 14:08:02 +0000 Original-Received: (at 50459) by debbugs.gnu.org; 10 Sep 2021 14:07:05 +0000 Original-Received: from localhost ([127.0.0.1]:38910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhBJ-0008Nh-2N for submit@debbugs.gnu.org; Fri, 10 Sep 2021 10:07:05 -0400 Original-Received: from mail-pg1-f180.google.com ([209.85.215.180]:40810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhBH-0008NE-CK for 50459@debbugs.gnu.org; Fri, 10 Sep 2021 10:07:03 -0400 Original-Received: by mail-pg1-f180.google.com with SMTP id h3so1912824pgb.7 for <50459@debbugs.gnu.org>; Fri, 10 Sep 2021 07:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NhYWKqZbTqyPX4/gJvmGGrLj84p9Da81iPwVv53D2+U=; b=b0rGFp6bRtPscsoFuhxErSydgbmyG1PH3/xeCeR2WP6TmVZr+lpazfG8gHQlnbfDcf ghM3J8iMThC3CvhB5xNguYmTmtexR+A8n22BgqWHKLslN47oNtDXhw3OUP1XKrQWe2EL S+CZWd+KW2AAczzn2/mtUQdZZXXLQnV4ouY4EVginRzhVBd/b8KxNvbYrGTSmeZE6JyH z46kINDt4MMRB2dx65AC4YiOIi3Dq9Xwxz8onbwSLPj0lT8ZQqpkwLL0bR8bWrfQrTc/ cGe2aXH8EDnt2HmTtitkb1cMkhFEDDb+QhzeRP6Va3+/4kxVDSa18JBJA3BKeUrycnhf JFFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NhYWKqZbTqyPX4/gJvmGGrLj84p9Da81iPwVv53D2+U=; b=rSFQICsWMOUGpJNjHDOHjI8YCFSHx8HF51NAuLmcHQPfqNn3NmBWXJeJhMjnAvxcb+ AMYoLXuWSD8023hgJgN9i5LAEF9icQQtYOHh7IBsCdq6UTsWbaLuZbgeJJEteFz7hACA eAuVqJia5uFM9cbfT4ie4MQF41Nx2HbbHUGMp+10Kvz2Y+F+rV0yx9EnIymU/Vzbqa9p lLQnaLp9yJ87qY6N1oZauYNAKJOdd9UY81gOO3WAX5UreCiBPsZpMW2CEXb3d9Iu5h/l Ae6OMlbawTMDM2o8Bo97YBYe2xXPk2ui437tzBgGEpbSfmjfa/lzh1/ovz97Dbpcwhzb /dvA== X-Gm-Message-State: AOAM530/NWjJuPqueca5TOXJhKg4ucPpC8u71ChRX7j9PDFKN55steCa EY1diQ29KtMwqZdLpffzix8Jnelq2SpoYfG0vN4= X-Google-Smtp-Source: ABdhPJxKKuf5johMBulDSJBZuIoEJBcoScJNEMdvT1GPOEx4p3b2bEBJD1zwYZclzZiXRfi7dY/vIALBQCScueng+h8= X-Received: by 2002:a62:77d6:0:b0:414:aa59:439 with SMTP id s205-20020a6277d6000000b00414aa590439mr8560172pfc.50.1631282817294; Fri, 10 Sep 2021 07:06:57 -0700 (PDT) In-Reply-To: <8ee6271b-142e-7cc1-3d24-7e5c342ef86b@yandex.ru> 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:214015 Archived-At: On Fri, Sep 10, 2021 at 2:28 PM Dmitry Gutov wrote: > > On 10.09.2021 16:14, Jo=C3=A3o T=C3=A1vora wrote: > > - If you're OK with letting the server do the filtering and the > > highlighting, you can make a "backend" style like I did for SLY, for > > example. It's going to be faster, but `completion-styles` won't be > > honoured. That's doesn't mean you give up 100% on "flex". In SLY, > > there is flex implemented on the Common Lisp side, and for Eglot, ma= ny > > LSP server do their own flex matching. > > You can't really do that with python-shell completion. Probably not unless you write some python, no. I don't see that as being that dirty. > Nor do you need > do: the basic pcmpl mechanism should work just fine with it, and for > performance the completion table just needs some smarter caching. Yes, as I said in b), with "sufficiently smart caching" (and infinite memory space) you can do everything, indeed. It's one of the famous "two hard problems" though, so good luck. Jo=C3=A3o T=C3=A1vora