From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#58447: [PATCH] In project-find-file, add absolute file name to history Date: Thu, 27 Oct 2022 22:41:56 +0300 Organization: LINKOV.NET Message-ID: <864jvphx4r.fsf@mail.linkov.net> References: <8735budxiz.fsf@gmail.com> <83a662dvgo.fsf@gnu.org> <871qqvj6qb.fsf@gmail.com> <42bb91a0-60ff-2e51-dcdc-c1e1f80e31ec@yandex.ru> <837d0lmmpi.fsf@gnu.org> <1cce089a-546e-7f13-0907-3d36452aef10@yandex.ru> <83v8o5l0wa.fsf@gnu.org> <5c1cc828-5fcd-667f-41d4-f19923b2958e@yandex.ru> <87k04li5nw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20633"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 58447@debbugs.gnu.org, Dmitry Gutov To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 21:54:20 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 1oo8xG-000597-9Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 21:54:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo8x5-0000o4-Qo; Thu, 27 Oct 2022 15:54:08 -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 1oo8x1-0000kb-HJ for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:54: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 1oo8pG-00069L-JB for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo8pG-0000sr-7H for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2022 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58447-submit@debbugs.gnu.org id=B58447.166689990227520 (code B ref 58447); Thu, 27 Oct 2022 19:46:02 +0000 Original-Received: (at 58447) by debbugs.gnu.org; 27 Oct 2022 19:45:02 +0000 Original-Received: from localhost ([127.0.0.1]:59422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo8oI-00078W-2f for submit@debbugs.gnu.org; Thu, 27 Oct 2022 15:45:02 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:46849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo8oG-00076b-4o for 58447@debbugs.gnu.org; Thu, 27 Oct 2022 15:45:00 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 38C8A240008; Thu, 27 Oct 2022 19:44:51 +0000 (UTC) In-Reply-To: <87k04li5nw.fsf@gmail.com> (Augusto Stoffel's message of "Thu, 27 Oct 2022 18:37:39 +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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246364 Archived-At: > I think the idea of per-project histories is an interesting feature that > requires some careful design, but note that there is a bug in > project-find-file that should ideally be fixed for Emacs 29 (namely, it > pollutes the find-file history by adding non-absolute file names to it). > > The patch in my original message fixes this and shouldn't complicate a > future implementation of the per-project histories. Would be nice to fix this. The problem that I have is that when a file visited by 'C-x p f non-absolute/filename' needs to be revisited later, then the quickest way is with 'C-x C-f M-p', but currently it fails with non-absolute file names. But please note that the same problem exists in both ways: when trying to revisit an absolute file names previously visited by 'C-x C-f', then 'C-x p f' fails on absolute file names.