From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#51010: 29.0.50; python completion breaks upon non-trivial rl config Date: Mon, 4 Oct 2021 11:59:25 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13198"; mail-complaints-to="usenet@ciao.gmane.io" To: 51010@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 17:00:49 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 1mXPST-0003Da-8t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 17:00:49 +0200 Original-Received: from localhost ([::1]:45848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXPSR-00069T-9K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 11:00:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXPRi-00067o-Me for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 11:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXPRi-0002mU-Bk for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXPRi-0006Yw-6Y for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51010 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163335958425172 (code B ref -1); Mon, 04 Oct 2021 15:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 14:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:38066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXPRQ-0006Xw-6W for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:59:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXPRO-0006Xo-Ct for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:59:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXPRO-0005mo-1t for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:59:42 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXPRM-0002RT-Cx for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:59:41 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id o4-20020a05600c510400b0030d55d6449fso209163wms.5 for ; Mon, 04 Oct 2021 07:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=OOKQFOunPK2TdPW1bxQCKdzmeWYZ+AZCsi2myQ6dYF0=; b=CCo4GXgZslQQ5V7AxKJV8rLrqo/wrHnBpXCmizfxFy2Z069MPo3tvSAfU8dyY+OnWL x5KiFKsRXEjmweG+43usi2YGHh57d9lJVkd361OiFipePXpoyovG4TLu8pnGIagKqNEX Qxo25RuSklC8J9oA99GSCA2A2sBAnzLtstk1qCn1AIvDeBtfXYPLwhH2cZHYG8OqOjMl YkkklIRWAE4wO5EYWvY9I6ibgIS36D43sb1AOZtShFTQx8xdrPUpDJvkC9r3dMDuSo6Z 4EiVxv0S32IYwy8c5vupSpv9LRRvd44lbx6XfztlJn3ucFlaedKHkMH1U7AGkWXOyyS8 o8Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OOKQFOunPK2TdPW1bxQCKdzmeWYZ+AZCsi2myQ6dYF0=; b=yTkDeTvqp1k6jghnDtVdOrsPdZEnmDCTZUA5iB+L8lZ7L9daIwh3/WQ2JQKe2Dr/6x lnFAbHet5+m6SEtn4PjMuyBR2rQvavujKnVYK+dDjM+jTSEMAlc2Ikc/S/5dFYnn7aRV avZ9H+ZbhVQf0m847YudZbS4L/KBeqYAp6vlJrUI/bI3N4gMkJHYeUxmF8mOl/xkpgpH gO/1zvEffQbtz8Va/rVmYxfzEXXb+g60lv6c0ZE5Dc+6et37W0aM8RR02fGsTQkPoj5D J/z+qRHqShPBjMgpkJUzB4Dgwh/lc8hRc15yuSf/boU4Hb870S3kq5JjDdFcEDhXVsf6 0F9A== X-Gm-Message-State: AOAM532jTGGh/ISpzvNVw2qfrDZsCtSamRZKIVG3NZaYVkxBhBJdzAGc QC/8LVs6wGXI/zTviier0JTXyHhrgO4BUkIRKIKmbl7OgC+fDQ== X-Google-Smtp-Source: ABdhPJztH9XoziH7lunNpHLavqmnVl7rHOTkWven0wimVNcoCbcZDJNWq42g+1mYLkiYAXBthrhe5ACHvLKvaCA8PKA= X-Received: by 2002:a7b:c314:: with SMTP id k20mr19382755wmj.50.1633359577696; Mon, 04 Oct 2021 07:59:37 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=carlosjosepita@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:216361 Archived-At: (originally reported in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753) Using this readline config: > cat .inputrc set completion-ignore-case on set completion-display-width 80 set completion-prefix-display-length 5 set show-all-if-ambiguous on set skip-completed-text on set colored-stats on set blink-matching-paren on set menu-complete-display-prefix on native completions received by python.el look like: 0__dummy_completion__ [0m [K 1__dummy_completion__ [0m [K which wreaks havoc with the native completion mechanism. This mechanism is quite fragile and already complex enough, I don't feel like approaching the issue on a case by case basis and always catching up with upstream and with configuration combinatorics. One alternative is to set the INPUTRC environment variable in order to reset the user config. Short of doing that, we could just make one regex less strict: (comint-redirect-finished-regexp "1__dummy_completion__[[:space:]]*\n") to: (comint-redirect-finished-regexp "1__dummy_completion__.*\n") I propose this minimal change. A priori I'd expect that the text "1__dummy_completion__" will always be in the output, no matter the specific configuration, although the fact that python.el is already doing `set show-all-if-ambiguous on` is a testimony to how fallible my expectations are. Best regards, Carlos