From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19031: 24.4; find-file in icomplete-mode shows completions with no input Date: Tue, 08 Dec 2020 17:34:38 +0200 Message-ID: <83o8j471m9.fsf@gnu.org> References: <864mu464pa.fsf@beta.iola.dk> <87r1o5luz9.fsf@gnus.org> <878sabf6fu.fsf@gnus.org> <87zh2o7krj.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34661"; mail-complaints-to="usenet@ciao.gmane.io" Cc: olau@iola.dk, larsi@gnus.org, 19031@debbugs.gnu.org, juri@linkov.net To: Andrii Kolomoiets Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 16:35:24 2020 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 1kmf1P-0008rU-HU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 16:35:23 +0100 Original-Received: from localhost ([::1]:37958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmf1O-00042N-HG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 10:35:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmf13-0003z1-VZ for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmf13-0006ff-Mf for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmf13-0004od-IX for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 10:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19031 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 19031-submit@debbugs.gnu.org id=B19031.160744169718497 (code B ref 19031); Tue, 08 Dec 2020 15:35:01 +0000 Original-Received: (at 19031) by debbugs.gnu.org; 8 Dec 2020 15:34:57 +0000 Original-Received: from localhost ([127.0.0.1]:59244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmf0y-0004oG-PA for submit@debbugs.gnu.org; Tue, 08 Dec 2020 10:34:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmf0w-0004o3-I9 for 19031@debbugs.gnu.org; Tue, 08 Dec 2020 10:34:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52485) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmf0q-0006Zn-NX; Tue, 08 Dec 2020 10:34:48 -0500 Original-Received: from [176.228.60.248] (port=1772 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmf0n-0006L1-Rm; Tue, 08 Dec 2020 10:34:46 -0500 In-Reply-To: (message from Andrii Kolomoiets on Tue, 08 Dec 2020 12:43:21 +0200) 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:195366 Archived-At: > From: Andrii Kolomoiets > Date: Tue, 08 Dec 2020 12:43:21 +0200 > Cc: Ole Laursen , Lars Ingebrigtsen , > 19031@debbugs.gnu.org > > 1. emacs -Q > 2. M-: (setq insert-default-directory nil) > 3. M-x icomplete-mode > 4. C-x C-f ~/ > > In this case everything works as described by the docstring: user input > is here so completions are shown. But IMO Ole's issue is not > completely solved: bunch of uninteresting dotfiles are shown. Emacs never filters out the dotfiles, not by default anyway. Try "C-x C-f TAB TAB", and you will see that. IMO, it would be confusing if some completion packages did this and some didn't. > If the 'read-file-name-default' function can set the > 'minibuffer-default' variable to the substring of the minibuffer content > from (minibuffer-prompt-end) to the last occurence of the path > separator, then, in addition to the patched 'icomplete-exhibit', this > can give desired result: no completions will be show until some input > after path separator. But file-name input is not limited to absolute file names. The user can legitimately enter a relative file name, in which case the separator may not be present at all.