From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#63829: 29.0.90; project-find-file's future history breaks with common-parent-directory Date: Thu, 10 Aug 2023 12:02:36 +0000 (UTC) Message-ID: <87jzu3hzqc.fsf@catern.com> References: <16b64d95-35e9-ef94-2c54-17b670111f0f@gutov.dev> <86h6rnw7gm.fsf@mail.linkov.net> <3e404df1-b3a9-f9e3-4270-f42df8b704c7@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , Juri Linkov , 63829@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 14:03:18 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 1qU4No-0004lN-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 14:03:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU4Ne-0007zq-AO; Thu, 10 Aug 2023 08:03:07 -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 1qU4Na-0007xj-Hy for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 08:03:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU4Na-0001uV-7f for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 08:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU4Na-0007bt-1p for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63829 X-GNU-PR-Package: emacs Original-Received: via spool by 63829-submit@debbugs.gnu.org id=B63829.169166896529193 (code B ref 63829); Thu, 10 Aug 2023 12:03:02 +0000 Original-Received: (at 63829) by debbugs.gnu.org; 10 Aug 2023 12:02:45 +0000 Original-Received: from localhost ([127.0.0.1]:41594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU4NJ-0007am-4B for submit@debbugs.gnu.org; Thu, 10 Aug 2023 08:02:45 -0400 Original-Received: from s.wrqvwxzv.outbound-mail.sendgrid.net ([149.72.154.232]:49522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU4NF-0007aV-Sz for 63829@debbugs.gnu.org; Thu, 10 Aug 2023 08:02:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=biuNuXK98EppuooOTjC4QAiktPJ6Rj04bdu7Q/u6nJY=; b=0oNPEpuCFABlArfJd1wpRJBPUrcUYJylpnmWTRWgDKF0q0CmkqLPm60Ro7/bUjWlVWzO oBCrbkaD1c3ZsxofBzhSnjrHVi77tHh10lkZDJQ3GSklNw9W9gcbSRuycItJEVgLgrOsbv XwU1neGJenEfOB9qDQ7QVsWnc7eqvJ5tjKO71kwrlAWIlqZCVgsHAnqaXZZ1ErDAr0Ct6M Jny1ttNCQ595+aLDKLueykJNcegjqPTKpg5izGS0kvtCpAlsYG1jpXBulUv4GecPuIGvNa UJ6dcUQSFl4Qj6R5fZD5IWIsViNpZgODWHoxZ8fAuvB6jMWq8Ass195cT3LsQPeA== Original-Received: by filterdrecv-d7bbbc8bf-n6gsj with SMTP id filterdrecv-d7bbbc8bf-n6gsj-1-64D4D1DC-1B 2023-08-10 12:02:36.138462616 +0000 UTC m=+7906969.641822867 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-33 (SG) with ESMTP id jxMDA152R2uj_OCvQKY2lw Thu, 10 Aug 2023 12:02:36.050 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=janestreet.com Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id BEF3860094; Thu, 10 Aug 2023 08:02:35 -0400 (EDT) In-Reply-To: (Spencer Baugh's message of "Tue, 06 Jun 2023 11:55:59 -0400") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbKfaTKFrn6EdLgwHYvpabjPrQRvxFkaHuyoqJr5pRG2C/MLA4tac2xWnmFwFT+Bd8Qz+gu8peWcOsY5S4p2MGhrLuoMiGGyTKwNadHRNd21R+KUnYCWCzqBHfT7VmLSSNiJht16PPz5PgnU8K1odqLSq+nch1VmjQQdeiyWtqecLw== X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== 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:267125 Archived-At: Spencer Baugh writes: > Dmitry Gutov writes: >> I think the design there was to use relative file names in history? Or >> a different variable for project file name history (which would use >> relative names only). I'm not ruling that out, but the patch proposed >> here is a little more focused. >> >> OTOH, it only allows finding the "current" file in the other project, >> but not other files that were previously visited too. Spencer, what do >> you think about that capability? Do you also feel it is missing and >> would like to look into it next? Then the current patch might be the >> wrong direction. > > Hm, the main thing I want is to make it very easy to visit the current > file in another project - I am frequently getting user requests for that > feature. (Mainly because our workflow heavily uses a "git worktree" > equivalent, where users have one project for each bug/branch they're > working on, all with basically the same layout, so "visit the same file > in a different project" is also "visit the same file in a different > branch", which is often useful. (I actually might work on some code to > help implement the same kind of workflow for Emacs development, one > worktree per bug/branch)) > > I'm not sure I understand the alternative - the idea would be to share > project file name history between all projects? I guess that could be > nice, although I don't personally use file name history that much, and > AFAIK it wouldn't solve any concrete user problems, so I'm not really > motivated to implement it. > > However, if we did share project file name history in that way, I'd want > to still automatically prepend the "current file" as history. Even if > we didn't navigate to the current file via project-find-file, I still > want to make it very easy to visit the current file in another project. > Just sharing project file name history doesn't provide that. Any thoughts about this and my earlier patch? I still am interested in providing this feature.