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, 15 Dec 2022 19:24:24 +0200 Organization: LINKOV.NET Message-ID: <86h6xwabpv.fsf@mail.linkov.net> References: <8735budxiz.fsf@gmail.com> <86tu3mftm0.fsf@mail.linkov.net> <875yg0to11.fsf@gmail.com> <86zgdalj0h.fsf@mail.linkov.net> <86fsdpjasd.fsf@mail.linkov.net> <86k02zjiwj.fsf@mail.linkov.net> <864ju1lt5k.fsf@mail.linkov.net> <403e8284-e32c-f547-748e-371d26eedace@yandex.ru> <86cz8or02n.fsf@mail.linkov.net> <87sfhko3tf.fsf@gmail.com> <868rjbusog.fsf@mail.linkov.net> <87h6xylyox.fsf@gmail.com> <1d03758e-369a-c522-a91a-696243f1074f@yandex.ru> <87cz8ln5lt.fsf@gmail.com> <86o7s5i1ec.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , Augusto Stoffel , 58447@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 18:41:02 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 1p5sEA-000802-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 18:41:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5sDG-0008BF-Dh; Thu, 15 Dec 2022 12:40:06 -0500 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 1p5sDE-00089h-GD for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 12:40:04 -0500 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 1p5sDE-00007z-89 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 12:40:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5sDE-000318-3K for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 12:40:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 17:40:04 +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.167112598611529 (code B ref 58447); Thu, 15 Dec 2022 17:40:04 +0000 Original-Received: (at 58447) by debbugs.gnu.org; 15 Dec 2022 17:39:46 +0000 Original-Received: from localhost ([127.0.0.1]:43945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5sCv-0002zs-Vo for submit@debbugs.gnu.org; Thu, 15 Dec 2022 12:39:46 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5sCu-0002zZ-Lh for 58447@debbugs.gnu.org; Thu, 15 Dec 2022 12:39:45 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id F23C8FF808; Thu, 15 Dec 2022 17:39:36 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Thu, 15 Dec 2022 15:54:58 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251125 Archived-At: >> But please also note that its value 'project--read-file-absolute' >> is also broken. It asks confirmation for re-visiting even absolute >> filenames, because currently 'C-x p f' adds abbreviated filenames, >> but confirmation checks for absolute. > > Does the breakage show itself only when you add a history entry using one > value of project-read-file-name-function and then try to look it up when > using another value of project-read-file-name-function? > > If so, that's probably bearable enough for now (people don't really change > this value often). Fixing it will require resolving the abbreviation > situation. And we might as well switch to relative names in project-files > first. Visiting with 'C-x C-f' adds an abbreviated file name to the history. So it looks strange that 'C-x p f M-p' doesn't understand that it's absolute even though it's abbreviated.