From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#50470: 27.1; 'company-mode' 'eshell' Date: Mon, 6 Jun 2022 02:45:22 +0300 Message-ID: <602e2d92-7914-0e2b-b06e-0d47d0ac8c99@yandex.ru> References: <87h7evegav.fsf@debian-BULLSEYE-live-builder-AMD64> <154bd0e9-2779-5a28-5587-a845a982e39f@yandex.ru> <815516d6-262b-4ef1-786e-ec5b4199847c@yandex.ru> <01845bee-7637-76f6-2e86-2e2de91f6f6e@yandex.ru> <0e8cc089-63ae-71b5-9617-ce76478d3ba4@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: Christophe , 50470@debbugs.gnu.org, John Wiegley To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 06 01:46:11 2022 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 1nxzwg-0007c1-Cw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jun 2022 01:46:10 +0200 Original-Received: from localhost ([::1]:49020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxzwe-0001rP-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 19:46:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxzwY-0001r2-0Z for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 19:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxzwX-0000RG-O7 for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 19:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxzwX-0006jh-Lb for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2022 19:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 23:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50470 X-GNU-PR-Package: emacs Original-Received: via spool by 50470-submit@debbugs.gnu.org id=B50470.165447273325855 (code B ref 50470); Sun, 05 Jun 2022 23:46:01 +0000 Original-Received: (at 50470) by debbugs.gnu.org; 5 Jun 2022 23:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:33713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxzw5-0006ix-84 for submit@debbugs.gnu.org; Sun, 05 Jun 2022 19:45:33 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:39639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxzw3-0006ij-3a for 50470@debbugs.gnu.org; Sun, 05 Jun 2022 19:45:32 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id l2-20020a05600c1d0200b0039c35ef94c4so4967223wms.4 for <50470@debbugs.gnu.org>; Sun, 05 Jun 2022 16:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=WTc1ocos412IOX0Ci4uk/v2jyXisOX0dnMA/6muvqV0=; b=m1wj3dze7ZcKWZBu2268HsAtND1gJA1UHC8nQGoNgz7FRwiQ4eYzsD8nhd+1cct8iU eIG8MuTjSlM+Z1sG9DvwcYDObNMSeAZS0x8kiYL8tIoMNqF9YdO01Y5hZ1pFymxL+ub7 lDxqX8VyDwlQrFw/2X1nZ76/kvq3iJALYvczg6pTvEG6/YNfb533ODlRt83leRm5ou5R z6KLD/AfMxmcs15Xy8pgsbQAxmJIBCKQyuVDrPyK3186O+bN3hMwn6SCyE2r7/JdYM7o Svq7bfHOK1rl+HEZIuFwU1EnxHv7OwX2j8Ea0j+axnkXzaYcueyh9nuTBr/NSUG/U0iE psLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=WTc1ocos412IOX0Ci4uk/v2jyXisOX0dnMA/6muvqV0=; b=MUWf19SKxMFmDC6aaIgftPVAgh6TQWDdumqRWWUEzjYIUml4eZaeyD5gQF0hckeKsS MD5VEor8qzsigLMuiZg55AP3KMBMc2ZO9cze59z/SLcssJXNoYgnHjeTmDeQfkEtlrEX zgXVPn4OrP1UllPYcjAJ3N4JxZ+0gXPKOOfFnXQ/XI4sJIRY0SGUL6qLQn2mpazyjvWL zS6nsp3w1nymhPtQ9HS/D13392Fjzb3u/WqM8ioJM67XgvKS+WVe+Qkmgz1/ZpppukSw 9E+ww5+hLQl3J+E4z1NZ905jDou8WzfiiHtFEhZmkr6Fe99EOYaB7v8lonxE0OmPEaB4 1dKA== X-Gm-Message-State: AOAM531dOAxKQXR9s6hu70nSilxezE9ciLIsq9l7zxplvXGkeHwTdLc2 3Dp+aZLnhCY1sMdHmWng8fk= X-Google-Smtp-Source: ABdhPJzzW5+BG1GAfuU9JToxBJNei6/p1T1IBE/n+m48BMv8uS7F3+7Gbn60NmEZIu0+bXPAeC9uRA== X-Received: by 2002:a05:600c:1d99:b0:397:482b:429 with SMTP id p25-20020a05600c1d9900b00397482b0429mr48363700wms.130.1654472725123; Sun, 05 Jun 2022 16:45:25 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id h1-20020a5d4fc1000000b0020fc4cd81f6sm13544174wrw.60.2022.06.05.16.45.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jun 2022 16:45:24 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:233758 Archived-At: On 05.06.2022 03:53, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> Erm, I missed the time when you installed yours: you never wrote about >> it here, > > Indeed, I had lost track of this bug (and couldn't find your patch when > I looked for it, probably for the same reason). > >> and my "Emacs Diffs" folder still has 738 unread messages. > > And you're still here chatting? > Kids these days! Aye-aye, cap'n! >> My patch doesn't help with the 'cd ~/Down*' behavior, though: when I worked >> on it, pressing C-M-i did expand it as expected, it was mostly problematic >> with company-mode (and other similar frontends). >> >> But now C-M-i results in "No match" as well, with or without my patch. > > Hmm... looks like my lack of understanding of this pcomplete code > strikes again. Debugging shows that COMPLETIONS just before the bit of code I added gets set to absolute file names. E.g. if I'm typing cd ~/Do* COMPLETIONS is '("/home/dgutov/Documents" "/home/dgutov/Downloads"), which fails to match "~/Do" because we do prefix-matching by default. I suppose whatever code does the expansion here, shouldn't dis-abbreviate the file name (or resolve symlinks, etc). I could find where that logic resides, though. Another issue which made investigating this harder, is that eshell-mode (and only it) has 'C-M-i' bound to eshell-complete-lisp-symbol.