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: Thu, 09 Sep 2021 10:45:37 +0200 Message-ID: <877dfqjfwu.fsf@gmail.com> References: <87wnnsl1d1.fsf@gmail.com> <87czpijixk.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="10976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50459@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 09 10:46:16 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 1mOFhH-0002aM-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 10:46:15 +0200 Original-Received: from localhost ([::1]:49944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOFhE-0007PZ-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 04:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOFh4-0007PN-2Q for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 04:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOFh3-0002x7-QI for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 04:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOFh3-0004XD-Nd for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 04:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Sep 2021 08:46:01 +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.163117714817411 (code B ref 50459); Thu, 09 Sep 2021 08:46:01 +0000 Original-Received: (at 50459) by debbugs.gnu.org; 9 Sep 2021 08:45:48 +0000 Original-Received: from localhost ([127.0.0.1]:34111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOFgp-0004Wl-Oi for submit@debbugs.gnu.org; Thu, 09 Sep 2021 04:45:47 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:38434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOFgn-0004WX-DX for 50459@debbugs.gnu.org; Thu, 09 Sep 2021 04:45:46 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id u16so1384349wrn.5 for <50459@debbugs.gnu.org>; Thu, 09 Sep 2021 01:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7z7pFkSmubAG+BuI7wFLLQF0rHGlOD1OJ0NU8uV711g=; b=E4nq+wCv8j3UY5w2An2EL4eGdwxISbPFjfTKDXMavEdHuJtJs8wLMz6kOUnowam4W1 BELAHwju+PfCG2ekynLppuaEveLk2qVMQm8vlJHNBHx41znPzFc0RGG+f157IsGTuqoJ iExrYbsLk7RtTb7JSNOAEMTyWQR+63PdQjV4ljD0nze9UetcXOcJ+rE4xar6qp+CWzvG UhPgP6oZa8E+LwQ9j1Rgp8pXXboVVJr2IcKstspFXwRWoBWasyW2d67E2TUfRcjWhINr QfxyqUg7Uk35FyG3dMuUKqWCubQ0lOY18FsqZS+6olS9orvOvCooYIqfUUiy/M5ZG6WH rUGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7z7pFkSmubAG+BuI7wFLLQF0rHGlOD1OJ0NU8uV711g=; b=7AFk50SU75IQ/qdkH3B1fA+dGnVuH7l3OxKjii6W937xyjfXyt5pFHQ2TujH7Ev9Rn og3RVAsr1l/2AO68NGew2NqPxu+x6pV3F2jNtqSS9hRuW6Bav7d0zHQBibNVCB9fZIG1 kb9inZ9M0DoyUjyOnPFyHD8j+gcDqi/9hZsrmM5i4yYi/YiSsZ2amvCLkwjylSq9QHTm HXXkQT3Hk0Kz7inlzduYZeI/Pb/1ruVgjN8GMGWpXSUQYfCl/fkD7E/K/pn+qaoOxowo A7tLclE65WIQQQ/Shx3AE3T0S3AYOYdriK81pApiCYRGFUWFgBdTvKsKxTpSDu91QVn+ /BmQ== X-Gm-Message-State: AOAM5336kQlo6q3OxX37hqZOJmI5zl7UJzN00vfR66Vaot/JyM9Uzulf iDDk+vTx1cuB3vocDlVRg/Ddf3WU5WolRQ== X-Google-Smtp-Source: ABdhPJxnnbUVkx71LAfN5LteBYkojKXbaycdCyI8lBLjMvzG0uUNS5IPi7qu8vibl7Q+pN2Iqci5bg== X-Received: by 2002:adf:d1ab:: with SMTP id w11mr2097682wrc.372.1631177139047; Thu, 09 Sep 2021 01:45:39 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id t14sm1079914wrw.59.2021.09.09.01.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 01:45:38 -0700 (PDT) In-Reply-To: (Gregory Heytings's message of "Thu, 09 Sep 2021 07:49:19 +0000") 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:213887 Archived-At: On Thu, 9 Sep 2021 at 07:49, Gregory Heytings wrote: >>> You shouldn't use (setq completion-styles '(flex)), you should use >>> (add-to-list 'completion-styles 'flex). Otherwise the default >>> completion styles are not used anymore. >> >> This doesn't change the issue described in the subject line. I >> would still not see any flex completions if I did what you suggest. >> > > Because the flex completion mechanism returns no completions, and the > next completion mechanism is called. What kind of flex completions > would you expect to see after x.t TAB in your example? For sure 'x.count' should be a candidate, just like in Elisp 'set' shows up as a possible completion after typing '(t TAB'. Whether or not your example should allow 'fix.it' as a completion is up to debate. > >> >> Granted, completion wouldn't be totally broken. But I don't mind >> letting the brokenness manifest itself. Therefore I use (setq >> completion-styles '(orderless)). >> > > It's not broken, it works as designed. Instead of asking each user of > the completion mechanism to implement a specific function for > substring / flex completion, these mechanisms tell them "please return > all possible completions, I'll do the filtering job for you". Right, this is not a problem with the flex style, it's a problem with the Python completion table. More specifically, with its notion of "all completions".