From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.bugs Subject: bug#49776: 28.0.50; Incorrect username completion results reported by `read-file-name-interal` Date: Fri, 30 Jul 2021 14:29:18 +0200 Message-ID: <48dff852-4ba9-730f-54c9-6800dffe9e8f@daniel-mendler.de> References: <82d07cfd-a345-bf79-0fd4-4386ce2fe381@daniel-mendler.de> <87bl6kowfo.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49776@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 30 14:30: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 1m9ReX-0006Jv-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 14:30:13 +0200 Original-Received: from localhost ([::1]:42006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9ReW-0003R4-Cn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 08:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9ReO-0003Qb-6G for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 08:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9ReN-00034S-6Y for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 08:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9ReN-0004VV-1y for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 08:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jul 2021 12:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49776 X-GNU-PR-Package: emacs Original-Received: via spool by 49776-submit@debbugs.gnu.org id=B49776.162764816817229 (code B ref 49776); Fri, 30 Jul 2021 12:30:03 +0000 Original-Received: (at 49776) by debbugs.gnu.org; 30 Jul 2021 12:29:28 +0000 Original-Received: from localhost ([127.0.0.1]:59311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Rdo-0004Tn-23 for submit@debbugs.gnu.org; Fri, 30 Jul 2021 08:29:28 -0400 Original-Received: from server.qxqx.de ([178.63.65.180]:53919 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Rdm-0004TS-2E for 49776@debbugs.gnu.org; Fri, 30 Jul 2021 08:29:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fih3xhi/KWGvL565V/anJqxMXp7ABZK0J511Zd5Uly8=; b=YNJAhpOi6/gLnasbwHPbs2rL+T 8191MAQEopM66Z3IAXW7DCN5PAFlwaxjEktsht4TKWQ6ILUZ8CzbtiZJuuP2ez23/PEJgX7y7CX25 p4GZXg2AU1dr7skxz8M6NJuIrXssutIUR2poQZ9anM1YF+DSO+wvVRwyMUs/1uR1rry0=; In-Reply-To: <87bl6kowfo.fsf@gnus.org> Content-Language: en-US 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:210897 Archived-At: On 7/30/21 1:47 PM, Lars Ingebrigtsen wrote: >> `(all-completions "~/.config/~man" #'read-file-name-internal)` returns >> the list `("/.config/~man")`. The file completion table incorrectly >> recognizes "/.config/~man" as the username instead of only "~man". > > I'm unable to reproduce this problem, and you haven't used `M-x > report-emacs-bug', so I don't know what system you're seeing this on. > I'm getting the expected on Debian/bullseye: > > (all-completions "~/.config/~man" #'read-file-name-internal) > => (#("/.config/~man/" 0 13 (face completions-common-part))) No, this is exactly the problem I meant (You reproduced it). "/.config/~man" is an invalid completion string. It is not a valid path nor a valid username on my system. The file completion table should not return invalid completion candidates. > And, of course: > > (all-completions "~/.config/~man/" #'read-file-name-internal) > => ("tr/" "zh/" "CACHEDIR.TAG" "de/" "ru/" "ro/" "cat3/" "it/" "pt/" "./" "cat7/" "zh_TW/" "sr/" "fr.ISO8859-1/" "hr/" "cat6/" "fi/" "ja/" "index.db" "cat1/" "cat2/" "cat5/" "cat8/" "vi/" "ko/" "nl/" "uk/" "sl/" "../" "zh_CN/" "id/" "hu/" "da/" "sv/" "es/" "fr.UTF-8/" "pt_BR/" "cs/" "pl/" "sk/" "cat4/" "fr/") Yes, of course. This works correctly and as expected. Daniel