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#62776: 30.0.50; 'project-find-file' ignoring 'file-name-history' Date: Wed, 19 Apr 2023 04:54:28 +0300 Message-ID: <97545727-7123-ca74-3d2e-4ac5c6d8f25a@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39347"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= , 62776@debbugs.gnu.org, Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 19 03:55:33 2023 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 1pox2j-0009xd-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Apr 2023 03:55:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pox2G-0003US-V3; Tue, 18 Apr 2023 21:55:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pox2F-0003UA-Da for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2023 21:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pox2F-0002tR-2B for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2023 21:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pox2E-0007rh-E9 for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2023 21:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Apr 2023 01:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62776 X-GNU-PR-Package: emacs Original-Received: via spool by 62776-submit@debbugs.gnu.org id=B62776.168186928330101 (code B ref 62776); Wed, 19 Apr 2023 01:55:02 +0000 Original-Received: (at 62776) by debbugs.gnu.org; 19 Apr 2023 01:54:43 +0000 Original-Received: from localhost ([127.0.0.1]:60758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pox1u-0007pO-Ny for submit@debbugs.gnu.org; Tue, 18 Apr 2023 21:54:43 -0400 Original-Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:33575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pox1q-0007oM-Ij for 62776@debbugs.gnu.org; Tue, 18 Apr 2023 21:54:41 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 3F99F2B06722; Tue, 18 Apr 2023 21:54:32 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 18 Apr 2023 21:54:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1681869271; x=1681872871; bh=okvWNoNRQrf2w1ZvCN0yRjZqjiBVMeImkJa YW3yICOk=; b=mxyO2OCtPYtnHCrOkiE7iqdDxFsm8IJ1zK6JJkGgn1DOgv1CtkI rmns3wono1c6/uFiGTO1wV6J7Mi1L4KnmFBhFfrcCoOLSYgsdvlfHzuhHX9yVvQ4 3aivrjd3ao4P/sIJFJ95ZR6aH7WCTv4glKi4iqC5TWuzE/lqpuJngyjjmv9jWSuU 2SrYCY28ZaIjn6kcRnvNco5qk3y/l6oe/vIy/0k98uQh/s/UdIghLUkMXi3a1DKc UYokqhIHS9sm37Zodgg3dITybv4dhOlXLjeUTuZeUaaQKE/FcsAtJGYc4qaPhgd4 8iCJXIQpib4zxNArM70Eh+EGfpFBjyzyzBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681869271; x= 1681872871; bh=okvWNoNRQrf2w1ZvCN0yRjZqjiBVMeImkJaYW3yICOk=; b=b kdzNwTYf3hEqqrsO9wUkRS+2AzoJklJVi1xfM0XyXEeyjlzRvToa+AvYF3F1cP/G bley/prfP3ZWJxc06z3LEAkyIApoAYFIsDUtM8BGTTHrwI+zExtkGXAaXjShplM7 sR9bArrcbZfQ07mtykQCfL+gJtA+pD5cvaY7HhYAH4a6U1ogdtT5QT1GNer+bZpC M7gU/1QQ9afxrh08DHWBVflbRjvxodFjT8KvVgAMOMKjJ9Q9LhLgT4ecnEo/fLs0 O4d8GHM1L8V1ZUdk+7LS4I1dk2bxJgES/s1G8+YfJ5cBLk+0cJehmE0+hsMtJ860 Uas79M9fsLrTRDBj5il7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelledgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhu thhovhdruggvvheqnecuggftrfgrthhtvghrnhepfeejkeevvdefleefudefveegtedvve ekledvtdeuteetfedufefgudeikeffieelnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Apr 2023 21:54:30 -0400 (EDT) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260255 Archived-At: On 19/04/2023 00:38, Rudolf Adamkovič wrote: > Dmitry Gutov writes: > >> I also tried replacing the latter with 'M-x vertico-mode' just now, and >> 'M-n' seemed to work fine there, suggesting the files visited previously >> with the same command. Tested in both Emacs 29 and 30. > To avoid miscommunication, I shall provide a precise recipe. > > (And, I apologize for not providing a recipe sooner.) > > REPRODUCTION STEPS: > > 1. mv ~/.emacs.d ~/.emacs.d.OLD > 2. navigate to some Git repository > 3. emacs -Q > 4. M-x package-refresh-contents RET > 5. M-x package-install RET > 6. M-x vertico RET > 7. M-x vertico-mode RET > 8. C-x p f RET > 9. C-x p f > > EXPECTED RESULT: > > Vertico pops up, showing 10 candidates. The first candidate is > , the file that was opened most recently. > > ACTUAL RESULTS: > > Vertico pops up, but the first candidate is not . > > NOTES: > > If I type M-x instead of C-x p f, Vertico pops up 10 most recently > used commands, such as 'package-refresh-contents' or 'package-install' > in this case. All the other commands that have histories work the > same way, only C-x p f does not work that way (anymore, but it used > to). Thanks! If after step 9 I press M-p (previous-history-element), relative to the repository root is inserted no problem. So it seems like the history var is used at least in some form. But you're saying it is not used during sorting? And that used to happen? It's possible that vertico--history-hash is confused by our manipulation of the history entries -- like how they are stored as absolute file names now (bug#58447). Ideally this will require just some tiny tweak in vertico. I wonder what Daniel thinks.